Access paid API endpoints and content using the x402 payment protocol. Use when you or the user want to call a paid API, access gated content, make an x402 p...
Use the Finance District wallet to access paid API endpoints and gated content via the x402 HTTP payment protocol. The wallet handles payment authorization and signing automatically — the agent fetches the content in a single call.
x402 is an HTTP-native payment protocol:
The Finance District wallet supports x402 payments on multiple chains and assets, not just a single network.
fdx status
If the wallet is not authenticated, refer to the authenticate skill.
Ensure the wallet has sufficient funds to cover the payment:
fdx call getWalletOverview
The primary command for accessing x402 resources. It discovers payment requirements, authorizes payment, and retrieves the content in one step:
fdx call getX402Content --url <endpoint-url>
| Parameter | Required | Description |
|---|---|---|
--url | Yes | The x402-enabled endpoint URL |
--preferredNetwork | No | Preferred chain ID for payment (e.g. 8453 for Base) |
--preferredNetworkName | No | Preferred chain name (e.g. base, ethereum) |
--preferredAsset | No | Preferred payment asset (e.g. USDC) |
--maxPaymentAmount | No | Maximum payment amount to authorize |
For cases where you want to inspect payment requirements or authorize without fetching:
fdx call authorizePayment --url <endpoint-url>
Same as getX402Content.
# Fetch content from a paid API (auto-discovers requirements and pays)
fdx call getX402Content \
--url https://api.example.com/premium/data
# Prefer paying with USDC on Base
fdx call getX402Content \
--url https://api.example.com/premium/data \
--preferredNetworkName base \
--preferredAsset USDC
# Set a max payment cap
fdx call getX402Content \
--url https://api.example.com/premium/data \
--maxPaymentAmount 1000000
# Just authorize without fetching
fdx call authorizePayment \
--url https://api.example.com/premium/data
fdx statusfdx call getWalletOverviewfdx call getX402Content --url <endpoint> to fetch paid contentfdx call authorizePayment first to inspect, then confirm with the human before proceedingImportant: Always inform your human about the payment before executing, especially for unfamiliar endpoints or amounts that seem high. Let them confirm they want to proceed.
The Finance District wallet supports multi-chain and multi-asset x402 payments. You can specify a preferred network and asset, giving flexibility to pay from whichever chain and token has available balance. Coinbase's implementation is limited to Base USDC.
fdx status to check, see authenticate skill)fund-wallet skill or swap-tokens skillfdx setup first, or see authenticate skillfund-wallet skillZIP package — ready to use