Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ x402 currently supports the **TRON** and **BSC** networks, with plans to expand
## Installation

### Python
The Python SDK includes support for Server (FastAPI/Flask), Client, and Facilitator.
The Python SDK requires **Python 3.10+** and includes support for Server (FastAPI/Flask), Client, and Facilitator.

```bash
# Clone the repository
git clone https://github.com/BofAI/x402.git
cd x402/python/x402

# Install with all dependencies
pip install -e .[all]
pip install -e ".[all]"
```

### TypeScript
Expand Down
8 changes: 4 additions & 4 deletions python/x402/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ uv add "bankofai.x402[all]"

```python
from bankofai.x402 import x402Client
from bankofai.x402.mechanisms.tron.exact import ExactTronScheme
from bankofai.x402.mechanisms.tron.exact import ExactTronClientScheme
from bankofai.x402.mechanisms.evm.exact import ExactEvmScheme

client = x402Client()
# Register TRON and EVM handlers
client.register("tron:*", ExactTronScheme(signer=my_tron_signer))
client.register("tron:*", ExactTronClientScheme(signer=my_tron_signer))
client.register("eip155:*", ExactEvmScheme(signer=my_evm_signer))

# Create payment from 402 response
Expand All @@ -49,10 +49,10 @@ payload = await client.create_payment_payload(payment_required)

```python
from bankofai.x402 import x402ClientSync
from bankofai.x402.mechanisms.tron.exact import ExactTronScheme
from bankofai.x402.mechanisms.tron.exact import ExactTronClientScheme

client = x402ClientSync()
client.register("tron:*", ExactTronScheme(signer=my_tron_signer))
client.register("tron:*", ExactTronClientScheme(signer=my_tron_signer))

payload = client.create_payment_payload(payment_required)
```
Expand Down
Loading