verify_x402_signature
Checks an x402 EIP-191 personal_sign over a mandate JSON by recovering the signer and comparing it case-insensitively to the expected address, returning is_valid and recovered_address.
Instructions
Verify an x402 EIP-191 personal_sign over the mandate JSON: recover the signer with eth_account and compare (case-insensitively) to the expected address. Returns is_valid and the recovered_address.
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": {
"mandate_json": "<mandate_json>",
"signature_hex": "<signature_hex>",
"expected_address": "<expected_address>"
},
"name": "verify_x402_signature"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mandate_json | Yes | The exact mandate JSON string that was signed. | |
| signature_hex | Yes | 0x-prefixed hex signature (65 bytes). | |
| expected_address | Yes | The address expected to have signed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||