x402_build_payment_payload
Assembles an x402 payment payload from a signed EIP-3009 authorization for use in the X-PAYMENT header.
Instructions
Assemble the x402 paymentPayload from a signed EIP-3009 authorization, ready to send in the X-PAYMENT header.
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": {
"from": "<from>",
"to": "<to>",
"value": "<value>",
"validAfter": "<validAfter>",
"validBefore": "<validBefore>",
"nonce": "<nonce>",
"signature": "<signature>"
},
"name": "x402_build_payment_payload"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| from | Yes | ||
| nonce | Yes | ||
| value | Yes | Base units | |
| signature | Yes | ||
| validAfter | Yes | ||
| validBefore | Yes |