Avalanche
Avalanche API is available on Web3 API platform.
Avalanche is an ecosystem made up of three core Blockchains optimized for specific tasks within the network. The Exchange Chain (X-Chain), Platform Chain (P-Chain), and Contract Chain (C-Chain). We also support Standard EVM API for Avalanche.
Avalanche was built specifically with Defi dApps and protocols in mind, focusing on security, low latency, and high throughput. Avalanche uses a novel consensus protocol by utilizing two different consensus mechanisms. The consensus protocol ensures a high degree of security and fast finality even with multiple chains running simultaneously.
For Avalanche, we support the following APIs:
In order for your Web3 application to interact with the Avalanche blockchain — either by reading blockchain data or sending transactions to the network — it must connect to an Avalanche node. Developers interact with the blockchain using the methods provided by the API.
The API interaction follows the JSON-RPC which is a stateless, light-weight remote procedure call (RPC) protocol. It defines several data structures and the rules around their processing. It is transport agnostic in that the concepts can be used within the same process, over sockets, over HTTP, or in many various message passing environments. It uses JSON (RFC 4627) as data format.
Methods
EVM methods
web3_clientVersionweb3_sha3net_versionnet_listeningeth_syncingeth_gasPriceeth_accountseth_blockNumbereth_getBalanceeth_getStorageAteth_getTransactionCounteth_getBlockTransactionCountByHasheth_getBlockTransactionCountByNumbereth_getUncleCountByBlockHasheth_getUncleCountByBlockNumbereth_getCodeeth_sendRawTransactioneth_calleth_estimateGaseth_getBlockByHasheth_getBlockByNumbereth_getTransactionByHasheth_getTransactionByBlockHashAndIndexeth_getTransactionByBlockNumberAndIndexeth_getTransactionReceipteth_getUncleByBlockHashAndIndexeth_getUncleByBlockNumberAndIndexeth_getLogs
EVM methods, P-Chain methods
eth_getAssetBalanceeth_baseFeeeth_maxPriorityFeePerGaseth_getChainConfigplatform.getBalanceplatform.getBlockplatform.getBlockchainsplatform.getBlockchainStatusplatform.getCurrentSupplyplatform.getCurrentValidatorsplatform.getHeightplatform.getMaxStakeAmountplatform.getMinStakeplatform.getPendingValidatorsplatform.getRewardUTXOsplatform.getStakeplatform.getStakingAssetIDplatform.getSubnetsplatform.getTimestampplatform.getTotalStakeplatform.getTxplatform.getTxStatus
P-Chain methods, C-Chain methods, X-Chain methods
platform.getUTXOsplatform.getValidatorsAtplatform.issueTxplatform.sampleValidatorsplatform.validatedByplatform.validatesavax.getAtomicTxavax.getAtomicTxStatusavax.getUTXOsavax.issueTxavm.buildGenesisavm.getAddressTxsavm.getAllBalancesavm.getAssetDescriptionavm.getBalanceavm.getBlockavm.getBlockByHeightavm.getHeightavm.getTxavm.getTxStatusavm.getUTXOsavm.issueTx