kosyak-evm-mcp-server
v2.35.0MCP server for EVM blockchains — 69 tools, 10 prompts, 86 networks (plus any chain ID)
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_wallet_address
Address of the configured signing wallet (EVM_PRIVATE_KEY): the sender of every write and signature tool. isError when no key is set.
| Parameter | Type | Description |
|---|---|---|
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_chain_info
Node-reported chain ID, head block, RPC endpoints, explorer, Tenderly status, `vm`, `readLanes` (log-scan requests in flight at once: >1 only through the proxy pool on a keyless endpoint; scan_blocks uses max(8, it), multicall min(16, max(4, it)) batches). `chainIdMismatch` = endpoint serves ANOTHER chain; trust nothing from it. `vm: EraVM` = EVM bytecode tools don't apply; `vm: unknown` = the chain's VM probe got no answer (`vmNote`). `probe` adds `capabilities` (archive, getLogsWindow, blockReceipts, debugTrace, traceModule, multicall3…): check before planning traces or wide log scans; a c…
| Parameter | Type | Description |
|---|---|---|
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
probe | boolean | Probe the first endpoint that serves the chain (~10 small requests). Default false. |
probeAll | boolean | Probe every endpoint, not just the primary. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_supported_networks
Every chain by `chainId` with its name and accepted `aliases`, plus chains that exist only through EVM_RPC_URLS (`source: custom-rpc`). ANY chain ID works as `network` beyond this list when viem's registry knows it (its default RPC, checked to answer as that chain before use) or EVM_RPC_URLS gives it an endpoint. Call once, not per query.
| Parameter | Type | Description |
|---|---|---|
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_gas_price
Base fee, the node's suggested tip, and tips actually included over the last 20 blocks (`priorityFeeObservedGwei` p10/p50/p90). Set tips from p50 (p90 to land fast): the suggestion can be ~0 (`priorityFeeWarning`). `totalGwei` and `typicalCosts` (native token) use base fee + the suggestion; `usd: true` adds `nativeUsdPrice` (CoinGecko) and `typicalCostsUsd`. On rollups that fold data availability into gas, a real transfer costs more than 21k: estimate_gas says (`gasModel`).
| Parameter | Type | Description |
|---|---|---|
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
usd | boolean | Add the native coin's USD price and typicalCostsUsd (one CoinGecko request). |
resolve_ens_name
ENS name → `resolvedAddress`. Address params accept ENS directly, so use this only to show the address. A chain without its own ENS, or whose own ENS does not know the name (Linea), resolves against mainnet; `answeredBy` names the chain that answered. Unresolvable name → isError.
| Parameter | Type | Description |
|---|---|---|
ensName * | string | e.g. 'vitalik.eth'. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
lookup_ens_address
Reverse ENS: address → primary name (the Ethereum primary name; ENSIP-19 per-L2 names are not queried). `ensName` is null when there is none, with `status` no_primary_name, or reverse_record_mismatch (a reverse record whose name does not resolve back: no resolver, no addr(), or another address; `detail` says which — `claimedName`, present when ENS reports it, is NOT a primary name). A chain without its own ENS, or whose own ENS has no name for it (Linea), is answered by mainnet ENS; `answeredBy` names the chain. A lookup that failed → isError, never null.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_block
Block header + transactionCount; optionally transactions, EIP-1559 burn, and all receipts (status, gasUsed, logCount) in one call. `from`/`to`/`participant` keep only the transactions (and receipts) of that address — the block is filtered on the server, `matchingTransactions` counts them. `receiptsUnavailable` = node can't serve them (use get_transaction_receipt); `receiptMismatch` = receipts from another block state, don't pair. Caps: 500 receipts (`receiptsOmitted`), 300 logs (`logsOmitted`); counts stay exact. Which block changed a value: find_change_block.
| Parameter | Type | Description |
|---|---|---|
blockIdentifier * | string | Decimal or 0x-hex number, 0x block hash, latest/pending/earliest/safe/finalized, or a time ("2026-09-01T12:00Z", "@1727740800", "2h"). |
from | string | Only transactions sent by this address (implies includeTransactions). |
includeBurnedFee | boolean | Add burnedFeeWei/burnedFeeEther (baseFee × gasUsed). Default false. |
includeReceipts | boolean | Add every receipt (eth_getBlockReceipts). Default false. |
includeTransactions | boolean | Full transaction objects, not just transactionCount. Default false. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
participant | string | Only transactions this address sent or received directly. |
receiptLogs | boolean | With includeReceipts: add decoded logs (cap 300). Default false; for events prefer get_logs. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
to | string | Only transactions sent to this address (implies includeTransactions). |
get_latest_block
Head block: header + transactionCount. Same as get_block 'latest', minus receipts.
| Parameter | Type | Description |
|---|---|---|
includeBurnedFee | boolean | Add burnedFeeWei/burnedFeeEther (baseFee × gasUsed). Default false. |
includeTransactions | boolean | Full transaction objects, not just transactionCount. Default false. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_balance
Native gas-token balance (ETH/POL/BNB…) as `balance.wei` and `balance.ether` (18-decimal units); `quorum` asks 2-5 endpoints at one block. One ERC-20 → get_token_balance; every token held → get_token_holdings. A balance at several times: multicall `blockNumbers`; when it became zero: find_change_block.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
blockNumber | string | Echoed (as a number) only when given. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
quorum | integer | Also put the same question to this many of the chain's endpoints (2-5; your rpcUrls when given) and compare: `quorum.verdict` known / not_known_and_sure (every endpoint asked answered "absent") / not_… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_token_holdings
Every token (ERC-20/721/1155) an address holds, from the Blockscout indexer — the way to list holdings without knowing the contracts (get_token_balance needs one). Tokens only; native coin → get_balance. Ranked by `valueUsd`, the indexer's quote: check `thinMarket`/`balanceExceedsSupply` before calling a top row a real position. `unpriced` present ⇒ NOT ranked by value (top rows are likely spam). `totalCount` is a floor, not exhaustive. NFT `balance` is a count. isError on chains with no Blockscout instance (Boba's explorer is Routescan, which has no holdings endpoint).
| Parameter | Type | Description |
|---|---|---|
address * | string | |
limit | number | Max rows, 1-500 (default 100). Up to half may be spent showing one row of each standard held; `standardsMissing` names any that did not fit. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
type | string | Default 'all'. |
get_token_balance
Balance of one ERC-20 token for an address: raw, decimals-formatted, symbol. Native coin → get_balance; which tokens an address holds → get_token_holdings. A series over time: multicall `blockNumbers`; when it changed: find_change_block (token_balance).
| Parameter | Type | Description |
|---|---|---|
address * | string | |
tokenAddress * | string | |
blockNumber | string | Echoed (as a number) only when given. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_allowance
ERC-20 allowance an owner granted a spender: raw `allowance`, `formatted`, `isInfinite` (≥ 2^255 counts as unlimited). `decimalsAssumed: true` ⇒ decimals() failed and `formatted` assumed 18 — use the raw value. Check before calling approve_token_spending. Many owners/tokens, or NFTs: approval_exposure.
| Parameter | Type | Description |
|---|---|---|
spenderAddress * | string | |
tokenAddress * | string | |
blockNumber | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
ownerAddress | string | Default: the configured wallet. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_transaction
Transaction as submitted (from/to/value/input/gas/nonce), also while pending (`blockNumber` null). Success/revert, gasUsed and logs → get_transaction_receipt. `decodedInput` appears only for well-known selectors; otherwise use decode_transaction_input.
| Parameter | Type | Description |
|---|---|---|
txHash * | string | |
includeTimestamp | boolean | Add timestamp_msk (block time; +1 RPC call). Default false. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
quorum | integer | Also put the same question to this many of the chain's endpoints (2-5; your rpcUrls when given) and compare: `quorum.verdict` known / not_known_and_sure (every endpoint asked answered "absent") / not_… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_transactions
Many transactions by hash in one call (up to 1000; past 200 needs outFile): a compact row per hash — from, to, nonce, value (wei), blockNumber, type, selector, inputBytes; `receipts: true` adds status, gasUsed, effectiveGasPrice, contractAddress, logCount. `status`: found / not_found (at least two endpoints answered "not found" and none was silent: `checkedEndpoints`) / not_found_unconfirmed (only one could be asked) / unread (no answer — not absence). Pending txs have blockNumber null.
| Parameter | Type | Description |
|---|---|---|
hashes * | array | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
receipts | boolean | Add each mined transaction's receipt fields (+1 request per hash). Default false. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_transaction_receipt
Receipt: `status` success/reverted, gasUsed, effectiveGasPrice, logs with `decoded` events (47+ known ones, the rest by the emitter's verified ABI or exact signature fits — `decoded.source`, `decodedByEvidence`, `undecodedLogs`), `assetSummary` (amounts in raw base units). `summary: true` drops the raw logs and logsBloom (keeps logCount, event names, assetSummary). `netFor: [addresses]` nets each address's token flow from the Transfer/Mint/Burn events (`netFor[].tokens[].net`; native value is not in logs — get_transaction_trace has it). `resolveTokens: true` adds symbol/decimals and `forma…
| Parameter | Type | Description |
|---|---|---|
txHash * | string | |
decodeUnknown | boolean | Decode logs the built-in table does not know (default true): by the emitter's verified ABI (a changed proxy: the implementation set at the log's block), else by signature databases when topics and dat… |
includeTimestamp | boolean | Add timestamp_msk (block time; +1 RPC call). Default false. |
netFor | array | Addresses to net token flows for ("how much of each token reached X"). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
quorum | integer | Also put the same question to this many of the chain's endpoints (2-5; your rpcUrls when given) and compare: `quorum.verdict` known / not_known_and_sure (every endpoint asked answered "absent") / not_… |
resolveTokens | boolean | Read symbol/decimals of the tokens moved (one multicall) and add formatted amounts. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
summary | boolean | Omit raw logs and logsBloom. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
wait_for_transaction
Polls until mined with N confirmations. `status`: confirmed | failed (mined, reverted) | `replaced (…)`: a same-nonce tx mined instead, and `minedTxHash`, block, gas, assetSummary describe the REPLACEMENT. A timeout is isError, not a failed tx; check get_transaction_receipt.
| Parameter | Type | Description |
|---|---|---|
txHash * | string | |
confirmations | integer | Default 1, max 1000. |
network | string | |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutSeconds | integer | Max 3600. Default 180, or 60 + 15 per confirmation if larger. |
get_transaction_trace
Call tree of a mined tx. `backend` says who answered: 'tenderly' (a TENDERLY_RPC_URLS gateway: call tree, state changes, decoded logs, asset/balance changes) or, with no gateway for the chain or when it fails, 'rpc:debug_traceTransaction' / 'rpc:trace_transaction' from the chain's own nodes (the primary, then up to 2 alternates per method; get_chain_info probeAll shows which endpoints serve them): call tree, `firstRevertedCall`, `nativeTransfers`, receipt logs decoded + `assetSummary` — no stateChanges/balanceChanges. Frames left unnamed get `selectorGuess`/`revertGuess` from signature datab…
| Parameter | Type | Description |
|---|---|---|
txHash * | string | |
backend | string | Default auto: Tenderly when configured for the chain, else (or on its failure) the node. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
summary | boolean | Drop the call tree (trace[], stateChanges[]); keep status, gas, logs and value movements. Default false. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
decode_transaction_input
Decode calldata into `decoded` {signature, args, source}. Tries abiJson, contractAddress's verified ABI (proxy-aware), then signature databases (a candidate must re-encode to exactly these bytes), then Tenderly; else a structural guess from word shapes (`structure`). `source` containing UNVERIFIED, or `unverifiedSignature` beside `candidates` → a lead, not a fact. `signatureSourcesFailed` → lookup incomplete; retry before calling the selector unknown.
| Parameter | Type | Description |
|---|---|---|
data * | string | 0x calldata; under 4 bytes is decoded structurally. |
abiJson | string | ABI JSON; tried first. |
contractAddress | string | Contract the calldata was sent to; its verified ABI is tried before the signature databases. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
noSelector | boolean | Decode the whole payload as arguments (no 4-byte selector). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
structure | boolean | Also return the structural decode when a signature matched (default false). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_token_price
CoinGecko spot price + 24h change by ticker or CoinGecko id, not by contract address. `warning` = input was not a known ticker and was queried as a CoinGecko id, which may be a DIFFERENT asset; verify or pass the exact id.
| Parameter | Type | Description |
|---|---|---|
token * | string | Ticker (ETH, USDC) or CoinGecko id (ethereum, usd-coin). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
vsCurrency | string | usd, eur, btc… Default usd. |
get_address_history
Explorer-indexed history of an address as a PARTICIPANT (sender/receiver) — not every transfer of a token contract (that is get_logs). type: native txs, internal (value moved by contract calls), or erc20/erc721/erc1155 transfers. `valueSummary` sums this page only. `pageFull: true` ⇒ more rows exist: follow `continueWith` (cursor `nextStartBlock`/`nextEndBlock`, or `nextPage`). Merging pages: drop this page's rows in `boundaryBlock` (the next call returns that block whole) and sum `valueSummary.completeBlocks` (present on every page) — never de-duplicate by hash/traceId/logIndex: two rea…
| Parameter | Type | Description |
|---|---|---|
address * | string | |
type * | string | |
contractAddress | string | Only this token contract (token types only). |
endBlock | number | |
explorer | string | Force a block-explorer backend. Default: Etherscan V2 where it serves the chain, otherwise the chain's Blockscout instance. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
offset | number | Rows per page (default 100; Etherscan free tier caps at 1000). |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
page | number | Default 1. page × offset must stay ≤ 10000; go further by moving startBlock/endBlock. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
sort | string | By block; default desc (newest first). |
startBlock | number | |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
find_recent_calls
Reverse-engineer an unverified contract from its recent successful DIRECT txs (explorer history; calls arriving via routers/other contracts are invisible), grouped by 4-byte selector in `bySelector`: count, calldata length, `staticSlots` (per 32-byte word: `typeHint` + samples), sample txs, `knownSignature`. `noDispatcher: true` → the first 4 bytes are not function selectors; `notInDispatcher` → that group hits the fallback.
| Parameter | Type | Description |
|---|---|---|
address * | string | Contract that received the txs. |
explorer | string | Force a block-explorer backend. Default: Etherscan V2 where it serves the chain, otherwise the chain's Blockscout instance. |
limit | integer | Txs fetched from the address history, sent and received (default 100, max 500). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
samplesPerSelector | integer | Sample values per slot and sample txs per selector (default 3, max 10). |
selector | string | 0x + 8 hex; only this selector (default: all, most-called first). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_contract_abi
Contract ABI plus `readableFunctions`/`readableEvents`. For a proxy `abi` is proxy ∪ implementation (∪ every diamond facet) — use it on the proxy address; `proxyAbi`/`implAbi` split it. Unverified code gets a reconstruction: `abiSource` 'ipfs-metadata' (exact), '…-unconfirmed' (hint) or 'recovered' (input types only, no outputs) — for an implementation in `implRecovered`, never merged into `abi`. `implAbiFetchTransient` → retry, not unverified; `facetAbiFailures`/`facetsOmitted` → functions missing from `abi`. "Does it have withdraw/exit?": format 'signatures' + match 'withdraw|e…
| Parameter | Type | Description |
|---|---|---|
contractAddress * | string | |
format | string | 'signatures': one line per entry (selector/topic0, canonical signature, mutability, returns) instead of ABI JSON — about 60× smaller. Default 'json'. |
match | string | Keep only entries whose name contains this (case-insensitive; 'withdraw|unstake|exit' for alternatives). |
mutability | array | Keep only functions of these kinds (drops events and errors). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
resolveProxy | boolean | Merge the implementation ABI (default true); false = the address's own verified ABI only, no reconstruction. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
read_contract
eth_call one function (nothing is sent) and decode `result`. ABI: abiJson, else the verified proxy+implementation ABI, else built-in ERC-20 views (name, symbol, decimals, totalSupply, balanceOf, allowance), else, only when no verified ABI exists, the ABI recovered from the bytecode — or pass a full signature as functionName (a verified ABI still supplies its output types). Without known output types the answer is `returnData` + `interpretations` (guesses), not `result`; overloads are chosen by arg count. A revert is isError with a decoded `revert`; classification 'method_not_found_or_bare_re…
| Parameter | Type | Description |
|---|---|---|
contractAddress * | string | |
functionName * | string | Name (e.g. 'balanceOf'), or a full signature ('owner()', 'balanceOf(address) returns (uint256)') to call a function no ABI declares. |
abiJson | string | ABI JSON; default: auto-fetched. |
args | array | |
blockNumber | string | |
from | string | msg.sender for the call, for sender-dependent functions. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
stateOverride | array | Per-account overrides applied before the call ('what if X were Y'); same shape as simulate_call. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
value | string | Native value to attach, in ether (e.g. '0.1'). |
write_contract
State-changing contract call from the configured wallet. A DRY_RUN revert is isError with no trace — debug it with simulate_transaction. view/pure functions are refused (read_contract). Unverified contract: pass abiJson.
| Parameter | Type | Description |
|---|---|---|
contractAddress * | string | |
functionName * | string | Name only, e.g. 'mint'. Overloads are picked by args count; if still ambiguous, pass abiJson with just that overload. |
abiJson | string | Default: verified ABI, auto-fetched (proxy-aware). |
args | array | uints in base units, NOT scaled by decimals. |
confirm | string | |
gas | string | |
gasPriceGwei | string | |
maxFeePerGasGwei | string | |
maxPriorityFeePerGasGwei | string | |
network | string | |
nonce | integer | |
value | string | Native value in ether (payable functions). |
send_raw_transaction
Broadcast a signed raw tx; returns txHash (unmined) + decoded `parsed`. DRY_RUN only decodes — no simulation, balance or nonce check. `warning` flags a pre-EIP-155 tx (replayable on any chain) or a signed chainId ≠ network, which CONFIRMED refuses. Bypasses the wallet nonce manager.
| Parameter | Type | Description |
|---|---|---|
rawTx * | string | Signed serialized tx, 0x-hex. |
confirm | string | |
network | string | Must match the tx's signed chainId. |
multicall
Read calls at ONE block (pinned, echoed as `blockNumber`) — or the same calls at each of `blockNumbers` (time series, a manual bisection; rows then carry their `blockNumber`). ABI resolved per call as in read_contract, or give `functionName` as a full signature. Up to 2000 reads inline (calls × blocks), or 50,000 from `callsFile` with `outFile` (rows to disk, summary in the reply). Per-call `status`: success → `result`; reverted → `error` + `decodedRevert`; no_data → no contract or no such function (not zero); unread → no usable answer (transport, or output that did not decode, kept…
| Parameter | Type | Description |
|---|---|---|
allowFailure | boolean | Default true; false → isError at the first call that is not success. |
batchSize | integer | Calls per Multicall3 batch (default 100). |
blockNumber | string | One block for every call; a tag or a time ("30d", "2026-09-01", "@1727740800") is resolved once. |
blockNumbers | array | Read every call at each of these blocks (numbers, tags or times; max 100). Not with blockNumber. |
calls | array | Max 2000. Or callsFile. |
callsFile | string | Absolute path to a JSON array or JSONL of the same call objects, max 50,000; more than 2000 need outFile. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
transfer_native
Send the native coin (ETH/POL/BNB…) from the configured wallet. Tokens: transfer_erc20.
| Parameter | Type | Description |
|---|---|---|
amount * | string | |
to * | string | |
confirm | string | |
gas | string | |
gasPriceGwei | string | |
maxFeePerGasGwei | string | |
maxPriorityFeePerGasGwei | string | |
network | string | |
nonce | integer |
transfer_erc20
Send ERC-20 tokens from the configured wallet; DRY_RUN details show the scaled `rawAmount` and `decimals`. Insufficient token balance surfaces as a revert (isError).
| Parameter | Type | Description |
|---|---|---|
amount * | string | |
to * | string | |
tokenAddress * | string | |
confirm | string | |
gas | string | |
gasPriceGwei | string | |
maxFeePerGasGwei | string | |
maxPriorityFeePerGasGwei | string | |
network | string | |
nonce | integer |
approve_token_spending
Set an ERC-20 allowance for spenderAddress from the configured wallet. Replaces the current allowance (read it first: get_allowance); some tokens (USDT) revert on non-zero → non-zero, so set '0' first.
| Parameter | Type | Description |
|---|---|---|
spenderAddress * | string | |
tokenAddress * | string | |
amount | string | '0' revokes. Exactly one of amount / infinite is required. |
confirm | string | |
gas | string | |
gasPriceGwei | string | |
infinite | boolean | Approve max uint256. isError if combined with amount. |
maxFeePerGasGwei | string | |
maxPriorityFeePerGasGwei | string | |
network | string | |
nonce | integer |
get_nft_info
ERC-721 name/symbol and one token's tokenURI; `resolveMetadata` also fetches the JSON (data:, ipfs://, ar://, http(s); untrusted text). Not the owner (read_contract ownerOf), not ERC-1155 uri(). A failed tokenURI sets `tokenUriStatus`: only 'nonexistent' proves the token is missing; 'node_error' = the call never ran.
| Parameter | Type | Description |
|---|---|---|
contractAddress * | string | |
tokenId * | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
resolveMetadata | boolean | Default false. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
nft_recent_activity
Transfer activity of an NFT collection over the last `blocks` blocks (eth_getLogs scan). ERC-721 unless standard:'erc1155' (not auto-detected). `summary`: transferCount, mintCount, burnCount, uniqueAddressesInvolved, hasSecondaryTransfers; plus the newest `transfers`. excludeMints filters the list only, never the counts. On `partialScan`, hasSecondaryTransfers is null, never false. Whether it can be sold: nft_check_transferability.
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
blocks | number | Blocks back from head (default 10000; 200-1000 on free-tier RPCs — larger takes minutes). |
chunkSize | number | Blocks per eth_getLogs request (default 10). |
excludeMints | boolean | Drop mints from `transfers` (default true). |
limit | number | Max transfers listed (default 50). |
maxChunks | number | Chunk cap (default: what the range needs; hard max 2000). A range needing more is refused — raise chunkSize. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
requestDelayMs | number | Ms between chunks per lane (default 50); through the proxy pool several lanes run at once (get_chain_info readLanes). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
standard | string | Default 'erc721'. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
nft_check_transferability
Can this collection's NFTs be transferred/sold? ERC-721 or ERC-1155 (auto-detected). Simulates a transfer from a current holder (Tenderly if configured, else eth_call), probes an ERC-721-C validator's marketplace allowlist (ERC-721 only), and checks recent on-chain transfers, which override a failed simulation. `classification`: open / marketplace_only / frozen / likely_soulbound / inconclusive; `transferable: null` = unknown, not 'no'; `confidence` drops a step on partialScan. An unusable tokenId is replaced by another token (or by none): `targetTokenId` is the id actually tested, and `answer…
| Parameter | Type | Description |
|---|---|---|
collection * | string | |
blocks | number | Blocks of transfer history to scan (default 10000; 200-1000 on free-tier RPCs). |
deadAddress | string | Simulated recipient; default 0x…dEaD. Use an EOA: a contract's onERC721/1155Received hook can make the safe-transfer simulation revert. |
knownOperators | array | Operator addresses or ENS names to test on the validator allowlist; replaces the built-in OpenSea/Blur/LooksRare/X2Y2 list. Entries that do not resolve are listed in `unresolvedOperators`; if none res… |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
requestDelayMs | number | Ms between log-scan chunks per lane (default 50); through the proxy pool several lanes run at once (get_chain_info readLanes). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
tokenId | string | Token to simulate (default: one from recent transfers, then ownerOf(1)/(0), then totalSupply-1). |
get_erc1155_balance
ERC-1155 balance of one tokenId for an address, as a raw integer (ERC-1155 has no decimals).
| Parameter | Type | Description |
|---|---|---|
address * | string | Owner. |
contractAddress * | string | |
tokenId * | string | |
blockNumber | string | Echoed (as a number) only when given. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_logs
Event logs by emitting `address` and/or `topics`, with 47+ known events decoded (`decoded`, `eventSummary`); `eventSignature` sets topic0. Filtered ranges of 500+ blocks on Etherscan chains go to the explorer (1000 logs per call), else eth_getLogs — `source` says which. `incompleteRange` present ⇒ only `rangeCovered` was scanned and `totalCount` covers just that: continue from `resumeFromBlock` or the block it names. `limit` keeps the EARLIEST logs. The node's getLogs window up front: get_chain_info probe (`getLogsWindow`). One wallet's own transfers: get_address_history. Not the logs but…
| Parameter | Type | Description |
|---|---|---|
fromBlock * | string | Block number (decimal or 0x) or tag; 'pending' is refused. |
address | string | Emitting contract. |
aggregate | string | Return `groups` instead of logs: each distinct emitter / topic0 / indexed topic with count, firstBlock, lastBlock (a padded address topic also as `address`). Holders of a token: Transfer + 'topic2'. R… |
autoChunk | string | eth_getLogs strategy. 'onError' (default): one request, adaptive rescan if the node refuses the range. 'adaptive': window follows the node's limits; stops at its budget with `resumeFromBlock`. 'always… |
chunkSize | number | Blocks per chunk in fixed mode (default 10); starting window in 'adaptive'. Setting it makes the onError rescue fixed-size. |
confirmEmpty | boolean | An empty eth_getLogs answer is re-read on a SECOND endpoint (default true): `emptyCheck` says confirmed, contradicted (its logs are used) or unconfirmed. |
crossCheck | integer | Windows (default 1; 0 = none) re-read on a SECOND endpoint when eth_getLogs returned logs, centred on blocks that have some, and compared log by log (block, logIndex, tx): `completeness` says verified… |
decodeUnknown | boolean | Decode logs the built-in table does not know (default true; the returned logs only): by the emitter's verified ABI (a changed proxy: the implementation set at the log's block), else by signature datab… |
eventSignature | string | e.g. 'Transfer(address,address,uint256)' (param names/indexed allowed); computes topic0. |
explorer | string | Logs never come from Blockscout: 'blockscout' is rejected. |
force | boolean | Scan even when the node's STATED block limit puts the range out of the request budget's reach (default false: the scan stops at once with `scanRefused` — the requests it would need — instead of co… |
limit | number | Max logs returned (default 100); totalCount/eventSummary still count all. |
maxChunks | number | Fixed mode: max chunks (default 50; more throws). Adaptive: max requests before returning a cursor (default 200). |
maxRetriesPerChunk | number | Rate-limit retries per chunk, exponential backoff (default 3). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
requestDelayMs | number | Ms between chunks per lane (default 50); through the proxy pool several lanes run at once (get_chain_info readLanes). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
sampleWidth | integer | Blocks per sample window (default: the width this endpoint last answered, else 2,000). |
sampleWindows | integer | Read only this many windows spread evenly over the range (a census of a long history): `sampled` says how much was read — a SAMPLE, never a complete answer. |
source | string | 'auto' (default): explorer only for a filtered range of 500+ blocks on an Etherscan chain, falling back to eth_getLogs. 'rpc': eth_getLogs only. 'explorer': force it (needs a filter). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
toBlock | string | Same format; default 'latest'. Clamped to the head. |
topics | array | Up to 4; each 32-byte hex (addresses left-padded) or null = any. A null topic0 is filled from eventSignature. |
verbose | boolean | Keep raw topics/data beside `decoded` (default false). |
estimate_gas
eth_estimateGas for a raw to/value/data tx, plus its cost at the current gasPrice, and `gasModel` — what the number IS on this chain: plain (execution, an L1) | l1-fee-separate (the chain's L1 fee oracle answers — OP stack, Scroll: an L1 data fee is charged on top, `l1FeeUpperBoundWei`) | da-in-gas-units (Arbitrum, Etherlink: data availability folded into the gas units — a bare transfer can cost 600k; `plainTransferEstimate`) | eravm-pubdata (ZK stack: `zks` gives gasPerPubdataLimit for a 0x71 tx) | nonstandard-gas-units (a bare transfer is not 21k, reason not identified) | unknown (an L…
| Parameter | Type | Description |
|---|---|---|
to * | string | |
data | string | Calldata, 0x-hex. |
from | string | Default: the configured wallet, else none (node default). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
value | string | Native value in ether. |
compute_selector
keccak256 of a signature, locally: functions/errors → 4-byte selector, events → 32-byte topic0 (for get_logs). Returns `hash` + `canonical`; with `signatures` (up to 500) a row per signature, a bad one an `error` row. Selector → name is lookup_selector.
| Parameter | Type | Description |
|---|---|---|
kind * | string | |
signature | string | 'transfer(address,uint256)' or a full Solidity declaration with names. |
signatures | array | Many at once (same kind); instead of `signature`. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
encode_calldata
ABI-encode a function call locally (no RPC, no ABI fetch): returns `calldata` (0x selector + args), `selector`, `canonical`. Arg count must match the signature.
| Parameter | Type | Description |
|---|---|---|
signature * | string | 'transfer(address,uint256)' or a full Solidity declaration with names. |
args | array | Integers decimal or hex; addresses as 0x hex (no ENS); bytes as hex. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_code
Bytecode at an address: `accountType` EOA / 'EIP-7702 delegated EOA' (`delegatedTo`, `isEIP7702Delegation`) / contract; an EOA or delegated one also gets its `nonce` at that block (activity: a delegated wallet with a large nonce and no balance is being used by someone else), `codeSize`, `codeHash`, `compilerMetadata`, `vm` ('EraVM' → EVM analysis tools do not apply). 'EOA' only means no code at that block (also undeployed or self-destructed); `eoaCheck` says whether another endpoint confirmed it; `quorum` asks 2-5 endpoints. Deployment block: get_contract_creation, or find_change_block with…
| Parameter | Type | Description |
|---|---|---|
address * | string | |
blockNumber | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
quorum | integer | Also put the same question to this many of the chain's endpoints (2-5; your rpcUrls when given) and compare: `quorum.verdict` known / not_known_and_sure (every endpoint asked answered "absent") / not_… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
saveTo | string | Absolute file path to write the hex to (never overwrites); the response then omits the bytecode. |
summary | boolean | Omit the bytecode; return only size and first/last 32 bytes. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_proxy_implementation
Proxy detection (latest block) → `isProxy`, `proxyType`, `implementation`: EIP-1967 (+`admin`, beacons resolved), EIP-1822, Zeppelin slots, EIP-1167 clones, delegatecall proxies with an implementation()/masterCopy() getter, EIP-2535 diamonds (`facets` + `facetSelectors`, no single implementation). `isProxy: false` = no known pattern matched.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_storage_at
One raw storage slot `value` + `interpretations` (asAddress, asUint256, asBool, isEmpty) of the whole 32-byte word — a packed slot holds several variables, split it yourself. Several slots at one block: read_storage_batch.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
slot * | string | 0x hex slot index. |
blockNumber | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
find_storage_slot
The storage slot a getter reads — no layout arithmetic, no source needed (forge's stdstore, over RPC): every candidate slot gets its own random sentinel in a storage-override eth_call (≤ 2,048 per call), and the sentinel the getter returns names the slot. Candidates, most common first: base slots fromBaseSlot..maxBaseSlot−1 (default 0..511), Solidity keccak(key . slot) and Vyper keccak(slot . key) with nested keys in order, a struct member +1..+memberOffsets−1 past the mapped slot, pre-0.3 Vyper's keccak(mapped) + member, and — when the last argument is an integer — that argument a…
| Parameter | Type | Description |
|---|---|---|
address * | string | The contract whose getter is called (a proxy: its own address — the storage is the proxy's). |
args | array | The getter's arguments (mapping keys), raw ABI values. |
blockNumber | string | |
fromBaseSlot | integer | First base slot tried (default 0): search a far window without repeating the near one. |
getter | string | The view function: 'balanceOf(address)', 'usedNonces(bytes32)', 'allowance(address,address)'. |
maxBaseSlot | integer | Base slots tried up to this, exclusive (default 512, max 32768): upgradeable contracts' __gap arrays push mappings past 256. |
memberOffsets | integer | Struct member offsets tried past the mapped slot, 0..N−1 (default 4); also array element sizes 1..N. Candidates (bases × layouts × offsets) are capped at 65,536. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
variable | string | Instead of getter: a public state variable's name, its getter's types taken from the verified ABI. |
read_storage_batch
Up to 256 storage slots at ONE pinned block (echoed as `blockNumber`): pass `slots` or `start`+`count`, and/or packed fields. A slot whose read failed carries `error` instead of `value` — unread, not zero. `fields`: values cut out of their words by byte `offset` (from the right — find_storage_slot's packed.offset) and width, decoded as their type. `struct`: members as declared (['address owner', 'uint64 startTimestamp', 'bool burned', 'uint40[65535] checkpoints', 'mapping(address => uint256) balances']) laid out from a slot as solc packs them — one call for a whole struct or contract lay…
| Parameter | Type | Description |
|---|---|---|
address * | string | |
blockNumber | string | Every slot is read at this one block; a tag is resolved once, 'pending' is refused. |
count | integer | Consecutive slots from `start` (max 256). |
decode | boolean | Add `typeHint` (address, short string, uint size…) + `decoded` per slot. |
fields | array | Packed fields to read and decode. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
slots | array | 0x hex slot indexes. |
start | string | First slot of a range (hex or decimal); use with `count`. |
struct | object | A struct or a run of state variables, laid out as solc packs them and decoded (fixed arrays shown up to 64 elements; nested structs, mappings, dynamic arrays, string, bytes start their own slot, and s… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
wait_for_storage_value
Poll one storage slot (latest block) until it equals `expected`, or with `change: true` differs from its value at the start (`baseline`). Returns `matched`, `value`, `attempts`, `elapsedMs`; a timeout is `matched: false, timedOut: true` (not isError) with `lastValue` ('0x' = no read succeeded).
| Parameter | Type | Description |
|---|---|---|
address * | string | |
slot * | string | 0x hex slot index. |
change | boolean | Wait for any change from the current value. Exclusive with `expected`. |
expected | string | Hex value, left-padded to 32 bytes ('0x1' works). Exclusive with `change`. |
network | string | |
pollIntervalMs | integer | Default 2000, min 500. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | Default 60000, max 300000. |
get_contract_interfaces
ERC-165 probe of known IDs (ERC-721 +Metadata/Enumerable, ERC-1155, ERC-2981, AccessControl, Seaport, receivers) → `supported`. `probesFailed`: those negatives are unproven. `spamWarning`: it claims the invalid ID 0xffffffff too; trust no result. isError if no probe answered — also the case for a contract with no supportsInterface.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_token_metadata
ERC-20 profile of an unknown token in one call: name, symbol, decimals, totalSupply, isProxy/proxyType/implementation, verified. Placeholders are flagged (`nameUnavailable`, `decimalsAssumed`, `totalSupplyUnknown`); `error` ⇒ the values are defaults, not on-chain data. A missing `isProxy` or `verified` means undetermined, not false. `tokens` (up to 1000; past 500 needs outFile): name/symbol/decimals/totalSupply only, all at one block (`blockNumber`) — a field that did not come back is in `notRead` with how its read ended, `notErc20` when every read reverted or returned nothing; no proxy or…
| Parameter | Type | Description |
|---|---|---|
blockNumber | string | With `tokens`: the block to read at (default latest, pinned once). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
tokenAddress | string | |
tokens | array | Many token addresses (0x, no ENS) instead of tokenAddress. |
get_contract_source
Verified source + compiler metadata in `source` (explorer, else Sourcify); `source.verified: false` when neither has it. For big multi-file contracts use `index: true` (file list), `files` (chosen files), `grep` (matching lines with context; `truncated` when capped) or `definition` (a function/modifier/struct/event/error/enum/contract/state variable by name, WHOLE — bodies by their braces, every overload, in every file, each with its `container` contract, so an inherited definition is found where it really is; events/errors with elementary types carry `topic0`/`selector`) — these need fiel…
| Parameter | Type | Description |
|---|---|---|
contractAddress * | string | |
caseSensitive | boolean | Default false. |
contextLines | integer | Default 5. |
definition | string | An identifier: every definition of it, whole (e.g. 'redeem', 'V3RelayData', 'usedNonces'). |
explorer | string | Force a block-explorer backend. Default: Etherscan V2 where it serves the chain, otherwise the chain's Blockscout instance. |
fields | string | 'minimal' = name, compiler, proxy; 'metadata' = all but source code; 'full' (default). |
files | array | Only files whose path contains one of these (case-sensitive); also scopes grep and definition. |
grep | string | Substring (regex with regex: true); returns matching lines ± contextLines. |
index | boolean | File list only (path, lines, bytes). |
kinds | array | With definition: only these kinds. |
maxMatches | integer | Default 200. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
regex | boolean | Default false. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
get_contract_creation
Per contract (max 5): `contractCreator`, `txHash`, `createdVia` (direct deployment or factory; `factoryOrEntrypoint` is the tx's `to`, not necessarily the factory), `constructorArguments` + `constructorArgumentsDecoded` with `constructorArgumentsBasis` — a basis starting 'heuristic' is unverified; an unknown boundary gives only `constructorArgumentsNote`. Explorer, else Sourcify, else the chain itself (`source: 'rpc'`: the creation block by bisection over eth_getCode — archive reads — and the transaction from the block's receipts or trace, `txBasis` says which; a factory creation the nod…
| Parameter | Type | Description |
|---|---|---|
contractAddresses * | array | Max 5. |
explorer | string | Force a block-explorer backend. Default: Etherscan V2 where it serves the chain, otherwise the chain's Blockscout instance. |
fromBlock | string | Chain search only: start here (a block, or a time: '2024-03-01', '@1709251200'). If the code is already there the search goes below it (`hintTooHigh`). |
includeCreationCode | boolean | Include the creation bytecode hex (large); default: only its size. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
saveTo | string | Absolute DIRECTORY to write <address>.creation.hex files into (never overwrites). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
simulate_transaction
Tenderly simulation (needs TENDERLY_RPC_URLS): `simulation` has status, gasUsed, logs, assetChanges, balanceChanges, trace. On revert, `revert` has topLevelRevert, firstRevertedCall (originating frame), revertClassification, decodedInput. Without a usable gateway (unconfigured, unsupported chain, denied, rate-limited) falls back to eth_call: backend:'native-fallback', no trace/logs/asset changes, and simulation.rpcRejected / executionFailed mean it did NOT revert — read hint. Prefer functionName+args over raw data.
| Parameter | Type | Description |
|---|---|---|
from * | string | The real signer (msg.sender). A contract here gets revert.fromContractWarning on failure. |
to * | string | |
abiJson | string | |
args | array | Strings preferred: bare JSON numbers above 2^53 are rejected. |
blockNumber | string | |
data | string | Calldata, 0x-hex. Exclusive with functionName. |
functionName | string | Name only; ABI auto-fetched (proxy-aware) unless abiJson. |
gas | string | Gas limit. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
summary | boolean | Drop trace and stateChanges (revert fields kept). Default false. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
value | string | Native value in ether. |
simulate_call
Plain eth_call, optionally with stateOverride (fake balance/nonce/code/storage); no trace/logs/asset changes — simulate_calls with `sequential` + `assetDelta` gives value moved, simulate_transaction a full trace. `status`: success (returnData, decodedReturn) | reverted (revert.name/args/classification) | rpc_rejected (node refused before running, e.g. funds — not a revert; see skipBalanceCheck) | state_unavailable (node lacks that block's state) | execution_failed (ran, failed with no revert data: out of gas or stripped reason) | rpc_unavailable (isError; nothing ran) | override_not_applie…
| Parameter | Type | Description |
|---|---|---|
to * | string | |
abiJson | string | |
args | array | Strings preferred: bare JSON numbers above 2^53 are rejected. |
asEOA | boolean | Simulate `from` as a plain EOA: its code (an EIP-7702 delegation, a sweeper) is removed for the call by a code override, checked as applied (`stateOverrideApplied`). |
blockNumber | string | |
data | string | Calldata, 0x-hex. Exclusive with functionName. |
delegateTo | string | Simulate `from` delegating to this contract (EIP-7702): its code set to 0xef0100 ‖ address for the call. |
eraPaymaster | object | ZK-stack only: also run the paymaster's validation (eth_estimateGas with paymasterParams) for `from` — `paymasterCheck` passed/failed. Nothing is signed. |
from | string | msg.sender; default zero address. |
functionName | string | A name (ABI auto-fetched, proxy-aware, unless abiJson) or a full signature "claim(address,uint256) returns (bool)". Enables decodedReturn. |
gas | string | Gas limit (decimal). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
requireStateOverride | boolean | Refuse (isError) rather than answer when no endpoint applies stateOverride. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
skipBalanceCheck | boolean | Give `from` a huge balance so a funds check cannot reject the call. |
stateOverride | array | Applied before the call. slot/value: 32-byte 0x-hex. An unknown key in an entry is refused: an override that silently did not apply would be simulated as if it had. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
value | string | Native value in ether. |
simulate_calls
Many eth_calls at ONE pinned block, each classified exactly as simulate_call classifies one: success (returnData, decodedReturn) | reverted (revert decoded: name/args/classification) | rpc_rejected | state_unavailable | execution_failed | rpc_unavailable (nothing ran) | error (could not be prepared: `message`) | not_run (time budget spent: `incomplete.resumeFromIndex`). blockNumber 'pending' is refused (the batch pins one block). One row per call in input order (`index`, your `label`); `summary` counts the statuses. `calls` inline (max 500) or `callsFile` (absolute path, JSON array or JSONL of…
| Parameter | Type | Description |
|---|---|---|
asEOA | boolean | Simulate the batch `from` as a plain EOA: its code (an EIP-7702 delegation, a sweeper) is removed for the call by a code override, checked as applied (`stateOverrideApplied`). |
assetDelta | array | Addresses whose native + token balances to measure before/after the batch (implies sequential). |
assetTokens | array | Tokens to measure besides those whose Transfer events name a watched address. |
blockNumber | string | One block for every call (a tag or time is resolved once; default latest). |
calls | array | |
callsFile | string | Absolute path to a JSON array or JSONL of call objects (same fields), max 20,000. |
delegateTo | string | Simulate the batch `from` delegating to this contract (EIP-7702): its code set to 0xef0100 ‖ address for the call. |
from | string | Default msg.sender for every call; zero address if unset. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
requireStateOverride | boolean | Independent mode: refuse each call (override_not_applied) when no endpoint applies stateOverride. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
sequential | boolean | Run the calls in order in one simulated block, state carried from call to call. |
skipBalanceCheck | boolean | Give each sender a huge balance so a funds check cannot reject a call. |
stateOverride | array | Applied before the call. slot/value: 32-byte 0x-hex. An unknown key in an entry is refused: an override that silently did not apply would be simulated as if it had. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
decompile_local
Decompile an address's code with a local heimdall binary (PATH or HEIMDALL_PATH): pseudo-Solidity, ABI or disassembly. Output is heimdall's guess — bytes/array params often shown as uint256, spurious require(msg.value), inverted SLT conditions; `crossCheck` compares its functions with the real dispatcher, `unresolvedFunctions` gives database names for the ones it left unnamed, and `ambiguousNames` lists names it picked for a selector several plausible signatures share. Never take heimdall's own names or types as signatures; for the function list use analyze_bytecode (the dispatcher's real se…
| Parameter | Type | Description |
|---|---|---|
address * | string | |
extraArgs | array | Extra heimdall CLI args, verbatim (e.g. ['--include-yul']). |
network | string | |
outputMode | string | 'selectors' (~1 KB): selector, name, inputs per function. 'abi_only' (~10 KB): abi.json only. 'full' (default, can exceed 80 KB): every artifact incl. decompiled.sol. Trimming applies to decompile onl… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
subcommand | string | heimdall subcommand (default decompile). |
timeoutMs | integer | Default 90000, max 600000. |
sign_message
EIP-191 personal_sign with the configured wallet; returns signature + signer. 0x-hex `message` is signed as raw BYTES, anything else as UTF-8 text. A bare 32-byte hex digest (blind signing) is refused unless ALLOW_MAINNET_WRITE=true. For EIP-712 use sign_typed_data.
| Parameter | Type | Description |
|---|---|---|
message * | string | |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
sign_typed_data
Sign EIP-712 typed data with the configured wallet; returns signature + signer. Refused when domain.chainId is missing or a mainnet (unknown chains count as mainnet) unless ALLOW_MAINNET_WRITE=true — Permit/Permit2/order signatures can move funds with no tx from this wallet.
| Parameter | Type | Description |
|---|---|---|
domainJson * | string | JSON {name, version, chainId, verifyingContract, salt}; omit unused fields. |
messageJson * | string | JSON. Write uint values as strings — bare numbers above 2^53 silently lose precision. |
primaryType * | string | e.g. 'Permit'. |
typesJson * | string | JSON types map; omit EIP712Domain (derived from the domain). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
verify_signature
`valid` for an EIP-191 message signature by `address`: 0x-hex `message` is checked as raw BYTES, other text as UTF-8 (like sign_message). `method` says what decided: `ecrecover` (recovers to `address` → valid with no RPC; for an address without code, the recovery is the verdict and `recoveredSigner` names the actual signer), `erc1271` (the wallet contract's isValidSignature), `erc6492` (wrapped signature, counterfactual wallets included), `erc8010`. On-chain checks run on `network` (the wallet's own chain) at `block`. `valid: false` always carries `reason` (+ `revert` when the wallet reverte…
| Parameter | Type | Description |
|---|---|---|
address * | string | Claimed signer. |
message * | string | |
signature * | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
analyze_bytecode
Static analysis of an address's code (or raw `bytecode`), no ABI needed — the recovered interface of an unverified contract: `functions` (selectors the dispatcher actually compares, named via signature databases), customErrors, events, erc165InterfaceIds (known ids the code compares outside the dispatcher — a strong hint; proof is read_contract supportsInterface(bytes4)), compilerMetadata, opcode `flags` (delegatecall, selfdestruct, create2…), storage counts, minimalProxy. Notes say when the function list is incomplete (proxy, diamond); `otherPush4`/`heuristicSelectors` are not proven fu…
| Parameter | Type | Description |
|---|---|---|
address | string | Omit when passing `bytecode` or `addresses`. |
addresses | array | Many contracts (0x, no ENS): a compact row each instead of the full analysis. |
blockNumber | string | Read the code at this block. `proxyImplementation` is looked up only at latest. |
bytecode | string | Runtime bytecode to analyze instead of fetching `address`. |
includeOpcodes | boolean | Add the full opcode histogram (default false). |
match | string | With addresses: report the named functions matching this (case-insensitive; 'withdraw|unstake|exit|claim'). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
recoveredAbi | boolean | Also return an ABI built from the unambiguous names: inputs only, outputs/mutability unknown (default false). |
resolveNames | boolean | Name selectors/topics via signature databases (default true). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
lookup_selector
Reverse lookup: 4-byte function/error selector or 32-byte event topic → candidate signatures (verified ABIs seen, openchain, 4byte). Pass `data` (full calldata or revert data) to settle collisions: `roundTrip` holds the candidate that decodes AND re-encodes to exactly those bytes (an array when several do), `ruledOut` those that do not; if none fits, `structure` is a layout-only decode. With `sourcesFailed`, an empty result is not a definitive miss. Calldata sent to a known contract: decode_transaction_input also tries its ABI.
| Parameter | Type | Description |
|---|---|---|
selector * | string | 4-byte selector, 32-byte event topic, or full calldata (its first 4 bytes are the selector and the rest is round-tripped as `data`). |
data | string | Full calldata or revert data (selector + args). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
approval_exposure
Live exposure of given owners to ONE spender at one pinned block (owners unknown: find_approvals). `status`: exposed / approved_no_balance / no_approval / unknown (`unknownReason`: unmeasured, not safe). ERC-20: exposure = min(allowance, balance). ERC-721/1155: isApprovedForAll + balance; ERC-1155 balances and ERC-721 single-token approvals are read only for `tokenIds` — an ERC-721 holder with ForAll false stays unknown until every token it holds is listed. `simulate`: drainSimulation.verdict would_transfer / reverts / returns_false is evidence; inconclusive / not_run is not.
| Parameter | Type | Description |
|---|---|---|
owners * | array | Owners × tokens must be ≤ 5000 pairs. |
spender * | string | The approved address (e.g. an exploited router). |
tokens * | array | ERC-20/721/1155 contracts; the standard is detected. |
blockNumber | string | |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
simulate | boolean | Simulate the drain transfer AS the spender (eth_call) for every exposed pair (default false). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
tokenIds | array | NFT ids checked on every NFT pair (pairs × ids ≤ 20000): ERC-1155 balances need them; ERC-721 gets ownerOf/getApproved per id, and the drain simulation moves one the owner holds. |
find_approvals
Everyone who approved a spender: Approval/ApprovalForAll logs naming it (any token), folded to each owner's last grant, then (liveCheck, default) re-read at `toBlock` as in approval_exposure → `exposure.summary` / `exposed` / `unknown` (unknown = unmeasured, not safe). The revoke list after an approval exploit. `incomplete` → grants from `resumeFromBlock` on are missing: call again with that fromBlock. ERC-721 single-token grants in `grants` are candidates; `exposure.tokenApprovalsConfirmed` is the on-chain count.
| Parameter | Type | Description |
|---|---|---|
spender * | string | |
fromBlock | string | Default: the spender's creation block via the explorer (then required if unknown; 0 = genesis). Grants before it are not scanned. |
liveCheck | boolean | Re-read allowance/approval + balances for the grants found (default true). |
maxPairs | integer | Cap on (owner, token) pairs live-checked (default 1000); the rest are `skippedPairs`, unmeasured. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
simulate | boolean | With liveCheck: also simulate the drain for exposed pairs, as in approval_exposure (default false). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
toBlock | string | Scan end and the block the live check reads. Default latest. |
find_deployments
Which chains have code at this address: checks every configured mainnet (or `networks`) in parallel and groups identical bytecode by codeHash (`identicalCodeGroups`) — for CREATE2/CREATE3 contracts. Per-chain `status`: code / eip7702_delegation (an EOA, not a deployment) / no_code (`confirmed` by a second RPC, or not) / error (unread, not absent).
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x address; ENS is not accepted (it can resolve differently per chain). |
includeTestnets | boolean | With no `networks`: include testnets too (default false). |
networks | array | Only these networks. Default: every configured mainnet. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
simulate_deploy
Run a contract CREATION as eth_call. `status`: deployed (runtimeSize, runtimeHash, compilerMetadata — not the code) / constructor_reverted (decoded `revert`) / constructor_failed (halt, EIP-170 size, 0xEF) / initcode_too_large / insufficient_funds (isError: the sender cannot fund `value`). node_refused / empty_runtime (isError): the nodes did not visibly run it — no constructor verdict. `compareWith` → `comparison.verdict`: identical / identical_except_metadata / same_layout_values_differ (immutables) / other same_* (constants or data differ) / different / no_code_at_address; `dataReadBy…
| Parameter | Type | Description |
|---|---|---|
blockNumber | string | Default: the block before creationTxHash's (head if no endpoint has that state), else latest. |
compareWith | string | Address whose deployed code the result is compared with. |
constructorArgs | string | ABI-encoded args appended to the initcode. |
creationTxHash | string | Replay a DIRECT creation tx: its input, sender and value. Factory deployments: pass initcode instead (get_contract_creation includeCreationCode). |
from | string | Deployer (msg.sender; sets the CREATE address). Default: the creation tx sender, else a fresh synthetic address. |
initcode | string | Creation bytecode, constructor args appended if any. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
stateOverride | array | Per-account overrides, as in simulate_call (balance in wei). |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
value | string | Native value (ether) for the constructor. Default 0, or the creation tx's. |
scan_blocks
Block-range census, aggregates only (max 2000 blocks; default the last 100): tx counts, who holds the top slots (`topOfBlock`: first/second/third per sender, shareOfFirstSlots, and the effective `gasPriceGwei`/`priorityFeeGwei` p50/max of their first-slot txs — what it takes to win the race), topSenders, topRecipients, `txTypes` (counts by type: an eip7702 count > 0 is evidence the chain ACCEPTS type 4), and for a focus `address` (sender or recipient) its 0-based positions (median/min/p90), firstInBlock, blocks and gas prices. For ordering/FCFS questions. Positions count ordinary txs only: p…
| Parameter | Type | Description |
|---|---|---|
address | string | Focus address, matched as sender or recipient. |
fromBlock | string | Default toBlock − 99. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
outFile | string | Write the full answer to this file and reply with a summary. A .json/.jsonl/.ndjson/.csv name: absolute local path, or relative under EVM_OUTPUT_DIR (default <os temp>/evm-mcp). Never overwrites (a ta… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
toBlock | string | |
topN | integer | Entries per ranking (default 10). |
cctp_message
A Circle CCTP transfer, from its SOURCE transaction to its state on the destination, in one call: every MessageSent in the receipt decoded (version 1/2, domains, nonce, sender, recipient, destinationCaller; `burn` — token, mintRecipient, amount, fees — only when Circle's TokenMessenger sent it, else the raw `body`), the attestation from Circle's Iris API, and `usedNonces` on the destination MessageTransmitter (whose localDomain() and version() are checked first). `verdict`: delivered (the nonce is used) | attested_not_received (`receiveMessage` holds to=/data= of the claim, RUN at the chec…
| Parameter | Type | Description |
|---|---|---|
txHash * | string | The source transaction (the burn). |
destinationNetwork | string | The destination chain, when its domain is not in the built-in map. |
destinationTransmitter | string | The destination MessageTransmitter, overriding the built-in address (still checked by localDomain() and version()). |
network | string | The SOURCE chain. |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
quote_swap
A swap quote WITH the depth of the pool it comes from, all read at ONE block: amountOut for the size, the same quote at 1/probeDivisor of it (the marginal price), the pool's reserves, and `shareOfReserve` = amountOut / the pool's tokenOut. A quote that takes most of the reserve is what someone PUT in the pool, not the token's value (`quoteConvergesToReserve` at ≥ 50%) — the bait shape. V2 (any getAmountsOut router: Uniswap V2, Sushi, Pancake…): `router`; V3: `quoter` (QuoterV2) with `fee`, or every standard tier when omitted. The factory and pool are read from the router/quoter itself (`…
| Parameter | Type | Description |
|---|---|---|
amountIn * | string | Human units of tokenIn (scaled by its decimals; excess precision refused). |
tokenIn * | string | 0x token sold (wrapped native for the coin). |
tokenOut * | string | 0x token bought. |
blockNumber | string | The one block everything is read at (default latest, pinned once). |
fee | integer | V3 fee tier (100, 500, 3000, 10000); default all four. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
probeDivisor | integer | The marginal quote is at amountIn / this (default 100). |
quoter | string | Uniswap V3 QuoterV2 (quoteExactInputSingle, factory). |
router | string | V2-style router (getAmountsOut, factory). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
find_change_block
The block at which a value changed, by bisection on the server: ~log2(range) archive reads in ONE call (≈26 over 30M blocks). `read`: native_balance | token_balance (`token`) | call (contract `address`, `functionName` — a name or full signature — `args`, `abiJson`) | code | nonce | storage (`slot`), of `address`. `predicate`: became_zero, became_nonzero, changed (from the value at fromBlock), code_appeared (= code became non-empty: the deployment block). Returns `changeBlock` with the values read just before and at it, plus `transactions` that touched the address in that block (balances:…
| Parameter | Type | Description |
|---|---|---|
address * | string | The holder (balances, nonce) or the contract (call, code, storage). |
predicate * | string | |
abiJson | string | |
args | array | |
fromBlock | string | Default: genesis. |
functionName | string | call: a name or full signature ("getReserves() returns (uint112,uint112,uint32)"). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
read | string | What to read; default native_balance (code for code_appeared). |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
slot | string | storage: 0x-prefixed 32-byte slot. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
toBlock | string | Default: latest. |
token | string | token_balance: the token contract. |
get_transaction_count
An account's transaction count (nonce): `latest` (mined, at blockNumber) and `pending` (the node's mempool view), `inflight` = pending − latest — accepted but not yet mined. Read before signing anything nonce-bound (an EIP-7702 authorization with a stale nonce is skipped SILENTLY). A node without a mempool view answers pending = latest, so inflight 0 is not proof that nothing is pending — use quorum. `quorum` asks 2-5 endpoints: `latest` must agree (pinned to one block); `pending` views may legitimately differ.
| Parameter | Type | Description |
|---|---|---|
address * | string | |
blockNumber | string | Block for `latest` (default the head); inflight only at the head. |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
quorum | integer | |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
wait_for_balance_change
Poll an address's native or token balance until it changes (or `timeoutSeconds`), then name the change: the exact block, before/after/delta, and the `transactions` that moved it with sender, position in block and effective `gasPriceGwei` — who swept it and at what price. Between two polls up to 16 blocks are read one by one (a deposit and a sweep that net to zero are still seen); a longer gap is bisected per change, so a change that was undone within it can be missed. Blocks are tied by hash: a reorg sends the walk back to a block that still holds (`reorgNote`). Changes the other way go to `…
| Parameter | Type | Description |
|---|---|---|
address * | string | |
direction | string | Default any; a change the other way is recorded and the wait goes on. |
network | string | |
pollMs | integer | Default 2000. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
timeoutSeconds | integer | Default 120. |
token | string | ERC-20 token; default the native coin. |
get_proof
eth_getProof for an account and storage slots at ONE block, VERIFIED by hashes — the account proof against the block header's stateRoot, each storage proof against the account's storageHash (a Merkle-Patricia walk: every node must hash to what its parent references; an absent key is PROVEN absent, never assumed). The node's claimed fields are compared with what the proof shows. Returns `account` (nonce, balance, storageHash, codeHash, exists), `storage` (value per slot), `accountProof` / `storageProof` (the RLP nodes, ready as calldata), `blockHash`, `stateRoot`. A node without that block's…
| Parameter | Type | Description |
|---|---|---|
address * | string | The account (0x address or ENS name). |
blockNumber | string | Default latest (resolved once; 'pending' refused). |
network | string | |
networks | array | Ask the same question on several chains at once (up to 60, 8 at a time) instead of `network`: `results` has a row per chain — status ok (+ `answer`), error (+ `error`), or not_run (the whole call's… |
opStackOutputRoot | boolean | Also compute the OP Stack output root at this block. |
rootClaim | string | With opStackOutputRoot: the claimed root (0x, 32 bytes) to compare. |
rpcUrls | array | Endpoints for THIS call only (http/https, up to 5): the network's reads go to these and no others (no Tenderly either) — the first is the primary, the rest its failover; each must PROVE it answers a… |
slots | array | Storage slots (0x or decimal), up to 256. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
compute_storage_slot
A storage slot BY FORMULA, no node needed: a base (`base` number, `erc7201` namespace id, or `named` string — keccak, or keccak − 1 with minusOne, EIP-1967 style) and a `path` of steps as solc/vyper derive them — mapping key (Solidity keccak(h(key) . slot), h = 32-byte padding for value types, the raw bytes of a string/bytes key; or Vyper), a key the contract hashes itself (`keyFrom`, abi.encode or encodePacked), dynamic array element (keccak(slot) + i × size), fixed array element, struct member (`add`), keccak(slot) (`hash`). Nested mappings: one key step per level, `add` between them…
| Parameter | Type | Description |
|---|---|---|
base | string | The variable's base slot, decimal or 0x (default 0). |
erc7201 | string | Instead of base: an ERC-7201 namespace id ('openzeppelin.storage.ERC20'): keccak(abi.encode(uint256(keccak(id)) − 1)) & ~0xff. |
match | object | Reverse: which key (Solidity or Vyper, at which base and member offset) produced `slot`. bases × keys ≤ 1,000,000. |
minusOne | boolean | With named: keccak(string) − 1. |
named | string | Instead of base: keccak(string) — a named position ('eip1967.proxy.implementation' with minusOne). |
path | array | Steps from the base, in order. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |
compute_contract_address
The address a deployment gets, by formula: CREATE from `deployer` + `nonce` (keccak(rlp(deployer, nonce))), CREATE2 from `deployer` + `salt` + `initCode` or `initCodeHash` (keccak(0xff . deployer . salt . keccak(initCode)))). With `target` and `maxNonce`: which CREATE nonce of `deployer` (0..maxNonce, ≤ 1,000,000) gives that address. Pure arithmetic: nothing is read.
| Parameter | Type | Description |
|---|---|---|
deployer * | string | The creating account or factory (0x address). |
initCode | string | CREATE2: the creation code with constructor arguments (0x hex). |
initCodeHash | string | CREATE2: keccak(initCode), instead of initCode. |
maxNonce | integer | With target: nonces 0..maxNonce are tried (default 10,000). |
nonce | string | CREATE: the deployer's nonce at the deployment (a contract's starts at 1). |
salt | string | CREATE2: the 32-byte salt (0x hex). |
target | string | Find the CREATE nonce that gives this address. |
timeoutMs | integer | This call's deadline in ms (1,000-600,000; default EVM_TOOL_TIMEOUT_MS, 5× for scanners). Past it the call is abandoned; when no endpoint answered at all the answer says so (`no endpoint answered`) a… |