Verify x402 payment signature
x402.verifyVerify an x402 PAYMENT-SIGNATURE against PAYMENT-REQUIRED terms through the facilitator before releasing paid content, confirming a buyer’s payment meets the agreed requirements.
Instructions
Verify an x402 PAYMENT-SIGNATURE against PAYMENT-REQUIRED terms via the facilitator. Call after a buyer presents a signature and before releasing paid content.
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_signature": "<payment_signature>",
"payment_required": "<payment_required>"
},
"name": "x402.verify"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | No | Optional agent identity for quota accounting. | |
| payment_required | Yes | PAYMENT-REQUIRED JSON/header the signature is meant to satisfy. | |
| payment_signature | Yes | PAYMENT-SIGNATURE header value from the buyer. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |