Verify wallet signature
util_verify_signatureUse when an agent must decide whether whoever is talking to it really controls a wallet: it recovers the address that signed a personal_sign (EIP-191) message and says whether it matches the one you expected. This is the check that turns a claimed address into a proven one. Do not use for EIP-712 typed data or for a contract signature (ERC-1271): this route verifies personal_sign. $0.005 per call, paid over x402 (USDC).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The exact message that was signed. | |
| expected | No | Optional address to compare the recovered signer against. | |
| signature | Yes | 65-byte 0x signature from personal_sign. |