Avalanche RPC API

Ethereum C-Chain Methods

Method Compute Unit Value
eth_baseFee 1
eth_blockNumber 1
eth_call 10
eth_chainId 1
eth_estimateGas 50
eth_feeHistory 1
eth_gasPrice 5
eth_getAssetBalance 1
eth_getBalance 5
eth_getBlockByHash 5
eth_getBlockByNumber 5
eth_getBlockReceipts 100
eth_getBlockTransactionCountByHash 5
eth_getBlockTransactionCountByNumber 5
eth_getCode 5
eth_getLogs 50
eth_getRawTransactionByBlockHashAndIndex 5
eth_getRawTransactionByBlockNumberAndIndex 5
eth_getRawTransactionByHash 5
eth_getStorageAt 5
eth_getTransactionByBlockHashAndIndex 5
eth_getTransactionByBlockNumberAndIndex 5
eth_getTransactionByHash 5
eth_getTransactionCount 10
eth_getTransactionReceipt 5
eth_getUncleByBlockHashAndIndex 5
eth_getUncleByBlockNumberAndIndex 5
eth_getUncleCountByBlockHash 5
eth_getUncleCountByBlockNumber 5
eth_maxPriorityFeePerGas 1
eth_sendRawTransaction 100
eth_subscribe 1
eth_syncing 1

Debug Methods (requires tracer: callTracer param)

Method Compute Unit Value
debug_traceBlock 50
debug_traceBlockByHash 50
debug_traceBlockByNumber 50
debug_traceTransaction 50

Net Methods

Method Compute Unit Value
net_peerCount 1
net_version 1

Web3 methods

Method Compute Unit Value
web3_clientVersion 1
web3_sha3 1

Avalanche C-Chain (AVAX)** Methods

Method Compute Unit Value
avax.getAtomicTx 5
avax.getUTXOs 100
avax.issueTx 5
avax.getAtomicTxStatus 5

Avalanche P-Chain (AVAX)** Methods

Method Compute Unit Value
platform.getBlockchainStatus 1
platform.getCurrentSupply 1
platform.getCurrentValidators 1
platform.getHeight 1
platform.getMinStake 1
platform.getTimestamp 1
platform.getTx 1
platform.getTxStatus 1
platform.getUTXOs 1
platform.getValidatorsAt 1
platform.issueTx 1
platform.sampleValidators 1
platform.validatedBy 1
platform.validates 1
platform.getFeeConfig 1
platform.getFeeState 1

Avalanche Health Method

Method Compute Unit Value
health.health 1

Avalanche Info Methods

Method Compute Unit Value)
info.getBlockchainID 1
info.getNetworkID 1
info.getNetworkName 1
info.getNodeVersion 1
info.getTxFee 1
info.uptime 1
info.upgrades 1