From 0a6fd2aea6b4150053a754ab40ed473968b08d8c Mon Sep 17 00:00:00 2001 From: Hades Date: Sat, 14 Mar 2026 00:58:30 +0800 Subject: [PATCH] update docs --- README.md | 4 ++-- python/x402/README.md | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 8dd324c7..85612d8b 100644 --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ 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 @@ -31,7 +31,7 @@ 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 diff --git a/python/x402/README.md b/python/x402/README.md index a6f8395f..4968efdc 100644 --- a/python/x402/README.md +++ b/python/x402/README.md @@ -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 @@ -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) ```