transaction-preview
Preview any transaction that isn't a plain buy or sell of a token (a claim, an approval, a contract call) before signing it; for token swaps use simulate-trade. Execute an EOA transaction on a disposable fork of BNB Smart Chain, Ethereum, Base or Arc. Supply target, calldata, optional native-coin value and up to ten ERC-20 assets to track. Returns receipt status, native-coin balance delta including gas, requested token deltas and direct approve allowance reads when available. Other assets, internal approvals and signatures are not inventoried; nothing is broadcast live. Costs $0.02 per successful call in USDC on Base, Polygon, Arbitrum, Avalanche, BNB Smart Chain (USDT) or Solana, paid with x402 in the call's _meta; failed calls are free.
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": {
"wallet": "<wallet>",
"to": "<to>",
"data": "<data>"
},
"name": "transaction-preview"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | Transaction target | |
| gas | No | Optional gas limit, 21000 to 3000000 | |
| data | Yes | Transaction calldata, 0x for native transfer | |
| chain | No | bsc (BNB Smart Chain, the default), eth (Ethereum), base (Base) or arc (Arc) | |
| value | No | Native coin wei (BNB or ETH), default zero | |
| tokens | No | Optional comma-separated ERC-20 assets to track, maximum ten | |
| wallet | Yes | Sending EOA |