ucai_simulate_transaction
Simulate smart contract transactions before execution to preview outcomes, state changes, and token transfers, catching errors early.
Instructions
Simulate a smart contract transaction before execution. Shows outcome preview, state changes, token transfers, and catches errors early. Price: $0.01 per simulation.
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": {
"contractAddress": "<contractAddress>",
"functionName": "<functionName>",
"args": "<args>",
"abi": "<abi>",
"from": "<from>"
},
"name": "ucai_simulate_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| abi | Yes | Contract ABI | |
| args | Yes | Function arguments | |
| from | Yes | Sender address | |
| value | No | ETH value to send (in wei) | |
| network | No | The blockchain network to use | arbitrum |
| functionName | Yes | Function to simulate | |
| contractAddress | Yes | Contract address |