Avalanche

📘

See the Avalanche RPC API connection guide.

eth

MethodNotesCompute Unit Value
eth_baseFeeReturns the base fee for the next C-Chain block.1
eth_blockNumberReturns the number of the most recent block.1
eth_callExecutes a message call without creating a transaction on the blockchain.10
eth_chainIdReturns the chain identifier as a hexadecimal quantity.1
eth_estimateGasEstimates the gas required to execute a transaction.50
eth_feeHistoryReturns fee-market data for a requested range of blocks.1
eth_gasPriceReturns the current gas price per unit of gas as a hexadecimal quantity.5
eth_getAssetBalanceReturns the balance of an asset held by an address.1
eth_getBalanceReturns an account's balance at a specified block.5
eth_getBlockByHashReturns a block by hash, with either full transaction objects or transaction hashes.5
eth_getBlockByNumberReturns a block by number or block tag.5
eth_getBlockReceiptsReturns the transaction receipts for a specified block.100
eth_getBlockTransactionCountByHashReturns the number of transactions in a block identified by hash.5
eth_getBlockTransactionCountByNumberReturns the number of transactions in a block identified by number or tag.5
eth_getCodeReturns the code stored at an address at a specified block.5
eth_getLogsReturns logs matching a filter object.50
eth_getRawTransactionByBlockHashAndIndexReturns a raw transaction by block hash and transaction index.5
eth_getRawTransactionByBlockNumberAndIndexReturns a raw transaction by block number or tag and transaction index.5
eth_getRawTransactionByHashReturns the raw RLP-encoded transaction identified by hash.5
eth_getStorageAtReturns the value stored at a specified storage position for an address at a block.5
eth_getTransactionByBlockHashAndIndexReturns a transaction by block hash and transaction index.5
eth_getTransactionByBlockNumberAndIndexReturns a transaction by block number or tag and transaction index.5
eth_getTransactionByHashReturns a transaction by its hash.5
eth_getTransactionCountReturns the number of transactions sent from an address at a specified block.10
eth_getTransactionReceiptReturns the receipt for a transaction hash.5
eth_getUncleByBlockHashAndIndexReturns the uncle at an index in a block identified by hash.5
eth_getUncleByBlockNumberAndIndexReturns the uncle at an index in a block identified by number or tag.5
eth_getUncleCountByBlockHashReturns the uncle count for a block identified by hash.5
eth_getUncleCountByBlockNumberReturns the uncle count for a block identified by number or tag.5
eth_maxPriorityFeePerGasReturns a suggested priority fee per gas.1
eth_sendRawTransactionSubmits a signed, serialized transaction and returns its transaction hash.100
eth_subscribeCreates a subscription for supported events over WebSocket.1
eth_syncingReturns synchronization status or false when the node is not syncing.1
eth_getProofReturns account and storage proofs for an address at a specified block.5
eth_protocolVersionReturns the current Ethereum protocol version.1
eth_newFilterCreates a filter for logs matching supplied criteria.5
eth_newBlockFilterCreates a filter that reports newly added blocks.5
eth_getFilterLogsReturns all logs matching an existing filter.5
eth_getFilterChangesReturns changes since the last poll for a filter.5
eth_uninstallFilterRemoves a filter and returns whether it was removed.5
eth_unsubscribeCancels an existing WebSocket subscription.1

debug

MethodNotesCompute Unit Value
debug_traceBlockReplays a block and returns execution traces for its transactions.50
debug_traceBlockByHashReplays a block identified by hash and returns execution traces for its transactions.50
debug_traceBlockByNumberReplays a block identified by number or tag and returns execution traces for its transactions.50
debug_traceTransactionReplays a transaction identified by hash and returns the selected execution trace.50

net

MethodNotesCompute Unit Value
net_peerCountReturns the number of peers connected to the node.1
net_versionReturns the current network identifier.1

web3

MethodNotesCompute Unit Value
web3_clientVersionReturns the current client version.1
web3_sha3Returns the Keccak-256 hash of the supplied data.1

avax

MethodNotesCompute Unit Value
avax.getAtomicTxReturns the specified atomic transaction.5
avax.getUTXOsReturns UTXOs for the supplied addresses and source chain.100
avax.issueTxIssues an encoded transaction to the network and returns its transaction ID.5
avax.getAtomicTxStatusReturns the status of the specified atomic transaction.5

platform

MethodNotesCompute Unit Value
platform.getBlockchainStatusReturns the status of a specified blockchain.1
platform.getCurrentSupplyReturns the current AVAX supply on the P-Chain.1
platform.getCurrentValidatorsReturns the current validator set, optionally for a subnet.1
platform.getHeightReturns the height of the last accepted P-Chain block.1
platform.getMinStakeReturns the minimum validator and delegator stake amounts.1
platform.getTimestampReturns the timestamp of the last accepted P-Chain block.1
platform.getTxReturns a P-Chain transaction by its ID.1
platform.getTxStatusReturns the status of a P-Chain transaction.1
platform.getUTXOsReturns UTXOs controlled by the supplied P-Chain addresses.1
platform.getValidatorsAtReturns validators at a specified P-Chain height.1
platform.issueTxIssues an encoded transaction to the P-Chain and returns its transaction ID.1
platform.sampleValidatorsReturns a random sample of validators for a subnet.1
platform.validatedByReturns the subnet that validates a specified blockchain.1
platform.validatesReturns the blockchains validated by a specified subnet.1
platform.getFeeConfigReturns the P-Chain dynamic fee configuration.1
platform.getFeeStateReturns the current P-Chain dynamic fee state.1

health

MethodNotesCompute Unit Value
health.healthReturns the node’s current health status.1

info

MethodNotesCompute Unit Value
info.getBlockchainIDReturns a blockchain ID for an alias.1
info.getNetworkIDReturns the network ID of the node.1
info.getNetworkNameReturns the network name of the node.1
info.getNodeVersionReturns the node software version.1
info.getTxFeeReturns the current transaction fee configuration.1
info.uptimeReturns the node’s observed uptime information.1
info.upgradesReturns the network upgrade configuration.1