decode_transaction
Decodes Ethereum transaction calldata into human-readable function names, parameters, and intent using verified ERC-7730 metadata so users can understand what a transaction will do before signing.
Instructions
Decode transaction calldata using verified ERC-7730 metadata. Prefer clear_sign_payload for signing flows — it returns this decode plus the unified signing verdict, display text, and signing policy in one call.
This tool decodes Ethereum transaction calldata into human-readable format using metadata from the KaiSign registry. It provides:
Function name and signature
Decoded parameters with labels and formatted values
Intent description (e.g., "Swap 1.5 ETH for min 3000 USDC")
Metadata-declared command registry decoding
On-chain verification of metadata authenticity
Token savings: Cached metadata enables 80%+ token savings on repeated queries to the same contract.
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": {
"to": "<to>",
"data": "<data>"
},
"name": "decode_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Target contract address (0x...) | |
| data | Yes | Transaction calldata (0x...) | |
| value | No | Transaction value in wei (optional) | |
| chainId | No | Chain ID | |
| skipVerification | No | Skip on-chain verification (faster, uses cached verification) |