See the Avalanche RPC API connection guide.
eth
eth| Method | Notes | Compute Unit Value |
|---|---|---|
eth_baseFee | Returns the base fee for the next C-Chain block. | 1 |
eth_blockNumber | Returns the number of the most recent block. | 1 |
eth_call | Executes a message call without creating a transaction on the blockchain. | 10 |
eth_chainId | Returns the chain identifier as a hexadecimal quantity. | 1 |
eth_estimateGas | Estimates the gas required to execute a transaction. | 50 |
eth_feeHistory | Returns fee-market data for a requested range of blocks. | 1 |
eth_gasPrice | Returns the current gas price per unit of gas as a hexadecimal quantity. | 5 |
eth_getAssetBalance | Returns the balance of an asset held by an address. | 1 |
eth_getBalance | Returns an account's balance at a specified block. | 5 |
eth_getBlockByHash | Returns a block by hash, with either full transaction objects or transaction hashes. | 5 |
eth_getBlockByNumber | Returns a block by number or block tag. | 5 |
eth_getBlockReceipts | Returns the transaction receipts for a specified block. | 100 |
eth_getBlockTransactionCountByHash | Returns the number of transactions in a block identified by hash. | 5 |
eth_getBlockTransactionCountByNumber | Returns the number of transactions in a block identified by number or tag. | 5 |
eth_getCode | Returns the code stored at an address at a specified block. | 5 |
eth_getLogs | Returns logs matching a filter object. | 50 |
eth_getRawTransactionByBlockHashAndIndex | Returns a raw transaction by block hash and transaction index. | 5 |
eth_getRawTransactionByBlockNumberAndIndex | Returns a raw transaction by block number or tag and transaction index. | 5 |
eth_getRawTransactionByHash | Returns the raw RLP-encoded transaction identified by hash. | 5 |
eth_getStorageAt | Returns the value stored at a specified storage position for an address at a block. | 5 |
eth_getTransactionByBlockHashAndIndex | Returns a transaction by block hash and transaction index. | 5 |
eth_getTransactionByBlockNumberAndIndex | Returns a transaction by block number or tag and transaction index. | 5 |
eth_getTransactionByHash | Returns a transaction by its hash. | 5 |
eth_getTransactionCount | Returns the number of transactions sent from an address at a specified block. | 10 |
eth_getTransactionReceipt | Returns the receipt for a transaction hash. | 5 |
eth_getUncleByBlockHashAndIndex | Returns the uncle at an index in a block identified by hash. | 5 |
eth_getUncleByBlockNumberAndIndex | Returns the uncle at an index in a block identified by number or tag. | 5 |
eth_getUncleCountByBlockHash | Returns the uncle count for a block identified by hash. | 5 |
eth_getUncleCountByBlockNumber | Returns the uncle count for a block identified by number or tag. | 5 |
eth_maxPriorityFeePerGas | Returns a suggested priority fee per gas. | 1 |
eth_sendRawTransaction | Submits a signed, serialized transaction and returns its transaction hash. | 100 |
eth_subscribe | Creates a subscription for supported events over WebSocket. | 1 |
eth_syncing | Returns synchronization status or false when the node is not syncing. | 1 |
eth_getProof | Returns account and storage proofs for an address at a specified block. | 5 |
eth_protocolVersion | Returns the current Ethereum protocol version. | 1 |
eth_newFilter | Creates a filter for logs matching supplied criteria. | 5 |
eth_newBlockFilter | Creates a filter that reports newly added blocks. | 5 |
eth_getFilterLogs | Returns all logs matching an existing filter. | 5 |
eth_getFilterChanges | Returns changes since the last poll for a filter. | 5 |
eth_uninstallFilter | Removes a filter and returns whether it was removed. | 5 |
eth_unsubscribe | Cancels an existing WebSocket subscription. | 1 |
debug
debug| Method | Notes | Compute Unit Value |
|---|---|---|
debug_traceBlock | Replays a block and returns execution traces for its transactions. | 50 |
debug_traceBlockByHash | Replays a block identified by hash and returns execution traces for its transactions. | 50 |
debug_traceBlockByNumber | Replays a block identified by number or tag and returns execution traces for its transactions. | 50 |
debug_traceTransaction | Replays a transaction identified by hash and returns the selected execution trace. | 50 |
net
net| Method | Notes | Compute Unit Value |
|---|---|---|
net_peerCount | Returns the number of peers connected to the node. | 1 |
net_version | Returns the current network identifier. | 1 |
web3
web3| Method | Notes | Compute Unit Value |
|---|---|---|
web3_clientVersion | Returns the current client version. | 1 |
web3_sha3 | Returns the Keccak-256 hash of the supplied data. | 1 |
avax
avax| Method | Notes | Compute Unit Value |
|---|---|---|
avax.getAtomicTx | Returns the specified atomic transaction. | 5 |
avax.getUTXOs | Returns UTXOs for the supplied addresses and source chain. | 100 |
avax.issueTx | Issues an encoded transaction to the network and returns its transaction ID. | 5 |
avax.getAtomicTxStatus | Returns the status of the specified atomic transaction. | 5 |
platform
platform| Method | Notes | Compute Unit Value |
|---|---|---|
platform.getBlockchainStatus | Returns the status of a specified blockchain. | 1 |
platform.getCurrentSupply | Returns the current AVAX supply on the P-Chain. | 1 |
platform.getCurrentValidators | Returns the current validator set, optionally for a subnet. | 1 |
platform.getHeight | Returns the height of the last accepted P-Chain block. | 1 |
platform.getMinStake | Returns the minimum validator and delegator stake amounts. | 1 |
platform.getTimestamp | Returns the timestamp of the last accepted P-Chain block. | 1 |
platform.getTx | Returns a P-Chain transaction by its ID. | 1 |
platform.getTxStatus | Returns the status of a P-Chain transaction. | 1 |
platform.getUTXOs | Returns UTXOs controlled by the supplied P-Chain addresses. | 1 |
platform.getValidatorsAt | Returns validators at a specified P-Chain height. | 1 |
platform.issueTx | Issues an encoded transaction to the P-Chain and returns its transaction ID. | 1 |
platform.sampleValidators | Returns a random sample of validators for a subnet. | 1 |
platform.validatedBy | Returns the subnet that validates a specified blockchain. | 1 |
platform.validates | Returns the blockchains validated by a specified subnet. | 1 |
platform.getFeeConfig | Returns the P-Chain dynamic fee configuration. | 1 |
platform.getFeeState | Returns the current P-Chain dynamic fee state. | 1 |
health
health| Method | Notes | Compute Unit Value |
|---|---|---|
health.health | Returns the node’s current health status. | 1 |
info
info| Method | Notes | Compute Unit Value |
|---|---|---|
info.getBlockchainID | Returns a blockchain ID for an alias. | 1 |
info.getNetworkID | Returns the network ID of the node. | 1 |
info.getNetworkName | Returns the network name of the node. | 1 |
info.getNodeVersion | Returns the node software version. | 1 |
info.getTxFee | Returns the current transaction fee configuration. | 1 |
info.uptime | Returns the node’s observed uptime information. | 1 |
info.upgrades | Returns the network upgrade configuration. | 1 |
