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