The x402 payment header for a signed bill
credit_bill_headerAfter credit_bill and the wallet's signature: the header the merchant reads (PAYMENT-SIGNATURE, or X-PAYMENT for x402 version 1), base64 JSON with the authorization and signature. Reads no chain and sends nothing: checks the authorization against the bill (the merchant's payTo, exactly its amount, not run out) and recovers a 65-byte signature to its payer. Send the same request again with header.name set to header.value.
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": {
"payment_required": "<payment_required>",
"authorization": "<authorization>",
"signature": "<signature>"
},
"name": "credit_bill_header"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| signature | Yes | The wallet's signature of credit_bill's typed_data (0x hex) | |
| authorization | Yes | The authorization credit_bill returned, as it returned it | |
| payment_required | Yes | The same payment_required given to credit_bill |