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.
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 | |||