eth
accounts(): Vec<H160>
Vec<H160>interface:
api.rpc.eth.accountsjsonrpc:
eth_accountssummary: Returns a list of addresses owned by client.
blockNumber(): U256
U256interface:
api.rpc.eth.blockNumberjsonrpc:
eth_blockNumbersummary: Returns the current "latest" block number.
call(transaction: transactionObject, block?: BlockNumber): HexString
transactionObject, block?: BlockNumber): HexStringinterface:
api.rpc.eth.calljsonrpc:
eth_callsummary: Executes a new message call immediately without creating a transaction on the block chain.
chainId(): HexString
interface:
api.rpc.eth.chainIdjsonrpc:
eth_chainIdsummary: Returns the currently configured chain id.
coinbase(): H160
H160interface:
api.rpc.eth.coinbasejsonrpc:
eth_coinbasesummary: Returns block author.
estimateGas(transaction: transactionObject, block?: BlockNumber): HexString
transactionObject, block?: BlockNumber): HexStringinterface:
api.rpc.eth.estimateGasjsonrpc:
eth_estimateGassummary: Estimates gas needed for execution of given transaction.
feeHistory(blockCount: U256, newest_block: BlockNumber, reward_percentiles?: Vec<f64>): FeeHistory
U256, newest_block: BlockNumber, reward_percentiles?: Vec<f64>): FeeHistoryinterface:
api.rpc.eth.feeHistoryjsonrpc:
eth_feeHistorysummary: Introduced in EIP-1159 for getting information on the appropriate priority fee to use.
gasPrice(): HexString
HexStringinterface:
api.rpc.eth.gasPricejsonrpc:
eth_gasPricesummary: Returns the current gas price in wei.
getBalance(address: H160, block?: BlockNumber): HexString
H160, block?: BlockNumber): HexStringinterface:
api.rpc.eth.getBalancejsonrpc:
eth_getBalancesummary: Returns the balance of the account of given address.
getBlockByHash(hash: H256, full?: bool): BlockObject
H256, full?: bool): BlockObjectinterface:
api.rpc.eth.getBlockByHashjsonrpc:
eth_getBlockByHashsummary: Returns information about a block by hash.
getBlockByNumber(BlockNumber: BlockNumber, full?: bool): BlockObject
BlockNumber, full?: bool): BlockObjectinterface:
api.rpc.eth.getBlockByNumberjsonrpc:
eth_getBlockByNumbersummary: Returns information about a block by hash.
getBlockTransactionCountByHash(hash: H256): U256
H256): U256interface:
api.rpc.eth.getBlockTransactionCountByHashjsonrpc:
eth_getBlockTransactionCountByHashsummary: Returns the number of transactions in the block with the given block hash.
getBlockTransactionCountByNumber(BlockNumber: BlockNumber): U256
BlockNumber): U256interface:
api.rpc.eth.getBlockTransactionCountByNumberjsonrpc:
eth_getBlockTransactionCountByNumbersummary: Returns the number of transactions in the block with the given block number.
getCode(address: H160, number?: BlockNumber): Bytes
H160, number?: BlockNumber): Bytesinterface:
api.rpc.eth.getCodejsonrpc:
eth_getCodesummary: Returns the compiled smart contract code, if any, at a given address.
getFilterChanges(index: Index): FilterChanges
Index): FilterChangesinterface:
api.rpc.eth.getFilterChangesjsonrpc:
eth_getFilterChangessummary: Polling method for a filter, which returns an array of logs that occurred since the last poll. A filter must be created by calling either
eth_newFilteroreth_newBlockFilter
getFilterLogs(index: Index): Vec<Log>
Index): Vec<Log>interface:
api.rpc.eth.getFilterLogsjsonrpc:
eth_getFilterLogssummary: Returns an array of all logs matching filter with given id.
getLogs(filter: Filter): Vec<Log>
Filter): Vec<Log>interface:
api.rpc.eth.getLogsjsonrpc:
eth_getLogssummary: Returns an array of all logs matching a given filter object.
getStorageAt(address: H160, index: U256, number?: BlockNumber): H256
H160, index: U256, number?: BlockNumber): H256interface:
api.rpc.eth.getStorageAtjsonrpc:
eth_getStorageAtsummary: Returns the value from a storage position at a given address.
getTransactionByBlockHashAndIndex(hash: H256, index: Index): Transaction
H256, index: Index): Transactioninterface:
api.rpc.eth.getTransactionByBlockHashjsonrpc:
eth_getTransactionByBlockHashAndIndexsummary: Returns information about a transaction by block hash and transaction index position.
getTransactionByBlockNumberAndIndex(number: BlockNumber, index: Index): Transaction
BlockNumber, index: Index): Transactioninterface:
api.rpc.eth.getTransactionByBlockNumberAndIndexjsonrpc:
eth_getTransactionByBlockNumberAndIndexsummary: Returns information about a transaction by block number and transaction index position.
getTransactionByHash(hash: H256): Transaction
H256): Transactioninterface:
api.rpc.eth.getTransactionByHashjsonrpc:
eth_getTransactionByHashsummary: Returns information about a transaction for a given hash.
getTransactionCount(address: H160, number?: BlockNumber): U256
H160, number?: BlockNumber): U256interface:
api.rpc.eth.getTransactionCountjsonrpc:
eth_getTransactionCountsummary: Returns the number of transactions sent from an address.
getTransactionReceipt(hash: H256): Receipt
H256): Receiptinterface:
api.rpc.eth.getTransactionReceiptjsonrpc:
eth_getTransactionReceiptsummary: Returns the receipt of a transaction by transaction hash.
maxPriorityFeePerGas(): U256
U256interface:
api.rpc.eth.maxPriorityFeePerGasjsonrpc:
eth_maxPriorityFeePerGassummary: Introduced in EIP-1159, a Geth-specific and simplified priority fee oracle.
newBlockFilter(): U256
U256interface:
api.rpc.eth.newBlockFilterjsonrpc:
eth_newBlockFiltersummary: Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call
eth_getFilterChanges.
newFilter(filter: Filter): U256
Filter): U256interface:
api.rpc.eth.newFilterjsonrpc:
eth_newFiltersummary: Creates a filter object, based on filter options, to notify when the state changes (logs). To check if the state has changed, call
eth_getFilterChanges
protocolVersion(): u64
u64interface:
api.rpc.eth.protocolVersionjsonrpc:
eth_protocolVersionsummary: Returns the current Ethereum protocol version.
sendRawTransaction(bytes: Bytes): H256
Bytes): H256interface:
api.rpc.eth.sendRawTransactionjsonrpc:
eth_sendRawTransactionsummary: Submits a pre-signed transaction for broadcast to the network.
sendTransaction(request: TransactionRequest): H256
TransactionRequest): H256interface:
api.rpc.eth.sendTransactionjsonrpc:
eth_sendTransactionsummary: Sends transaction; will block waiting for the signer to return the transaction hash.
syncing(): SyncStatus
SyncStatusinterface:
api.rpc.eth.syncingjsonrpc:
eth_syncingsummary: Returns an object with data about the sync status or false.
uninstallFilter(index: Index): bool
Index): boolinterface:
api.rpc.eth.uninstallFilterjsonrpc:
eth_uninstallFiltersummary: Uninstalls a filter with given ID. Should always be called when watching is no longer needed. Additionally filters time out when not requested with
eth_getFilterChangesfor a period of time.
Last updated