pay
Sign an x402 payment authorization for a USDC transfer on Hedera. Get the header value to attach when retrying a paid HTTP request.
Instructions
Sign an x402 payment authorization for a USDC transfer on Hedera. Returns the header value your HTTP client should attach when retrying the paid request.
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": {
"amount": "<amount>",
"recipient": "<recipient>"
},
"name": "pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | USDC amount as decimal string, e.g. "0.05" | |
| feePayer | No | Hedera account that will pay the HBAR gas fee to submit this transfer. Defaults to the recipient. | |
| resource | No | URL of the resource being paid for (from the 402 challenge) | |
| recipient | Yes | Recipient Hedera account ID, e.g. "0.0.12345" |