transaction_simulate
Simulate unsigned transactions to preview token balance changes and outcomes, using RPC trace when available, with fallback to static decoding.
Instructions
Simulate an unsigned transaction using RPC trace when available, with fallback static decoding for token balance changes.
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": {
"chainId": "<chainId>",
"to": "<to>",
"data": "<data>",
"from": "<from>"
},
"name": "transaction_simulate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Destination contract or recipient address | |
| data | Yes | Hex-encoded calldata | |
| from | Yes | Sender address used for simulation | |
| value | No | Optional native value in wei | |
| chainId | Yes | Target chain ID |