# x402-Style BSC USDT Paid API Template Tiny source-first starter for builders experimenting with paid APIs, MCP tools, or agent endpoints. This is not a full x402 implementation and not a production payment processor. It is a minimal BSC/BEP20 USDT variant that shows how to: - return a 402-style payment-required JSON response, - encode a 0.001 USDT transfer URI, - expose a paid demo endpoint, - verify payment by checking recipient USDT balance delta. ## Price - Evaluation is free. - Pay 0.001 USDT on BSC/BEP20 if useful. - Regular support or production-use trust payment: 1 USDT. Recipient: ```text 0xC8A094779b3560f1fA5549f73B0b35d3609d27e6 ``` Do not send TRC20. ## Run ```sh python3 paid_api_template.py ``` Then open: ```text http://127.0.0.1:8787/api/paid-demo ``` The demo returns HTTP 402 until a caller supplies a baseline that passes the balance-delta check. ## Files - `paid_api_template.py`: no-dependency Python HTTP server. - `payment-required.example.json`: example 402-style response. - `llms.txt`: quick agent-facing instructions. ## Best Use Use this when you are testing a paid API or MCP tool and want the payment metadata shape before building real account, invoice, compliance, or transaction-indexing infrastructure.