Supported Chains: 0G-B
Supported chains 0G-B on the Web3 API platform. See the full chain list for every network.
0G
0G API is available on Web3 API platform.
0G Chain is a highly scalable, AI-optimized L1 blockchain designed to meet the needs of data-heavy applications. Built with a modular architecture, it allows for the independent optimization of key components like consensus, execution, and storage—making it ideal for AI-driven workflows. 0G is fully EVM-compatible, so decentralized applications (dApps) already deployed on other L1 or L2 chains (such as Ethereum or rollups) can easily leverage 0G's products without needing to migrate entirely.
0G Chain supports a data availability network, distributed storage network, and AI compute network. All of these networks integrate with 0G Chain's highly scalable consensus network, built to handle massive data volumes suitable for AI.
Official quick links: Website, Docs, GitHub
Networks
- Testnet:
- EVM JSON-RPC API (
HTTPSandWSS) - Tendermint RPC API (
HTTPSandWSS) - Tendermint REST API (
HTTPS) - Beaconkit REST API (
HTTPS)
- EVM JSON-RPC API (
API methods
For 0G, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
Tendermint (both for REST and JSON-RPC):
/health,
/genesis,
/broadcast_evidence,
/dial_seeds,
/dial_peers,
API querying
EVM JSON-RPC
- Request example
- Response example
curl -X POST https://rpc.ankr.com/0g_galileo_testnet_evm \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
{
"jsonrpc":"2.0",
"id":1,
"result":"0x27204c"
}
Tendermint JSON-RPC
- Request example
- Response example
curl -X POST https://rpc.ankr.com/0g_galileo_testnet_tendermint \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "blockchain",
"params": ["1", "2"],
"id": 1
}'
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"last_height": "2564214",
"block_metas": [
{
"block_id": {
"hash": "ED3BF22DDEAABE5B194ECE00FC97B73B31D6B6E381946054ADF248FADA65FD4F",
"parts": {
"total": 1,
"hash": "268422F8D294840DBC5B24FB031F976357E8478F72C16B66E7B7388C2429D18F"
}
},
"block_size": "830",
"header": {
"version": {
"block": "11"
},
"chain_id": "zgtendermint_16600-2",
"height": "2",
"time": "2024-06-24T07:25:41.380275895Z",
"last_block_id": {
"hash": "A3052C548269F770727A7E74EE90FCDAE6C4AEB5C0F0C614DA0621790D479B89",
"parts": {
"total": 1,
"hash": "E2CF5FEEBCCDA872FB23EA228B82937C4620A887071E9B68AE77CB62F431F2BA"
}
},
"last_commit_hash": "5148301A7ABA311392D676C3C967F299F85A1AD48D74E96AF083DA4787FF9C2D",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"next_validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"consensus_hash": "81BA6261D0077795E489737675DE120CC9170ADCCAAD805E12EF2708A2E21453",
"app_hash": "21181DF7C886CEE14012C07031E55BF04428BF77979015F2869ED1EACABAD22E",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "CDFF531A3AFA255BC193D52721027366935F9BF8"
},
"num_txs": "0"
},
{
"block_id": {
"hash": "A3052C548269F770727A7E74EE90FCDAE6C4AEB5C0F0C614DA0621790D479B89",
"parts": {
"total": 1,
"hash": "E2CF5FEEBCCDA872FB23EA228B82937C4620A887071E9B68AE77CB62F431F2BA"
}
},
"block_size": "353",
"header": {
"version": {
"block": "11"
},
"chain_id": "zgtendermint_16600-2",
"height": "1",
"time": "2024-06-24T07:24:31.526533772Z",
"last_block_id": {
"hash": "",
"parts": {
"total": 0,
"hash": ""
}
},
"last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"next_validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"consensus_hash": "81BA6261D0077795E489737675DE120CC9170ADCCAAD805E12EF2708A2E21453",
"app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "13E845BC0B362D63BC7D4817279EDE51BEB7F9AD"
},
"num_txs": "0"
}
]
}
}
Tendermint REST
- Request example
- Response example
curl https://rpc.ankr.com/http/0g_galileo_testnet_tendermint/blockchain?minHeight=1&maxHeight=2
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"last_height": "2564234",
"block_metas": [
{
"block_id": {
"hash": "ED3BF22DDEAABE5B194ECE00FC97B73B31D6B6E381946054ADF248FADA65FD4F",
"parts": {
"total": 1,
"hash": "268422F8D294840DBC5B24FB031F976357E8478F72C16B66E7B7388C2429D18F"
}
},
"block_size": "830",
"header": {
"version": {
"block": "11"
},
"chain_id": "zgtendermint_16600-2",
"height": "2",
"time": "2024-06-24T07:25:41.380275895Z",
"last_block_id": {
"hash": "A3052C548269F770727A7E74EE90FCDAE6C4AEB5C0F0C614DA0621790D479B89",
"parts": {
"total": 1,
"hash": "E2CF5FEEBCCDA872FB23EA228B82937C4620A887071E9B68AE77CB62F431F2BA"
}
},
"last_commit_hash": "5148301A7ABA311392D676C3C967F299F85A1AD48D74E96AF083DA4787FF9C2D",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"next_validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"consensus_hash": "81BA6261D0077795E489737675DE120CC9170ADCCAAD805E12EF2708A2E21453",
"app_hash": "21181DF7C886CEE14012C07031E55BF04428BF77979015F2869ED1EACABAD22E",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "CDFF531A3AFA255BC193D52721027366935F9BF8"
},
"num_txs": "0"
},
{
"block_id": {
"hash": "A3052C548269F770727A7E74EE90FCDAE6C4AEB5C0F0C614DA0621790D479B89",
"parts": {
"total": 1,
"hash": "E2CF5FEEBCCDA872FB23EA228B82937C4620A887071E9B68AE77CB62F431F2BA"
}
},
"block_size": "353",
"header": {
"version": {
"block": "11"
},
"chain_id": "zgtendermint_16600-2",
"height": "1",
"time": "2024-06-24T07:24:31.526533772Z",
"last_block_id": {
"hash": "",
"parts": {
"total": 0,
"hash": ""
}
},
"last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"next_validators_hash": "EC4FD9C58AB322D57FD67299FC64AE10459BDAA2652BFC1CC989C66F8B9B6EA1",
"consensus_hash": "81BA6261D0077795E489737675DE120CC9170ADCCAAD805E12EF2708A2E21453",
"app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "13E845BC0B362D63BC7D4817279EDE51BEB7F9AD"
},
"num_txs": "0"
}
]
}
}
Beaconkit REST
- Request example
- Response example
curl https://rpc.ankr.com/http/0g_galileo_testnet_beaconkit/eth/v1/node/version
{
"data": {
"version": "1.1.0"
}
}
Allora
Allora API is available on Web3 API platform.
The Allora Network is an advanced protocol that leverages decentralized AI and machine learning (ML) to generate and share predictions among its participants. It provides a structured way for users to access on-chain AI predictions and pay the AI/ML node operators who produce these insights.
Allora acts as a bridge between various parties — data owners, processors, AI/ML predictors, market analysts, and end-users — allowing them to utilize and act on these predictions. AI/ML agents on the network use their data and algorithms to broadcast predictions across a peer-to-peer network. They also evaluate predictions from other agents.
The network’s consensus mechanism then combines these predictions and assessments, rewarding agents based on the quality of their contributions. This incentive system helps Allora continuously learn and adapt to changing market conditions.
Official quick links: Website, Docs, GitHub
Networks
- Testnet:
- Tendermint RPC API (
HTTPSandWSS) - Tendermint REST API (
HTTPS) - Cosmos REST API (
HTTPS)
- Tendermint RPC API (
API methods
For Allora, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
Tendermint (both for REST and JSON-RPC):
/health,
/genesis,
/broadcast_evidence,
/dial_seeds,
/dial_peers,
Cosmos:
/cosmos/auth/v1beta1/address_by_id/{id},
/cosmos/auth/v1beta1/module_accounts,
/cosmos/auth/v1beta1/bech32,
/cosmos/auth/v1beta1/bech32/{address_bytes},
/cosmos/auth/v1beta1/bech32/{address_string},
/cosmos/bank/v1beta1/supply/{denom},
/cosmos/bank/v1beta1/denom_owners/{denom},
/cosmos/bank/v1beta1/send_enabled,
/cosmos/base/reflection/v1beta1/interfaces,
/cosmos/base/reflection/v1beta1/interfaces/:interface_name/implementations,
/cosmos/base/reflection/v1beta1/app_descriptor/authn,
/cosmos/base/reflection/v1beta1/app_descriptor/chain,
/cosmos/base/reflection/v1beta1/app_descriptor/codec,
/cosmos/base/reflection/v1beta1/app_descriptor/configuration,
/cosmos/base/reflection/v1beta1/app_descriptor/query_services,
/cosmos/base/reflection/v1beta1/app_descriptor/tx_descriptor,
/cosmos/base/tendermint/v1beta1/abci_query,
/cosmos/feegrant/v1beta1/issued/{granter},
/cosmos/gov/v1/proposals/{proposal_id},
/cosmos/gov/v1/proposals,
/cosmos/gov/v1/proposals/{proposal_id}/votes/{voter},
/cosmos/gov/v1/proposals/{proposal_id}/votes,
/cosmos/gov/v1/params/{params_type},
/cosmos/gov/v1/proposals/{proposal_id}/deposits/{depositor},
/cosmos/gov/v1/proposals/{proposal_id}/deposits,
/cosmos/gov/v1/proposals/{proposal_id}/tally,
/cosmos/group/v1/group_info/{group_id},
/cosmos/group/v1/group_policy_info/{address},
/cosmos/group/v1/group_members/{group_id},
/cosmos/group/v1/groups_by_admin/{admin},
/cosmos/group/v1/group_policies_by_group/{group_id},
/cosmos/group/v1/group_policies_by_admin/{admin},
/cosmos/group/v1/proposal/{proposal_id},
/cosmos/group/v1/proposals_by_group_policy/{address},
/cosmos/group/v1/vote_by_proposal_voter/{proposal_id}/{voter},
/cosmos/group/v1/votes_by_proposal/{proposal_id},
/cosmos/group/v1/votes_by_voter/{voter},
/cosmos/group/v1/groups_by_member/{address},
/cosmos/group/v1/proposals/{proposal_id}/tally,
/cosmos/nft/v1beta1/balance/{owner}/{class_id},
/cosmos/nft/v1beta1/owner/{class_id}/{id},
/cosmos/nft/v1beta1/supply/{class_id},
/cosmos/nft/v1beta1/nfts,
/cosmos/nft/v1beta1/nfts/{class_id}/{id},
/cosmos/nft/v1beta1/classes/{class_id},
/cosmos/nft/v1beta1/classes,
/cosmos/params/v1beta1/subspaces,
/cosmos/upgrade/v1beta1/module_versions,
/cosmos/upgrade/v1beta1/authority,
/cosmos/base/tendermint/v1beta1/node_info,
/cosmos/base/tendermint/v1beta1/syncing,
/cosmos/params/v1beta1/params,
/syncing,
/blocks/latest,
/blocks/{height},
/validatorsets/latest,
/validatorsets/{height},
/wasm/code,
/wasm/code/{codeID},
/wasm/code/{codeID}/contracts,
/wasm/contract/{contractAddress},
/wasm/contract/{contractAddress}/code-hash,
/wasm/contract/{contractAddress}/query/{query},
/wasm/code/{codeID}/hash,
/reg/consensus-io-exch-pubkey
API querying
Request example
- Tendermint JSON-RPC
- Tendermint REST
- Cosmos REST
curl -X POST https://rpc.ankr.com/allora_testnet \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "block",
"params": ["761001"],
"id": 1
}'
curl https://rpc.ankr.com/http/allora_testnet/block?height=761001
curl https://rpc.ankr.com/http/allora_cosmos_testnet/cosmos/base/tendermint/v1beta1/blocks/{height}
Response example
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"block_id": {
"hash": "663789D1BAA0354453A5BB1474C46C9F74E6140B247153482BBE84893C029600",
"parts": {
"total": 1,
"hash": "BFCC2C78C439E367ABEEA996FD9A120EAA70DC44572B8BFDCA032908BA4B439B"
}
},
"block": {
"header": {
"version": {
"block": "11"
},
"chain_id": "allora-testnet-1",
"height": "761001",
"time": "2024-08-21T21:33:36.088780054Z",
"last_block_id": {
"hash": "AD51186842A63CB515A4946C558DF1DA71D384DF646EC5522ECD5008E3FAEDA0",
"parts": {
"total": 1,
"hash": "16A9CCD523F2E593E66F46CBD20FCC03B5849ACE5325951E50BC53B6D7D2F893"
}
},
"last_commit_hash": "77BE45E09B5A5F40FA1F10BF430C2E14371445B9E2DF89952478E84A98DFA081",
"data_hash": "78F2AF9D01AC871045FB53CB383AA50EF4C0094E9563428BFF8BA59071801050",
"validators_hash": "CB957FF7AB192A9F9321F0E471C7BAE5A9AA82573FF8D509F8ACF7CA3A450A42",
"next_validators_hash": "CB957FF7AB192A9F9321F0E471C7BAE5A9AA82573FF8D509F8ACF7CA3A450A42",
"consensus_hash": "048091BC7DDC283F77BFBF91D73C44DA58C3DF8A9CBC867405D8B7F3DAADA22F",
"app_hash": "72AEC5979CEA9EE65275B77DA8F31676C7E52DA57B991D86C4870237E3D40127",
"last_results_hash": "455FD6D9D1888EBE5B8602E20E84EEACA30020B717A5B5298890E7236CAB84AD",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "01458B61F0D7DE6E90798FE8C370413D718EB34C"
},
"data": {
"txs": [
"CuECCt4CCiQvZW1pc3Npb25zLnYyLk1zZ0luc2VydFdvcmtlclBheWxvYWQStQIKK2FsbG8xYWhhcGE2ZHpkOG0yNjc0MHp5N2gyd3pnamx1ZnM4NjRmeDR1eHcShQIKK2FsbG8xYWhhcGE2ZHpkOG0yNjc0MHp5N2gyd3pnamx1ZnM4NjRmeDR1eHcSBAiRuS4YBSJICkYIBRCRuS4aK2FsbG8xYWhhcGE2ZHpkOG0yNjc0MHp5N2gyd3pnamx1ZnM4NjRmeDR1eHciETE0NS42NTg1MDk2NjIzMjkzKkBkgCxd7XHQh+Debe/yvS+c8BBoKguydI/J/YNqRaYpBDpnwQo+4/LPouiYF04JXDBa4qxTfJFlpdSJ9EgoX+TAMkIwMmQ4MjYzOTFiYWI4ZjYzNWYzNDhkYmQxNDQ1ZGUxZmQ0YjgzZjNiNGJiZjFkY2EzY2Q4YWFjM2FlMWMyYmY5ODcSWApQCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohAtgmORurj2NfNI29FEXeH9S4PztLvx3KPNiqw64cK/mHEgQKAggBGCkSBBDAhD0aQN1AnyLR2Kz/KMZ5yr+Sz4wo+4Tp8OnyDqSlr98oCNQVPtF69bWneamHvTEq7r5WUGuwQfWSD+sybXlUgnDlmIw=",
"CuECCt4CCiQvZW1pc3Npb25zLnYyLk1zZ0luc2VydFdvcmtlclBheWxvYWQStQIKK2FsbG8xcmZweng2MGR6MDc5dWhuZXRxdHNkdTJ1ZTM0dmdyMnJ3ZGFrd2cShQIKK2FsbG8xcmZweng2MGR6MDc5dWhuZXRxdHNkdTJ1ZTM0dmdyMnJ3ZGFrd2cSBAiTuS4YAyJICkYIAxCTuS4aK2FsbG8xcmZweng2MGR6MDc5dWhuZXRxdHNkdTJ1ZTM0dmdyMnJ3ZGFrd2ciETYxMzI3LjIzMTM5NzQ3MTg1KkA2b71NaRNK8PFRv+nLbaTfB53wu/AqI4cGoFYED/4U/3c8JOYW+Q2moUdlX35tKF0U2gneVA2jQy0vmem8uIz6MkIwMzA5Zjg2ZWY3YzNlM2IyZjUzMzg3OGZiNjY2Mjk1NjljNjFkYTNhMzg2OTkyNjNmMWM4MDhlMTcxMTQzOWYxMmMSWQpRCkYKHy9jb3Ntb3MuY3J5cHRvLnNlY3AyNTZrMS5QdWJLZXkSIwohAwn4bvfD47L1M4ePtmYpVpxh2jo4aZJj8cgI4XEUOfEsEgQKAggBGLJKEgQQwIQ9GkAYepebNx4qruj3/XCxlmVQ3XDbhfsXZlZyM+yeqUs7d263LfRxugRgQH3aiV/ROiC/gVH0bID6GA00y5QMWM+B"
]
},
"evidence": {
"evidence": []
},
"last_commit": {
"height": "761000",
"round": 0,
"block_id": {
"hash": "AD51186842A63CB515A4946C558DF1DA71D384DF646EC5522ECD5008E3FAEDA0",
"parts": {
"total": 1,
"hash": "16A9CCD523F2E593E66F46CBD20FCC03B5849ACE5325951E50BC53B6D7D2F893"
}
},
"signatures": [
{
"block_id_flag": 1,
"validator_address": "",
"timestamp": "0001-01-01T00:00:00Z",
"signature": null
},
{
"block_id_flag": 2,
"validator_address": "2D5A6E69CDFBE8FF7C0C2DAFF752387AC73B9AB1",
"timestamp": "2024-08-21T21:33:36.07519025Z",
"signature": "LvyV25u8kxAivi7rHuAZlXtawVBMYyOJflcr4al44TWVLmYnztqycSgGyi1S9GkUGoeA4nG+wRM/4pqk4YIKDQ=="
}
]
}
}
}
}
Aptos
Available for Freemium and Premium users.
Aptos API is available on Web3 API platform.
The Aptos blockchain, designed with scalability, safety, reliability, and upgradability as key principles, to address blockchain challenges, such as frequent outages, high costs, low throughput limits, and security concerns. The Aptos blockchain has been developed over the past three years by over 350+ developers across the globe. It offers new and novel innovations in consensus, smart contract design, system security, performance, and decentralization. The combination of these technologies will provide a fundamental building block to bring web3 to the masses.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPS) - Testnet (
HTTPS)
API methods
For Aptos, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
/v1/spec, /v1/-/healthy
API querying
Request example
curl -X GET https://rpc.ankr.com/premium-http/aptos/{your_token}/v1/ \
-H 'Content-Type: application/json'
Response example
{
"chain_id": 0,
"epoch": "32425224034",
"ledger_version": "32425224034",
"oldest_ledger_version": "32425224034",
"ledger_timestamp": "32425224034",
"node_role": "validator",
"oldest_block_height": "32425224034",
"block_height": "32425224034",
"git_hash": "string"
}
Arbitrum
Available for Freemium and Premium users.
Arbitrum API is available on Web3 API platform.
Arbitrum is a side chain that runs parallel to Ethereum Mainnet. Also known as a Layer 2 (L2) scaling solution, Arbitrum improves transaction speeds and cost compared to the mainnet, making it an excellent solution for Ethereum developers.
By the Arbitrum we mean Arbitrum One which is the flagship Arbitrum mainnet chain; it is an Optimistic Rollup chain running on top of Ethereum Mainnet, and is open to all users. In an upgrade on 8/31, the Arbitrum One chain was upgraded to use the Nitro tech stack, maintaining the same state.
Official quick links:
- Website, Docs, GitHub
- Community treasury address (
0x8C316E77c4D4aBc461a074cf68c04DD666c57b42)
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Arbitrum, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Public service plan has a 2MB request body limit. Use Premium instead for requests exceeding that limit.
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/arbitrum/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/arbitrum/{your_token}" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/arbitrum/{your_token}' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/arbitrum/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x2484729"
}
Arbitrum Nova
Available for Freemium and Premium users.
Arbitrum Nova API is available on Web3 API platform.
Arbitrum Nova offers an ultra-low transaction costs with high security. Nova powers dapps with high transaction volumes that seek to drive costs even lower.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Arbitrum Nova, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/arbitrumnova/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/arbitrumnova/{your_token}" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/arbitrumnova/{your_token}' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/arbitrumnova/{your_token}F' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x257932"
}
Atleta
Atleta API is available on Web3 API platform.
Atleta is a modular, multi-layer, EVM-compatible, smart contract platform with native cross-chain interoperability, dedicated to servicing the sports industry.
Key Features of Atleta Network:
- Modular Multi-Layer Architecture: Atleta's design separates core blockchain functions into distinct layers — Execution, Interoperability, and Storage. This modularity allows for scalability and adaptability, enabling seamless upgrades without disrupting ongoing operations.
- Execution Layer: An Ethereum Virtual Machine (EVM)-compatible smart contract layer that facilitates transactions and supports the development of decentralized applications.
- Interoperability Layer: Enables cross-chain communication, allowing for the transfer of assets and messages between different blockchain networks, thereby fostering a connected and collaborative ecosystem.
- Storage Layer: Provides a decentralized data storage solution for various types of information, including videos, text files, and images, ensuring secure and efficient data management.
- Nominated Proof-of-Stake (NPoS) Consensus Mechanism: Atleta employs NPoS to enhance decentralization and security. This consensus model allows a wide range of participants to contribute to network validation and governance, promoting inclusivity and resilience.
- High Performance and Scalability: The network is designed to handle substantial transaction volumes, achieving approximately 60–80 transactions per second with a block time of around 6 seconds. This performance is facilitated by its Substrate-based architecture, which enables modular scalability.
- Instant Finality: Utilizing the GRANDPA (GHOST-based Recursive Ancestor Deriving Prefix Agreement) finality gadget, Atleta ensures immediate transaction finality per block, enhancing security and efficiency.
- EVM Compatibility: Atleta supports EVM-compatible smart contracts, allowing developers to deploy existing Ethereum-based applications and leverage liquidity across other EVM networks seamlessly.
Official quick links: Website, Docs, GitHub
Networks
- Testnet:
- Olympia (
HTTPSandWSS)
- Olympia (
API methods
For Atleta, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/atleta_olympia \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/atleta_olympia" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/atleta_olympia' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/atleta_olympia' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x7b0d3"
}
Avail
Avail API is available on Web3 API platform.
Avail is a Web3 infrastructure layer that allows modular execution layers to scale and interoperate in a trust minimized way.
A foundational Data Availability (DA) layer, Nexus interoperability layer, and Fusion Security network layer come together to form the Unification Layer.
- The DA layer is a highly optimized, low-level layer, specifically constructed for data availability. This is the deepest blockchain layer, with the minimal functionality required to build cross-ecosystem interoperability on top.
- Nexus acts as a light but powerful proof aggregation and sequencer selection ZK rollup on top of Avail, allowing for cross-rollup and cross-ecosystem settlement.
- Fusion Security enables a basket of tokens to pool their crypto-economic security to serve and secure the Avail network.
Avail's mission is to streamline the rollup experience, offering a unified, efficient platform for both users and developers from any ecosystem. This vertically integrated stack aims to dissolve the growing pains and user fragmentation experienced today, enabling Rollups to seamlessly access users and liquidity across the entire blockchain landscape.
The Turing Testnet is live and marks Avail's final and definitive pre-Mainnet testing environment, aimed at vetting Mainnet deployments, executing extensive stress tests, and assessing network topologies for scalability and resilience.
Official quick links: Website, Docs, GitHub
Networks
- Turing Testnet (
HTTPSandWSS)
API methods
For Avail, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
state_getMetadata,
state_getPairs,
state_traceBlock,
state_trieMigrationStatus,
state_subscribeStorage,
state_unsubscribeStorage,
state_queryStorage,
sync_state_genSyncSpec,
system_accountNextIndex,
system_addLogFilter,
system_addReservedPeer,
system_health,
system_localListenAddresses,
system_localPeerId,
system_name,
system_nodeRoles,
system_peers,
system_properties,
system_removeReservedPeer,
system_reservedPeers,
system_resetLogFilter,
system_syncState,
system_unstable_networkState,
system_version,
account_*,
babe_*,
mmr_*,
dev_*,
offchain_*,
author_*
API querying
Request example
curl -X POST https://rpc.ankr.com/avail_turing_testnet \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "chain_getBlock",
"params": []
}'
Response example
{
"jsonrpc": "2.0",
"result": {
"block": {
"header": {
"parentHash": "0x32d67a9e5843dd8527bf0e2ec1f4c6d2f8642ef264348ef7d610575619a5b6e8",
"number": "0x49993",
"stateRoot": "0x7d0860d48e20e42886aeac479dd339d1f75387d3be844a490ca1734efd430213",
"extrinsicsRoot": "0x07d2cb3154a4bc3ff485d0101bb1cba8045bf1bd74a34a977cc2672a41e76596",
"digest": {
"logs": [
"0x0642414245b5010359000000757a1e0500000000841bf8fb61a548ec94caba8ddedcf85e02de0110990ffe3c4216277ee0b9734a9b966b69d9025691e82043d9a647ce917871b1b2d2082afc3ce3b195c96e1c039b2e312d9028cf976284d61c41f1069b1df154b5e6b6bef9ad4455dd24ea160d",
"0x05424142450101c2be2a753a256b1261e00d5d31a20befa735767d5debe27edfff52149e4ce53398135479d97a0e594a2160cf78b3743ca42899138b0c5b58334bc7c4d0217080"
]
},
"extension": {
"V3": {
"appLookup": {
"size": 114,
"index": [
{
"appId": 36,
"start": 0
}
]
},
"commitment": {
"rows": 1,
"cols": 128,
"commitment": [
128,
27,
216,
161
],
"dataRoot": "0x67e432157400275ba4e6e7c9d61312afa5cbbea68d8b718fa8be3038980a9970"
}
}
}
},
"extrinsics": [
"0x280403000ba0f41eed8f01",
"0xc90384007ce8ccf46bbdf7561f0d1419857dab91bfbda9866d564c2c5cfe43210a75db310122850737c933478016ee92ddcbd1eda470ead30b6a7938adba396b9e51922949b1bba1bf56ca8bd67f2241b1240fa1f2bd18f07b42111fe70f9f386b78f66f87040162760100000001020c0603004e558a63713b227cb661a5cb639c5bea499bd00039d7dabe16cb891e8fc2025213000064a7b3b6e00d06030006aa84733a1b39c3cc83586e589fd6bb82228321e1f75d4e2bc3af8d4957785213000064a7b3b6e00d0603003a1e5289c81ff9dfd53cf55e64aaaee9aeb31e5ae43c9679de15a841b406521d13000064a7b3b6e00d"
]
},
"justifications": null
},
"id": 1
}
Avalanche
Available for Freemium and Premium users.
Avalanche API is available on Web3 API platform.
Avalanche is an open-source platform for launching decentralized applications and enterprise blockchain deployments in one interoperable, highly scalable ecosystem. Avalanche is the first decentralized smart contracts platform built for the scale of global finance, with near-instant transaction finality. Ethereum developers can quickly build on Avalanche as Solidity works out-of-the-box.
Avalanche is an ecosystem that features three built-in blockchains: Exchange Chain (X-Chain), Platform Chain (P-Chain), and Contract Chain (C-Chain).
Official quick links: Website, Docs, GitHub
Networks
- Mainnet / Fuji Testnet:
- Standard EVM API (
HTTPSandWSS) - X-Chain (
HTTPS) - P-Chain (
HTTPS) - C-Chain (
HTTPS)
- Standard EVM API (
Add networks to MetaMask
Using Ankr as the blockchain provider for MetaMask makes user interaction on Web3 not just easy and slick but also PRIVATE. We DON'T collect users' blockchain addresses — end of the story. Feel free to check our terms and privacy policy to be sure.
For MetaMask to interact with Avalanche through Ankr's infrastructure, add a required Avalanche network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Avalanche Mainnet, follow these steps:
-
In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.
-
In the Add a network pane, click Add a network manually, then enter the network details and click Save:
- Network name:
Avalanche Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/avalanche/{your_token}. - Chain ID:
43114. - Currency symbol:
AVAX. - Block explorer URL:
https://snowtrace.io/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Avalanche Mainnet.
To add Avalanche Fuji Testnet, follow these steps:
-
In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.
-
In the Add a network pane, click Add a network manually, then enter the network details and click Save:
- Network name:
Avalanche Fuji Testnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/avalanche_fuji/{your_token}. - Chain ID:
43113. - Currency symbol:
AVAX. - Block explorer URL:
https://testnet.snowtrace.io/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Avalanche Fuji Testnet.
API methods
For Avalanche, we support blockchain interaction via the following methods:
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork, eth_submitWork, eth_submitHashrate, net_peerCount,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*,
avm.createAddress, avm.exportKey, avm.importKey, avm.export, avm.import, avm.mint, avm.createFixedCapAsset, avm.createVariableCapAsset, avm.createNFTAsset, avm.mintNFT, avm.listAddresses, avm.send, avm.sendMultiple, avm.sendNFT, wallet.send, wallet.sendMultiple, wallet.issueTx, avax.export, avax.exportAVAX, avax.exportKey, avax.import, avax.importAVAX, avax.importKey,
platform.addDelegator, platform.addValidator, platform.addSubnetValidator, platform.createAddress, platform.createBlockchain, platform.createSubnet, platform.exportAVAX, platform.exportKey, platform.importAVAX, platform.importKey, platform.listAddresses
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example (Standard EVM)
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/avalanche/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/avalanche/{your_token}" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/avalanche/{your_token}' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/avalanche/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example (Standard EVM)
{
"jsonrpc":"2.0",
"result":"0x155ea63",
"id":1
}
Request example (P-Chain)
curl -X POST 'https://rpc.ankr.com/avalanche-p/{your_token}' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"id" :1,
"method" :"platform.getBalance",
"params" :{
"address":"P-custom18jma8ppw3nhx5r4ap8clazz0dps7rv5u9xde7p"
}
}'
Response example (P-Chain)
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"txID": "NUPLwbt2hsYxpQg4H2o451hmTWQ4JZx2zMzM4SinwtHgAdX1JLPHXvWSXEnpecStLj"
}
}
Request example (C-Chain)
curl -X POST 'https://rpc.ankr.com/avalanche-c/{your_token}' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"id" :1,
"method" :"avax.getAtomicTx",
"params" : {
"txID":"2GD5SRYJQr2kw5jE73trBFiAgVQyrCaeg223TaTyJFYXf2kPty",
"encoding": "hex"
}
}'
Response example (C-Chain)
{
"jsonrpc": "2.0",
"result": {
"tx": "0x000000000000000030399d0775f450604bd2fbc49ce0c5c1c6dfeb2dc2acb8c92c26eeae6e6df4502b19d891ad56056d9c01f18f43f58b5c784ad07a4a49cf3d1f11623804b5cba2c6bf000000018212d6807a0ec9c1b26321418fe7a548180b5be728ce53fe7e98ab5755ed316100000001dbcf890f77f49b96857648b72b77f9f82937f28a68704af05da0dc12ba53f2db00000005000003a352a382400000000100000000000000018db97c7cece249c2b98bdc0226cc4c2a57bf52fc000003a3529edd17dbcf890f77f49b96857648b72b77f9f82937f28a68704af05da0dc12ba53f2db000000010000000900000001ead19377f015422fbb8731204fcf6d6879dd05146c2d5b5594e2fea2cb420b2f40bd457b71e279e547790b28fe5482f278c76cf39b2dce5c2e6c53352fe6827d002cc7d20d",
"encoding": "hex",
"blockHeight": "1"
},
"id": 1
}
Request example (X-Chain)
curl -X POST 'https://rpc.ankr.com/avalanche-x/{your_token}' \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"id" :1,
"method" :"avm.getAddressTxs",
"params" : {
"address":"X-avax1dp6707ka34puejwg7ntnenxry98h37yvsqsm7f",
"assetID":"AVAX",
"pageSize":20
}
}'
Response example (X-Chain)
{
"jsonrpc": "2.0",
"result": {
"txIDs": ["SsJF7KKwxiUJkczygwmgLqo3XVRotmpKP8rMp74cpLuNLfwf6"],
"cursor": "1"
},
"id": 1
}
B2 Network
B² Network API is available on Web3 API platform.
The B² Network is an advanced Layer-2 solution designed to enhance transaction speed, reduce costs, and broaden application diversity without compromising security. It is notable for being the first zero-knowledge proof verification commitment rollup on Bitcoin.
Key Features:
-
Zero-Knowledge Proof Verification: Utilizes zero-knowledge proof technology to ensure transactional privacy and security, allowing for the verification of transactions without revealing the underlying data.
-
Rollup Technology: Processes multiple off-chain transactions and rolls them into a single on-chain transaction, significantly increasing efficiency and reducing costs.
-
Turing-Complete Smart Contracts: Supports Turing-complete smart contracts, enabling complex computations and a wide range of decentralized applications (dApps) to run off-chain with enhanced performance.
-
Gate Commitment and Challenge-Response Mechanism: Integrates gate commitment and challenge-response mechanisms, leveraging Taproot on Bitcoin to ensure secure and private transaction confirmations.
-
EVM-Compatibility: The B² Network is compatible with the Ethereum Virtual Machine (EVM), allowing it to run Ethereum-based smart contracts and dApps. This compatibility enables developers to use existing Ethereum tools, libraries, and standards while benefiting from the B² Network's enhanced features.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For B² Network, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/b2 \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/b2" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/b2' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/b2' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x21194c"
}
Base
Available for Freemium and Premium users.
Base API is available on Web3 API platform.
Base is a secure, low-cost, developer-friendly Ethereum L2 built to bring the next billion users to web3.
Base is built on the Bedrock release of the OP Stack, which is designed from the ground up to be as close to Ethereum as possible. Because of this, there are very little differences when it comes to building on Base and Ethereum.
However, there are still some minor discrepancies between the behavior of Base and Ethereum that you should be aware of when building apps on top of Base.
These minor differences include:
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet:
- Sepolia (
HTTPSandWSS)
- Sepolia (
API methods
For Base, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/base/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/base/{your_token}" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/base/{your_token}' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/base/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x459996"
}
Bitcoin
Available for Freemium and Premium users.
Bitcoin API is available on Web3 API platform.
Bitcoin API provides the means for communication with the Bitcoin’s public ledger.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPS) - Signet Testnet (
HTTPS)
API methods
For Bitcoin, we support blockchain interaction via the following interfaces:
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
Bitcoin's HTTPS:
savemempool, verifychain, getmemoryinfo, getrpcinfo, gettransaction, help, logging, stop, uptime, getblocktemplate, getmininginfo, getnetworkhashps, pruneblockchain, generateblock, generatetoaddress, generatetodescriptor, prioritisetransaction, submitblock, submitheader, addnode, clearbanned, disconnectnode, getaddednodeinfo, getconnectioncount, getnettotals, getnetworkinfo, getnodeaddresses, getpeerinfo, listbanned, ping, setban, setnetworkactive, signrawtransactionwithkey, createmultisig, getdescriptorinfo, signmessagewithprivkey, abandontransaction, abortrescan, addmultisigaddress, backupwallet, bumpfee, createwallet, dumpprivkey, dumpwallet, encryptwallet, getaddressesbylabel, getbalance, getbalances, getnewaddress, getrawchangeaddress, getreceivedbyaddress, getreceivedbylabel, getunconfirmedbalance, getwalletinfo, importaddress, importdescriptors, importmulti, importprivkey, importprunedfunds, importpubkey, importwallet, keypoolrefill, listaddressgroupings, listlabels, listlockunspent, listreceivedbyaddress, listreceivedbylabel, listtransactions, listsinceblock, listunspent, listwalletdir, listwallets, loadwallet, lockunspent, psbtbumpfee, removeprunedfunds, rescanblockchain, send, sendmany, sendtoaddress, sethdseed, setlabel, setwalletflag, signmessage, settxfee, signrawtransactionwithwallet, unloadwallet, upgradewallet, walletcreatefundedpsbt, walletlock, walletpassphrase, walletpassphrasechange, walletprocesspsbt, deriveaddresses, fundrawtransaction, scantxoutset, preciousblock, gettxoutsetinfo
Blockbook API:
- All WebSocket methods
- All
socket.iomethods
API querying
Request example
- Bitcoin JSON-RPC
- Blockbook REST
curl -X POST https://rpc.ankr.com/btc/{your_token} \
-d '{
"id": "hmm",
"method": "getindexinfo",
"params": []
}'
curl -X GET https://rpc.ankr.com/premium-http/btc_blockbook/{your_token}/api/v2/utxo/bc1qxhmdufsvnuaaaer4ynz88fspdsxq2h9e9cetdj?confirmed=true
Response example
- Bitcoin
- Blockbook
{
"result": {
"txindex": {
"synced": true,
"best_block_height": 843277
},
"basic block filter index": {
"synced": true,
"best_block_height": 843277
}
},
"error": null,
"id": "hmm"
}
[
{
"txid": "c80f70c48aff883b060aed28544aec0fbdeb3db913a214d37194cee6337b0437",
"vout": 1,
"value": "319691557",
"height": 854658,
"confirmations": 3,
"coinbase": true
},
{
"txid": "d6957ef0d3a8a13b369f4996f3a80182acc26445508f22ac50a4cea468663f06",
"vout": 1,
"value": "317092804",
"height": 854649,
"confirmations": 12,
"coinbase": true
},
{
"txid": "9b11befa61b7e7bc7440fcb68213c6ecf2c19f50bfac4fc5a4bbe37dad138d0d",
"vout": 1,
"value": "319367244",
"height": 854646,
"confirmations": 15,
"coinbase": true
}
]
Bitlayer
Bitlayer API is available on Web3 API platform.
Bitlayer is the first Bitcoin security-equivalent layer 2 based on BitVM. It consists of an EVM compatible chain/sequencer that can map BTC ecological assets and facilitate the entry of BTC users.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Bitlayer, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/bitlayer \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/bitlayer" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/bitlayer' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/bitlayer' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4718"
}
Blast
Blast API is available on Web3 API platform.
Blast is the only Ethereum L2 with native yield for ETH and stablecoins.
Official quick links: Website, Docs
Networks
- Mainnet (
HTTPSandWSS) - Sepolia Testnet (
HTTPSandWSS)
API methods
For Blast, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/blast_testnet_sepolia \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/blast_testnet_sepolia" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/blast_testnet_sepolia' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/blast_testnet_sepolia' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x1e7a17"
}
BNB Smart Chain
Available for Freemium and Premium users.
BNB Smart Chain API is available on Web3 API platform.
BNB Smart Chain (BSC) (previously Binance Smart Chain) is an innovative solution to bring programmability and interoperability to Beacon Chain. BNB Smart Chain relies on a system of 21 active validators with Proof of Staked Authority (PoSA) consensus that can support short block time and lower fees. The most bonded validator candidates of staking will become validators and produce blocks. The double-sign detection and other slashing logic guarantee security, stability, and chain finality.
To the EVM compatibility that permits support for Ethereum tools and DApps, BNB Smart Chain adds smart contract functionality to the chain. The dual-chain architecture alongside Binance Chain enables sending and receiving of BNB and BEP2 tokens cross-chain.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Chapel Testnet (
HTTPSandWSS)
Add networks to MetaMask
Using Ankr as the blockchain provider for MetaMask makes user interaction on Web3 not just easy and slick but also PRIVATE. We DON'T collect users' blockchain addresses — end of the story. Feel free to check our terms and privacy policy to be sure.
For MetaMask to interact with BNB Smart Chain through Ankr's infrastructure, add a required BNB Smart Chain network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add BNB Smart Chain Mainnet, follow these steps:
-
In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.
-
In the Add a network pane, click Add a network manually, then enter the network details and click Save:
- Network name:
BNB Smart Chain Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/bsc/{your_token}. - Chain ID:
56. - Currency symbol:
BNB. - Block explorer URL:
https://bscscan.com/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with BNB Smart Chain Mainnet.
To add BNB Smart Chain Testnet, follow these steps:
-
In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.
-
In the Add a network pane, click Add a network manually, then enter the network details and click Save:
- Network name:
BNB Smart Chain Chapel Testnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/bsc_testnet_chapel/{your_token}. - Chain ID:
97. - Currency symbol:
BNB. - Block explorer URL:
https://testnet.bscscan.com/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with BNB Smart Chain Chapel Testnet.
API methods
For BNB Smart Chain, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/bsc/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/bsc/{your_token}" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/bsc/{your_token}' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/bsc/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x1601d3a"
}
Botanix
Botanix API is available on Web3 API platform.
Botanix is a decentralized Turing-complete Layer 2 EVM built on the native currency of bitcoin. It operates using two core components:
- Ethereum Virtual Machine: Fortified by a Proof-of-Stake consensus protocol that leverages Bitcoin's Proof-of-Work for superior security. Stakes are represented by actual bitcoin stored securely within multi-signature wallets on the Bitcoin network. By supporting EVM, Botanix allows developers to seamlessly port existing Ethereum dApps to the Bitcoin ecosystem.
- Spiderchain Protocol: At the core of Botanix is the Spiderchain, a series of successive multisignature (multisig) wallets managed by randomized sets of orchestrators. This structure secures user funds and facilitates the movement of Bitcoin within the network, effectively separating Bitcoin "the asset" from Bitcoin "the blockchain." By securing the Bitcoin present on Botanix in a decentralized chain of multisigs, it separates Bitcoin from the EVM. This allows for a transition from Bitcoin’s UTXO model to an account model used in the EVM.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Botanix, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/botanix_testnet \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
package main
import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/ethclient"
)
func main() {
const url = "https://rpc.ankr.com/botanix_testnet" // url string
rpcClient,err := ethclient.Dial(url)
if err != nil {
panic(err)
}
blockNumber, err := rpcClient.BlockNumber(context.Background())
if err != nil {
panic(err)
}
fmt.Println(blockNumber)
}
const Web3 = require('web3');
const url = 'https://rpc.ankr.com/botanix_testnet' // url string
const web3 = new Web3(new Web3.providers.HttpProvider(url));
web3.eth.getBlockNumber((error, blockNumber) => {
if(!error) {
console.log(blockNumber);
} else {
console.log(error);
}
});
from web3 import Web3
def test_block_number(self):
url = 'https://rpc.ankr.com/botanix_testnet' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x5c061"
}