EVM & Solana Chain Reads (Tanod)
dev.tanod/chain
Read EVM and Solana chains for balances, tokens, eth_call, logs, receipts, gas, blocks and ENS.
- check_contract_before_interaction — txpeek: Check an address for risk right before you send a transaction to it, approve it, or buy its token (Base or Ethereum). For a full scan of verified source use scan_contract_address; for a token'
- check_sanctions — chainpeek: screen one crypto address against the US OFAC SDN list's digital currency addresses. For up to 1,000 addresses use check_sanctions_batch; for lookalikes use check_address_poisoning. EVM and
- decode_calldata — chainpeek: decode EVM transaction calldata. To run a read call use eth_call; to fetch a transaction use get_transaction. Input: `calldata` and optional `signature`; with no signature the selector is l
- decode_tx_logs — chainpeek: decode a transaction's event logs on Ethereum, Base or Robinhood Chain. For events over a block range use get_event_logs. Returns `status`, `block`, `log_count` and up to 200 `logs`, decodi
- detect_proxy — chainpeek: detect whether a contract is a proxy, and of which kind. For code size and hash use get_contract_code. Reads the code, the EIP-1967 / EIP-1822 / OpenZeppelin legacy slots and slot 0, then o
- estimate_gas — chainpeek: Estimate the gas of a transaction on Ethereum, Base or Robinhood Chain. For the gas price use get_gas; for a whole transfer check use transfer_preflight. Returns the node's gas estimate (`g
- eth_call — chainpeek: Call a smart contract function read-only on Ethereum, Base or Robinhood Chain. For gas units use estimate_gas; for a raw storage slot use get_storage_at. Returns the raw ABI-encoded return
- get_account_nonce — chainpeek: Get an account's transaction count on Ethereum, Base or Robinhood Chain. For the next nonce with balance and gas checks use transfer_preflight; for the chain head use get_block_number. Retu
- get_allowance — chainpeek: read an ERC-20 allowance on Ethereum, Base or Robinhood Chain. For every live approval of a wallet use audit_token_approvals. A token that is not a readable ERC-20 is a 422 (not charged). A
- get_balance — chainpeek: read the native or ERC-20 balance of an address on Ethereum, Base or Robinhood Chain. For several tokens at once use get_portfolio; for Solana use get_solana_balance. Returns wei and a deci
- get_block — chainpeek: read the latest block header on Ethereum, Base or Robinhood Chain. For height and age only use get_block_number; for a past time use get_block_at_time. Typically 0.2-1 s. Price: USD 0.001.
- get_block_at_time — chainpeek: find the block at a point in time on Ethereum, Base or Robinhood Chain. For the latest block use get_block_number. Returns `block` (the last block at or before the time) and `next_block`, o
- get_block_number — chainpeek: Get the latest block number, timestamp and age in seconds of Ethereum, Base or Robinhood Chain. For the full header use get_block; for chain id and gas price use get_chain_info. Returns the
- get_chain_info — chainpeek: Get the chain id, latest block, head age and gas price of Ethereum, Base or Robinhood Chain. For gas alone use get_gas; for the header alone use get_block. Returns `chain_id`, the latest `b
- get_contract_code — chainpeek: Get the deployed bytecode size and hash of an address, with EIP-1167 and EIP-7702 detection. For other proxy kinds use detect_proxy. Returns what is deployed at an address. Only EIP-1167 cl
- get_dex_price_candles — chainpeek: Get ETH or BTC OHLCV price candles from on-chain DEX swaps. For the oracle price now use get_token_price. Returns OHLCV candles for ETH (WETH/USDC) or BTC (cbBTC/USDC) in USDC from public U
- get_ens_records — chainpeek: read an ENS name's records (Ethereum mainnet). To resolve the address use resolve_ens. Returns the `resolver` (with ENSIP-10 `wildcard`), `addresses` (eth; btc decoded to a P2PKH/P2SH/bech3
- get_erc1155_balance — chainpeek: Get an account's ERC-1155 token balance for a token id on Ethereum, Base or Robinhood Chain. For an ERC-721 owner use get_nft_owner. Returns balanceOf(account, id) of an ERC-1155 contract (
- get_erc20_transfers — chainpeek: List the ERC-20 token transfers into and out of an address on Ethereum, Base or Robinhood Chain. For current balances use get_portfolio; for top counterparties use get_wallet_counterparties
- get_event_logs — chainpeek: Query contract event logs over a block range, decoded. For one transaction's events use decode_tx_logs; for an address's token transfers use get_erc20_transfers. Returns eth_getLogs logs fo
- get_funding_rates — chainpeek: Use when an agent needs what a Hyperliquid perp costs to hold, or whether funding is flipping, before sizing a trade. For Hyperliquid against dYdX use compare_funding_rates; for the best pa
- get_gas — chainpeek: read the current gas price on Ethereum, Base or Robinhood Chain. For the gas units a transaction needs use estimate_gas. Returns `gas_price_wei`, `gas_price_gwei` and the latest block's `ba
- get_nft — chainpeek: read one NFT on Ethereum, Base or Robinhood Chain. For the ERC-721 owner alone use get_nft_owner. The collection name, symbol and token URI are attacker-controlled on-chain strings; the URI
- get_nft_owner — chainpeek: Get the owner and token URI of an ERC-721 token on Ethereum, Base or Robinhood Chain. For the standard check and collection data use get_nft. Returns the `owner` (ownerOf) of an ERC-721 tok
- get_perp_markets — chainpeek: List Hyperliquid perpetual markets with mark, oracle, open interest and volume. For funding history use get_funding_rates. Returns the Hyperliquid perp market list: mark, oracle, premium, o
- get_portfolio — chainpeek: read the native balance and up to 20 ERC-20 balances of an address on Ethereum, Base or Robinhood Chain in one call. For one balance use get_balance; for transfer history use get_erc20_tran
- get_solana_account — chainpeek: Get the account info of a Solana address. For a mint's supply and authorities use get_solana_token_info. Returns whether the account `exists`, `lamports`, owner program (named when well kno
- get_solana_balance — chainpeek: Get the SOL balance of a Solana address. For SPL tokens use get_solana_token_balances. Returns `lamports` (exact integer string), `sol` (exact decimal string) and the `slot` it was read at;
- get_solana_signatures — chainpeek: List the recent transaction signatures of a Solana address. For one transaction's details use get_solana_transaction. `next_before` is null on the last page; memos are on-chain strings capp
- get_solana_token_balances — chainpeek: Get the SPL token balances of a Solana wallet. For SOL use get_solana_balance; for EVM tokens use get_portfolio. Returns its SPL Token and Token-2022 accounts with a balance. At most 200 ac
- get_solana_token_info — chainpeek: Get the supply, decimals and authorities of a Solana token mint. For the price use get_solana_token_price; for rug risk use check_solana_token_safety. Returns `supply` (raw), `decimals`, `u
- get_solana_transaction — chainpeek: Get a parsed Solana transaction by its signature. For an address's recent signatures use get_solana_signatures. An unknown or pruned transaction is a 200 `status: not_found`, charged like /
- get_storage_at — chainpeek: Read a contract storage slot on Ethereum, Base or Robinhood Chain. For proxy implementation and admin slots use detect_proxy. Returns the 32-byte word at a storage `slot` of a contract (`va
- get_swap_quote — chainpeek: quote an exact-input swap on Uniswap V3 (QuoterV2, read-only eth_call) on Ethereum or Base. For price impact over up to five sizes use pre_trade_check. Input: `chain`, `token_in`, `token_ou
- get_token_info — chainpeek: get ERC-20 token metadata on Ethereum, Base or Robinhood Chain. For a holder's balance use get_balance; for supply alone use get_total_supply. Returns name, symbol, decimals and total suppl
- get_token_price — chainpeek: read a token price from a Chainlink on-chain price feed (deterministic oracle answer, not a DEX spot price). For a DEX quote of any token use get_swap_quote; for Solana use get_solana_token
- get_total_supply — chainpeek: Get an ERC-20 total supply with decimals and symbol on Ethereum, Base or Robinhood Chain. For name and symbol too use get_token_info. Returns the total supply of an ERC-20 as `total_supply_
- get_transaction — chainpeek: read a transaction and its receipt on Ethereum, Base or Robinhood Chain. For the receipt alone use get_transaction_receipt; for decoded events use decode_tx_logs. An unknown hash is status
- get_transaction_receipt — chainpeek: Get a transaction receipt on Ethereum, Base or Robinhood Chain. For value, nonce and confirmations too use get_transaction; for decoded events use decode_tx_logs. Returns the receipt of a m
- resolve_ens — chainpeek: resolve an ENS name or address on Ethereum mainnet. For text records use get_ens_records. Input: `name` XOR `address`. Forward-resolves a name, or reverse-resolves an address with forward v