Safe tx hash
safe_tx_hashCompute a Safe transaction's EIP-712 hash locally, then cross-check it against the Safe contract's on-chain getTransactionHash() to verify what a signer sees on a hardware wallet.
Instructions
Compute the EIP-712 safeTxHash for a Safe transaction locally and cross-check it with the Safe's on-chain getTransactionHash(). Use to verify what a signer should see on their hardware wallet.
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": {
"chain": "<chain>",
"safe": "<safe>",
"to": "<to>"
},
"name": "safe_tx_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| data | No | ||
| safe | Yes | ||
| chain | Yes | EVM chain: ethereum, base, arbitrum, optimism, polygon, bsc, avalanche | |
| nonce | No | defaults to the Safe's current nonce | |
| value | No | ||
| operation | No |