create_paywall
Generate paywall URLs that charge agents for accessing protected resources using on-chain payments, returning HTTP 402 until payment is verified.
Instructions
Create an x402 paywall that charges agents/clients for accessing a resource. Returns a public access URL that returns HTTP 402 until paid. Agents pay on-chain, then retry with proof to get the content.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wallet_id | Yes | Wallet ID to receive payments | |
| name | Yes | Human-readable paywall name (e.g. "Premium API Access") | |
| description | No | Description shown in the 402 response | |
| amount | Yes | Price in human-readable format (e.g. "0.01" for 0.01 USDC) | |
| token_type | No | "erc20" for EVM stablecoins, "spl" for Solana SPL tokens, "native" for ETH/SOL/POL/etc. | erc20 |
| token_address | No | Token contract address (ERC-20 for EVM, SPL mint Base58 for Solana). Required if token_type is "erc20" or "spl". Use get_chains to find stablecoin addresses. | |
| token_decimals | No | Token decimals (6 for USDC, 18 for ETH/most tokens) | |
| token_name | No | Token display name (e.g. "USDC", "ETH") | USDC |
| chain_id | No | Chain ID for payments (8453=Base, 1=Ethereum, etc.) | |
| resource_url | Yes | URL of the protected resource to serve after payment verification | |
| resource_mime | No | MIME type of the resource (e.g. "application/json", "text/plain") | application/json |