Read EVM, Solana, Tron or Bitcoin state (strictly read-only)
read_chainGeneric read-only chain reader for every SwapChan chain. EVM: op=balance | nonce | token_balance {token, owner} | call {address, function:"balanceOf(address) view returns (uint256)" or abi, args} with ABI-decoded result | storage {address, slot} | code | logs {address?, event:"Transfer(address indexed from,address indexed to,uint256 value)" or topics, fromBlock, toBlock (max 50k blocks)} decoded | block | tx | receipt; any EVM op accepts blockTag (number, hex, latest, finalized) for historical reads. op=contract = contract_reader safety read. Solana: balance, sol_account (getAccountInfo), sol_program_accounts {address: programId, filters}, sol_token_accounts {owner, token?}, sol_signatures, tx. Tron: tron_account, tron_resources (energy/bandwidth/frozen), tron_call {address, function:"balanceOf(address)", args:[hex params]}, token_balance, tx. Bitcoin: btc_utxos, btc_address, btc_tx. Use it to CONFIRM find_money evidence (re-run each recovery read yourself) and to probe unknown contracts. Cannot sign, send or broadcast. Result includes display markdown with chan images: show it to the user. How to combine this with the other tools: swapchan_playbook (workflows: find-money, best-swap, rebalance, revoke-approvals, bridge-stuck, token-safety, recover-old-wallet).
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>",
"op": "<op>"
},
"name": "read_chain"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | ||
| abi | No | ||
| args | No | ||
| hash | No | ||
| slot | No | ||
| block | No | ||
| event | No | ||
| limit | No | ||
| owner | No | ||
| token | No | ||
| topics | No | ||
| address | No | ||
| chainId | Yes | Chain id (1, 8453, 42161, 10, 137, 56, 43114, 59144, 534352, 792703809 Solana, 8253038 Bitcoin, 728126428 Tron) or name (eth, base, arbitrum, optimism, polygon, bnb, avalanche, linea, scroll, solana, bitcoin, tron). | |
| filters | No | ||
| toBlock | No | ||
| blockTag | No | ||
| encoding | No | ||
| function | No | ||
| fromBlock | No |