chain_safe_tx_hash
Safe multisig transaction hash + signing risk check — Compute the exact Safe (Gnosis Safe) transaction hashes an owner is asked to sign - domain hash, message hash and safeTxHash - so a hardware-wallet screen or Safe UI can be verified independently before signing (the Bybit-hack lesson). Reads the Safe's version, current nonce and threshold live on Ethereum, Base, Arbitrum, Optimism or Polygon and uses the matching EIP-712 scheme (pre-1.3.0 domain without chainId, pre-1.0.0 dataGas). Flags risk LOW/MEDIUM/HIGH/CRITICAL: DELEGATECALL to a non-MultiSend contract, self-calls that change owners/threshold/modules/guard/singleton, unlimited approvals, setApprovalForAll, gas refunds, nonce already used or queued; decodes multiSend batches, ERC-20 transfer/approve. Required: safe= (Safe address), to= (call target). Optional: chain= (ethereum default, base, arbitrum, optimism, polygon), value= (wei), data= (0x calldata), operation= (0 call / 1 delegatecall), nonce= (default: the Safe's current nonce), safe_tx_gas=, base_gas=, gas_price=, gas_token=, refund_receiver=, version= (lets you hash for an undeployed/counterfactual Safe). Returns EIP-712 typedData too. Hashes cross-checked against the Safe contract's own getTransactionHash(). Price: $0.004 USDC (Base, via x402).
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": {
"safe": "<safe>",
"to": "<to>"
},
"name": "chain_safe_tx_hash"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 | |
| safe | Yes | 0x849D52316331967b6fF1198e5E32A0eB168D039d |