What problem does it solve?
x402-payment resolves 402 Payment Required flows by automatically negotiating, signing, and submitting token payments so your AI agent can finish protected API requests without manual intervention.
Core Features & Use Cases
- Automatic 402 handling: Detects payment requirements and performs the required payment flow using the x402 mechanisms.
- Cross-chain token payments: Supports TRON (TRC20 USDT/USDD) and EVM (ERC20 USDT/USDC) with network-specific routing.
- GasFree support for gasless payments: Prefers exact_gasfree when available and provides wallet info and activation flows to make gasless execution possible.
- Use case: An AI agent calls a protected endpoint that returns 402; this skill then pays the required amount from the configured Agent Wallet and returns the final response body for continued task execution.
Quick Start
Use the x402-payment skill to pay a protected TRON Nile endpoint by asking: "Invoke x402-payment with URL https://x402-demo.bankofai.io/protected-nile, network nile, and entrypoint chat, passing input {prompt: 'hello'}."