x402_create_payment_request
Create an x402 payment request for a resource or service and get back the payment URL and request ID needed to collect cryptocurrency payments.
Instructions
Create an x402 payment request for a resource or service. Returns payment details including the payment URL and request ID.
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>"
},
"name": "x402_create_payment_request"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Price in USD format (e.g., '$0.10', '$1.50') | |
| resource | No | Resource identifier or URL | |
| description | No | Description of what the payment is for | |
| maxTimeoutSeconds | No | Maximum time for payment in seconds (default: 60) |