nodeflare-mcp
v0.8.0Blockchain JSON-RPC on 23 EVM chains for AI agents - free tier, API key, or x402 pay-per-call.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_chains
List the 23 EVM chains NodeFlare serves, with chain IDs and endpoint URLs.
get_block_number
Get the latest block number on a chain (decimal and hex).
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
get_balance
Get the native-token balance of an address — raw wei plus a human-readable amount in the chain's native currency. The address may be an ENS name (e.g. 'vitalik.eth').
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x-address or ENS name |
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
get_transaction_receipt
Get the receipt of a transaction by hash (status, logs, gas used).
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
hash * | string | 0x-transaction hash |
eth_call
Execute a read-only contract call (eth_call) and return the raw result.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
data * | string | ABI-encoded calldata (0x…) |
to * | string | Contract address or ENS name |
from | string | Optional caller address or ENS name |
get_logs
Fetch contract event logs (eth_getLogs). Heavy method: needs NODEFLARE_API_KEY or an x402 wallet (X402_PRIVATE_KEY) — costs ~$0.001 via x402.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
fromBlock * | string | Hex block number or tag, e.g. '0x112a880' or 'latest' |
toBlock * | string | Hex block number or tag |
address | string | Contract address filter |
topics | array | Topic filters |
rpc_call
Make any JSON-RPC call on any supported chain. Heavy methods (eth_getLogs, trace_*, debug_*) need NODEFLARE_API_KEY or an x402 wallet.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
method * | string | JSON-RPC method name, e.g. 'eth_gasPrice' |
params | array | JSON-RPC params array |
get_transaction
Get a transaction by its hash (from, to, value, input, block, gas).
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
hash * | string | 0x-transaction hash |
get_block
Get a block by number or tag (e.g. 'latest', 'finalized', or a hex number). Set fullTransactions to include full tx objects instead of hashes.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
block | string | Hex block number or tag ('latest', 'finalized', 'safe', 'earliest') |
fullTransactions | boolean | Include full transaction objects |
get_gas_price
Get current gas pricing on a chain: base gas price and the suggested priority fee (EIP-1559), both in wei (hex).
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
get_token_balance
Get an ERC-20 token balance for an address, returned both raw and human-readable (uses the token's decimals and symbol).
| Parameter | Type | Description |
|---|---|---|
address * | string | Holder address or ENS name to check |
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
token * | string | ERC-20 contract address |
get_token_metadata
Get ERC-20 token metadata: name, symbol, decimals and total supply (raw + human-readable).
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
token * | string | ERC-20 contract address |
resolve_ens
Resolve an ENS name to an address (forward), or a 0x-address to its primary ENS name (reverse). ENS is read from Ethereum mainnet.
| Parameter | Type | Description |
|---|---|---|
name * | string | An ENS name like 'vitalik.eth' to resolve to an address, or a 0x-address to reverse-resolve to its primary ENS name |
get_multichain_balances
Get native + ERC-20 token balances for one address across many of the 23 EVM chains in a SINGLE call — including young chains (Robinhood, Plasma, Ink) that Alchemy/Moralis omit. With an x402 wallet (X402_PRIVATE_KEY) this is paid per request (~$0.0003/chain); otherwise it uses the free public tier.
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x-address to look up |
chains | array | Chains to include — slug, name, or chain ID; defaults to all 23 |
discover | boolean | Auto-discover the ERC-20 tokens the address holds via Transfer logs. Needs an x402 wallet (heavy method). Comprehensive on young chains; large chains cap the scan — narrow with fromBlock. |
fromBlock | string | Start block for discovery (hex or 'earliest'); narrow the window on high-history chains |
includeDust | boolean | Discovery only: keep dust balances below 1e-9 units. Default false. |
includeSpam | boolean | Discovery only: keep tokens with no DefiLlama price (likely spam/airdrops) on price-covered chains. Default false. |
minUsd | number | Discovery only: drop discovered tokens worth less than this USD value on price-covered chains (default 0.01, filters near-worthless spam). Set 0 to keep any priced token. |
tokens | object | ERC-20 contract addresses per chain, e.g. { base: ['0x833589…'] } |
get_token_allowances
ERC-20 approvals a wallet has granted (what it approved and for how much) across many of the 23 EVM chains in ONE call — including young chains (Robinhood, Plasma, Ink) that revoke.cash-style tools skip. Scans Approval logs, reads the live allowance, drops revoked ones, flags unlimited approvals. Heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY.
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x owner/approver address to look up |
chains | array | Chains to include — slug/name/ID; defaults to all 23 |
get_wallet_report
The full agent-ready 'know this wallet' report in ONE call: native + ERC-20 balances (USD-priced), a rolled-up total + top holdings, AND the active token approvals (revoke risk) across many of the 23 EVM chains — including young chains big indexers skip. The approvals half is heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY (balances/USD come back either way).
| Parameter | Type | Description |
|---|---|---|
address * | string | 0x-address to report on |
chains | array | Chains to include — slug/name/ID; defaults to all 23 |
check_token_safety
Risk-check an ERC-20 before trading it: metadata, contract + ownership status, upgradeable-proxy detection, holder concentration, and a transfer/honeypot simulation → risk signals + a score. The deep checks (concentration, honeypot) are heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY. Works on young chains (Zircuit, Robinhood, Plasma, Ink) that big indexers leave empty.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain — slug (eth, base, robinhood…), name, or chain ID |
token * | string | 0x ERC-20 contract address to check |
simulate_transaction
Transaction pre-flight on one chain: will this tx revert (and why), how much gas, and which tokens/ETH move? The asset-change tracing is heavy: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY (revert/gas come back either way). Built for agents checking a tx before broadcasting.
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain — slug/name/ID |
to * | string | 0x target/contract address |
data | string | 0x calldata (default 0x) |
from | string | Optional 0x sender address |
value | string | Hex wei to send (default 0x0) |
onchain_answer
Onchain Answer Engine: ask a plain-English question about any wallet or token across the 23 EVM chains and get back a CITED verdict in one call — 'is token 0x… on <chain> a scam?', 'what does wallet 0x… hold?'. NodeFlare plans the on-chain lookups, runs them on its own nodes, and synthesizes a sourced answer. Paid: needs NODEFLARE_API_KEY or X402_PRIVATE_KEY (no free anonymous tier — it runs on a GPU).
| Parameter | Type | Description |
|---|---|---|
question * | string | Natural-language question about a wallet or token, e.g. 'Is token 0xdAC17…ec7 on eth a scam?' |
get_token_price
Current USD price of an ERC-20 token from DefiLlama (free, keyless): price + symbol + confidence, or null for unlisted/thin-market tokens. Well-covered chains only (eth, base, bnb, arb, op, avax, polygon, linea, mantle, sonic, unichain, sei, cronos).
| Parameter | Type | Description |
|---|---|---|
chain * | string | Chain to query. Accepts a slug (eth, base, arb, op, robinhood…), a common name (ethereum, arbitrum, optimism, bsc), or a numeric chain ID (1, 8453). Call list_chains for all valid values. |
token * | string | 0x ERC-20 contract address |
compare_gas
Compare current gas price ACROSS chains in one call — gwei per chain, cheapest first, so an agent can pick where to transact. Defaults to the majors (eth, base, arb, op, bnb, polygon); pass chains to override.
| Parameter | Type | Description |
|---|---|---|
chains | array | Chains to compare — slug/name/ID; defaults to the majors |