paywall_create_route
Create an x402 paywall for one HTTP endpoint, charging per call in USDC sent directly to your payout wallet and optionally proxying paid requests to an upstream backend.
Instructions
[x402 Paywall] Paywall a new endpoint with x402 pay-per-call, settled in USDC straight to payTo. With upstreamUrl, paid requests are proxied to your backend. Applies live within ~20s (needs PAYWALL_API_KEY).
Use when you want to put one HTTP endpoint behind x402 pay-per-call, paid in USDC straight to your wallet. Not for many routes at once (use paywall_import_routes).
Behavior: writes state upstream (not read-only); needs the credentials or wallet signature noted above where applicable.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"price": "<price>",
"network": "<network>",
"payTo": "<payTo>"
},
"name": "paywall_create_route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Route path, e.g. "/weather". | |
| asset | No | Payment token contract; defaults to USDC on the network. | |
| payTo | Yes | Your payout wallet (0x…). Settlement pays here directly; nothing is custodied. | |
| price | Yes | Decimal USD amount, e.g. "0.01" or "$0.01". | |
| method | No | Default GET. | |
| network | Yes | CAIP-2 id: Base mainnet eip155:8453, Base Sepolia eip155:84532. | |
| description | No | Up to 200 chars: letters, digits, space . _ - | |
| upstreamUrl | No | Your https backend. Omit for the demo confirmation payload. |