Overview
Theeth namespace provides Ethereum-compatible methods for querying blockchain data, managing accounts, and submitting transactions.
Blockchain Queries
eth_blockNumber
Returns the number of the most recent block.The current block number as a hexadecimal string
eth_getBlockByNumber
Returns information about a block by block number.Block number (hex) or “latest”, “earliest”, “pending”
If true, returns full transaction objects; if false, returns only transaction hashes
Block object or null if block not found
eth_getBlockByHash
Returns information about a block by block hash.32-byte block hash
If true, returns full transaction objects; if false, returns only transaction hashes
eth_getBalance
Returns the balance of an account at a given block.20-byte account address
Block number (hex) or “latest”, “earliest”, “pending”
Balance in wei (hex)
eth_getStorageAt
Returns the value from a storage position at a given address.20-byte account address
Storage position (hex)
Block number (hex) or “latest”, “earliest”, “pending”
eth_getCode
Returns code at a given address.20-byte account address
Block number (hex) or “latest”, “earliest”, “pending”
Contract bytecode (hex) or “0x” if account has no code
Transactions
eth_getTransactionCount
Returns the number of transactions sent from an address (nonce).20-byte account address
Block number (hex) or “latest”, “earliest”, “pending”
Transaction count (hex)
eth_getTransactionByHash
Returns information about a transaction by transaction hash.32-byte transaction hash
Transaction object or null if not found
eth_getTransactionReceipt
Returns the receipt of a transaction by transaction hash.32-byte transaction hash
Receipt object or null if not found
eth_sendRawTransaction
Submits a signed transaction to the network.Signed transaction data (hex)
32-byte transaction hash
Call and Estimation
eth_call
Executes a new message call immediately without creating a transaction.Transaction call object
Block number (hex) or “latest”, “earliest”, “pending”
Return value of executed contract (hex)
eth_estimateGas
Generates and returns an estimate of gas needed to complete the transaction.Transaction call object (same as eth_call)
Estimated gas amount (hex)
Network and Protocol
eth_chainId
Returns the chain ID of the network.Chain ID (hex): “0x58” for mainnet, “0x59” for testnet
eth_syncing
Returns an object with sync status data or false.Sync status object or false if not syncing
eth_gasPrice
Returns the current gas price in wei.Gas price in wei (hex)
eth_protocolVersion
Returns the current Ethereum protocol version.Protocol version (hex)
Viction-Specific Methods
eth_getOwnerByCoinbase
Returns the masternode owner address for a given coinbase address.Coinbase address
Block number (hex) or “latest”
Owner address
eth_getRewardByHash
Returns the reward information for a block by hash.Block hash
Reward details organized by type and recipient