Avalanche
Pronto para usar isso em produção?
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
Avalanche
O plano gratuito cobre projetos pessoais. O pay-as-you-go escala sem cartão de crédito.
This page indexes every JSON-RPC method TheRPC supports on the Avalanche C-Chain, grouped by namespace so you can see at a glance what each call does and when to reach for it. Whether you are reading AVAX balances, tracing a swap on Trader Joe, or inspecting the pending pool, the method you need is listed below. Click any method name to open its full documentation, complete with parameters, return shape, error codes, and copy-paste examples pointed at https://avalanche.therpc.io/YOUR_API_KEY.
The eth_ namespace is the workhorse for the Avalanche C-Chain. These methods cover the core of day-to-day interaction with the chain: reading the latest block height, fetching AVAX balances, sending raw signed transactions, estimating gas, and calling smart contracts such as Aave or GMX. Because the C-Chain is fully EVM-compatible and runs under Snowman consensus with roughly one-to-two-second finality, these standard Ethereum-style calls behave exactly as you would expect, while confirming far faster.
eth_blockNumberRead the latest accepted Avalanche C-Chain block height with eth_blockNumber over JSON-RPC, returned as a hex string for AVAX dApps.
eth_callRun read-only contract calls on the Avalanche C-Chain with eth_call over JSON-RPC — query Trader Joe, Aave, or GMX state without spending AVAX.
eth_chainIdUse eth_chainId over JSON-RPC to confirm an endpoint serves the Avalanche C-Chain (43114 / 0xa86a) before signing AVAX transactions.
eth_estimateGasEstimate the gas a transaction will use on the Avalanche C-Chain with eth_estimateGas over JSON-RPC before paying for it in AVAX.
eth_feeHistoryPull recent Avalanche C-Chain base fees, gas-used ratios, and priority-fee percentiles with eth_feeHistory to price EIP-1559 AVAX transactions.
eth_gasPriceGet the Avalanche C-Chain node's suggested gas price in wei with eth_gasPrice over JSON-RPC for pricing legacy AVAX transactions.
eth_getBalanceRead the AVAX balance of any Avalanche C-Chain account at a chosen block with eth_getBalance over JSON-RPC, returned as hex wei.
eth_getBlockByHashFetch full Avalanche C-Chain block data by block hash with eth_getBlockByHash over JSON-RPC, including header fields and transactions.
eth_getBlockByNumberFetch Avalanche C-Chain block data by height or tag with eth_getBlockByNumber over JSON-RPC — latest, finalized, or any historical block.
eth_getBlockReceiptsGet every transaction receipt for an Avalanche C-Chain block in one eth_getBlockReceipts call — logs, gas used, and status for indexing.
eth_getBlockTransactionCountByHashCount the transactions in an Avalanche C-Chain block by hash with eth_getBlockTransactionCountByHash over JSON-RPC, returned as hex.
eth_getBlockTransactionCountByNumberCount transactions in an Avalanche C-Chain block by height or tag with eth_getBlockTransactionCountByNumber over the AVAX JSON-RPC endpoint.
eth_getCodeRead deployed contract bytecode on Avalanche C-Chain with eth_getCode over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getFilterChangesPoll an Avalanche C-Chain filter for new logs, blocks, or pending txs with eth_getFilterChanges over the AVAX JSON-RPC endpoint at chain 43114.
eth_getFilterLogsFetch every log matching an Avalanche C-Chain log filter with eth_getFilterLogs over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getLogsQuery Avalanche C-Chain event logs and backfill indexers with eth_getLogs over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getProofGet Avalanche C-Chain account and storage Merkle-Patricia proofs with eth_getProof over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getStorageAtRead a 32-byte contract storage slot on Avalanche C-Chain with eth_getStorageAt over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getTransactionByBlockHashAndIndexFetch a tx by block hash and index on Avalanche C-Chain with eth_getTransactionByBlockHashAndIndex over the AVAX JSON-RPC endpoint (43114).
eth_getTransactionByBlockNumberAndIndexFetch a tx by block number and index on Avalanche C-Chain with eth_getTransactionByBlockNumberAndIndex over the AVAX JSON-RPC endpoint (43114).
eth_getTransactionByHashLook up an Avalanche C-Chain transaction by hash with eth_getTransactionByHash over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getTransactionCountGet an Avalanche C-Chain account nonce with eth_getTransactionCount over the AVAX JSON-RPC endpoint at chain ID 43114.
eth_getTransactionReceiptFetch the execution receipt for a mined Avalanche C-Chain transaction — status, gas used in AVAX, and emitted logs — via eth_getTransactionReceipt.
eth_getUncleByBlockHashAndIndexeth_getUncleByBlockHashAndIndex on Avalanche C-Chain returns null — Snowman/Avalanche consensus produces no uncle (ommer) blocks. Kept for EVM compatibility.
eth_getUncleByBlockNumberAndIndexeth_getUncleByBlockNumberAndIndex on Avalanche C-Chain returns null at any height — Snowman consensus produces no uncle blocks. Kept for EVM compatibility.
eth_getUncleCountByBlockHasheth_getUncleCountByBlockHash on Avalanche C-Chain always returns 0x0 — Snowman consensus produces no uncle blocks. Kept for EVM client compatibility.
eth_getUncleCountByBlockNumbereth_getUncleCountByBlockNumber on Avalanche C-Chain always returns 0x0 at any height — Snowman consensus produces no uncle blocks. Kept for EVM compatibility.
eth_maxPriorityFeePerGasGet the node-suggested priority fee (tip) per gas in AVAX for EIP-1559 transactions on Avalanche C-Chain via eth_maxPriorityFeePerGas.
eth_newBlockFilterCreate a server-side filter for new Avalanche C-Chain block arrivals and poll it with eth_getFilterChanges, given ~1–2s Snowman finality.
eth_newFilterCreate a server-side log filter on Avalanche C-Chain and poll it incrementally with eth_getFilterChanges to track contract events without re-querying.
eth_newPendingTransactionFilterCreate a server-side filter for incoming Avalanche C-Chain pending transactions and poll it with eth_getFilterChanges to watch the AVAX mempool.
eth_sendRawTransactionBroadcast a fully signed, RLP-encoded transaction to the Avalanche C-Chain and get its hash. Submit AVAX transfers and contract calls via eth_sendRawTransaction.
eth_subscribeCall eth_subscribe on Avalanche C-Chain to stream newHeads, logs, and pending transactions over WebSocket without polling.
eth_syncingCall eth_syncing on Avalanche C-Chain to check whether a node is fully synced or still catching up, returning progress or false.
eth_uninstallFilterCall eth_uninstallFilter on Avalanche C-Chain to remove a server-side filter by ID and free node resources. Works for all filter types.
eth_unsubscribeCall eth_unsubscribe on Avalanche C-Chain to cancel an active WebSocket subscription by ID and stop further notifications.
The debug_ namespace gives you a microscope for the Avalanche C-Chain. These methods let you replay a transaction step by step, inspect the full execution trace, dump account and storage state at a given block, and analyze exactly why a call reverted. They are invaluable when debugging a failed DeFi interaction or reconstructing the state of a contract on chain ID 43114. Debug methods are heavier than standard reads and are available on plans that include archive and debug access.
debug_getBadBlocksCall debug_getBadBlocks on Avalanche C-Chain (43114) to list invalid blocks the node rejected since startup, in AVAX gas context.
debug_storageRangeAtCall debug_storageRangeAt on Avalanche C-Chain (43114) to page through a contract's raw storage slots after a given transaction in a block.
debug_traceBlockCall debug_traceBlock on Avalanche C-Chain (43114) to trace every transaction in a block supplied as raw RLP-encoded bytes.
debug_traceBlockByHashCall debug_traceBlockByHash on Avalanche C-Chain (43114) to get opcode-level traces for every transaction in a block named by its hash.
debug_traceBlockByNumberCall debug_traceBlockByNumber on Avalanche C-Chain (43114) to get opcode-level traces for all transactions in a block by number or tag.
debug_traceCallCall debug_traceCall on Avalanche C-Chain (43114) to run a call against a block state and get a full opcode trace without sending a tx.
debug_traceTransactionCall debug_traceTransaction on Avalanche C-Chain (43114) to replay a transaction opcode by opcode at its original block state.
The trace_ namespace exposes detailed execution traces for individual transactions and whole blocks on the Avalanche C-Chain. Use these methods to follow every internal call, value transfer, and contract creation that a transaction triggers — exactly the visibility you need to audit a multi-hop trade through Trader Joe or to reconcile internal AVAX movements that never appear as top-level transactions. Trace methods power block explorers, analytics pipelines, and accounting tools, and require a plan with trace access enabled.
trace_blockCall trace_block on Avalanche C-Chain (43114) to get flat call-tree traces for every transaction in a block by number or tag.
trace_callCall trace_call on Avalanche C-Chain (43114) to simulate a call and get a Parity-style call tree, VM trace, and state diff without sending it.
trace_filterCall trace_filter on Avalanche C-Chain (43114) to search traces by address and block range across many blocks, with pagination.
trace_replayBlockTransactionsCall trace_replayBlockTransactions on Avalanche C-Chain (43114) to replay every tx in a block with trace, vmTrace, and stateDiff.
trace_replayTransactionCall trace_replayTransaction on Avalanche C-Chain (43114) to replay a tx and return a chosen mix of trace, vmTrace, and stateDiff.
trace_transactionCall trace_transaction on Avalanche C-Chain (43114) to get the Parity-style call tree of a tx — every internal call, create, and suicide.
The net_ namespace reports network-level status for your Avalanche C-Chain connection. With these methods you can confirm which network you are talking to — net_version returns 43114 for the C-Chain mainnet — check whether the node is actively listening, and read the current peer count. They are a quick sanity check when wiring up a new integration or verifying that your client is pointed at the right Avalanche network rather than a testnet or another EVM chain.
net_listeningCall net_listening on Avalanche C-Chain to check whether the node is actively listening for incoming peer-to-peer connections.
net_peerCountCall net_peerCount on Avalanche C-Chain to read how many peers the node is connected to, returned as a hex-encoded integer.
net_versionCall net_version on Avalanche C-Chain to read the network ID as a decimal string and confirm a node is on the expected network.
The txpool_ namespace lets you peek into the pending transaction pool of the Avalanche C-Chain node before transactions are mined. You can list queued and pending transactions, inspect their gas pricing, and see what is waiting to be included in the next block. On a fast-finality chain like Avalanche these methods are useful for mempool monitoring, building gas-fee estimators tuned to live demand, and confirming that a freshly broadcast AVAX transaction has actually reached the node.
txpool_inspectCall txpool_inspect on Avalanche C-Chain for a human-readable summary of pending and queued transactions, grouped by sender and nonce.
txpool_statusCall txpool_status on Avalanche C-Chain to read pending and queued transaction counts as hex-encoded integers for mempool monitoring.
The web3_ namespace provides small but handy utility calls for working with the Avalanche C-Chain. web3_clientVersion returns the node software and version string, while web3_sha3 computes a Keccak-256 hash server-side — useful for deriving function selectors or event topics without pulling in extra client-side dependencies. These helpers round out the API for general blockchain interaction and quick connectivity checks against https://avalanche.therpc.io/YOUR_API_KEY.