chain parameter defaults to ethereum if omitted.
get_eth_balance
Returns the native token balance (ETH, MATIC, AVAX, BNB, etc.) for an address.
Parameters: address (required), chain (optional)
is_contract
Checks whether an address is a smart contract, a regular EOA, or an EOA with EIP-7702 delegation.
Parameters: address (required), chain (optional)
getBytecode() to check for deployed code. If the bytecode starts with 0xef0100, it’s identified as an EIP-7702 delegated EOA rather than a traditional contract.
get_token_balance
Returns an ERC-20 token balance for a wallet. Automatically resolves the token’s name, symbol, and decimals.
Parameters: address (required), token_address (required), chain (optional)
get_token_info
Returns metadata for an ERC-20 token contract: name, symbol, decimals, and total supply.
Parameters: token_address (required), chain (optional)
get_gas_price
Returns the current gas price in wei and Gwei.
Parameters: chain (optional)
get_block
Returns the latest block info, including number, timestamp, transaction count, and base fee.
Parameters: chain (optional)
get_tx_count
Returns the transaction count (nonce) for an address — the total number of transactions sent.
Parameters: address (required), chain (optional)
resolve_ens
Resolves an ENS name to an Ethereum address. Always uses Ethereum mainnet regardless of the chain parameter.
Parameters: name (required)
get_transaction
Retrieves transaction details by hash, including from/to, value, gas, and status.
Parameters: hash (required), chain (optional)