Dirt Road Dev API - AI Tools & APIs
api.dirtroad.dev
AI tools, Web3 APIs, UUID generators, and utilities for developers
API Endpoints
/tools/web3/evm/net-versionRetrieve the network version (chain ID) of the connected blockchain network. Returns the numeric chain identifier as a string. Essential for identifying which blockchain network the node is connected to and ensuring transaction compatibility.
/tools/web3/evm/web3-sha3Compute the Keccak-256 (SHA3) hash of arbitrary input data. Returns the hash as a hex string. Essential for Ethereum signature verification, contract function selectors, and cryptographic operations. Commonly used for generating method signatures and data integrity checks.
/tools/web3/evm/eth-coinbaseRetrieve the coinbase address of the blockchain node. Returns the address that receives mining rewards and transaction fees. Useful for identifying the node's primary account and fee recipient.
/tools/web3/evm/eth-protocol-versionRetrieve the Ethereum protocol version supported by the blockchain client. Returns the protocol version as a string. Essential for ensuring compatibility between client and network protocol versions.
/tools/web3/evm/net-listeningCheck if the blockchain node is actively listening for network connections from other nodes. Returns a boolean indicating the node's network connectivity status. Useful for monitoring node health and ensuring the RPC endpoint is properly connected to the network.
/tools/web3/evm/web3-client-versionRetrieve the version string of the blockchain client software (e.g., Geth, Parity, Besu). Returns detailed version information including client name, version number, and build details. Useful for client identification and compatibility checking.
/tools/web3/evm/eth-get-codeRetrieve the bytecode of a smart contract deployed at a specific address on a blockchain network. Returns the contract code as a hex string. Useful for contract verification, analyzing deployed contracts, and checking if an address contains contract code versus being an externally owned account.
/tools/web3/evm/eth-get-transaction-countGet the number of transactions sent from an Ethereum address (nonce). Returns the transaction count as a hex string. Essential for transaction creation and replay protection. Useful for analyzing account activity and determining the next nonce for transaction signing.
/tools/web3/evm/eth-block-numberRetrieve the current block number of a blockchain network. Returns the latest block number as a hex string. Essential for monitoring network progress, transaction confirmation tracking, and determining the current state of the blockchain.
/tools/web3/evm/eth-get-balanceRetrieve the native cryptocurrency balance of an Ethereum address on a specified blockchain network. Returns the balance in wei (smallest unit) as a hex string. Useful for checking wallet balances, verifying account funds, and monitoring address activity across different blockchains.
/tools/web3/evm/is-supported-chainCheck if a given chain identifier is supported by the blockchain client. Returns a boolean indicating whether the chain is supported. Returns the normalized chain identifier if the chain is supported.
/tools/web3/evm/get-supported-chainsGet a list of all supported chains by the blockchain client. Returns an array of chain objects with detailed information about each supported chain.
/tools/web3/evm/eth-get-storage-atRetrieve the value stored at a specific storage position in a smart contract. Returns the 32-byte value at the specified storage slot as a hex string. Essential for reading contract state variables and analyzing contract storage.
/tools/web3/evm/eth-get-uncle-count-by-block-hashGet the number of uncle blocks for a block specified by block hash. Returns the uncle count as a hex string. SKALE chains don't have uncles, so this always returns 0x0. Useful for compatibility with Ethereum tools that expect this method.
/tools/web3/evm/eth-gas-priceRetrieve the current gas price suggested by the blockchain network. Returns the gas price in wei as a hex string. Essential for estimating transaction fees and setting appropriate gas prices for transaction submission.