Supported Chains: K-R
Supported chains K-R on the Web3 API platform. See the full chain list for every network.
Kaia
Kaia API is available on Web3 API platform.
Kaia is an EVM-compatible Layer 1 public blockchain designed to bring Web3 services to millions of users across Asia. Formed through the merger of the Klaytn and Finschia blockchains — initially developed by Kakao and LINE respectively — Kaia aims to integrate a broad user base with vast on-chain assets and technology to help builders promptly implement and expand their ideas with successful results.
Key Features of Kaia:
- High Performance: Kaia achieves immediate transaction finality with a 1-second block time, processing approximately 4,000 transactions per second.
- User Accessibility: By integrating with popular messaging apps like KakaoTalk and LINE, Kaia provides easy access to existing Web2 users, facilitating seamless onboarding to Web3 services.
- Developer-Friendly Environment: Kaia offers EVM equivalence, allowing developers to deploy existing Ethereum-based applications with minimal modifications. Planned support for CosmWasm and integration with industry-leading cross-chain bridges provide developers with unparalleled flexibility.
- Scalability: The network's modular architecture supports customizable and easily deployable service chains as Layer 2 solutions, enhancing scalability for high-throughput services.
- Governance: Kaia implements an on-chain governance system designed to be fair and inclusive, with voting rights proportional to the amount of KAIA tokens staked.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Kaia, 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_*,
kaia_sign,
kaia_syncing,
kaia_clientVersion,
kaia_isParallelDBWrite,
kaia_isSenderTxHashIndexingEnabled,
kaia_protocolVersion,
kaia_rewardbase,
kaia_getFilterChanges,
kaia_getFilterLogs,
kaia_newBlockFilter,
kaia_newFilter,
kaia_newPendingTransactionFilter,
kaia_uninstallFilter,
net_listening,
net_peerCount,
net_peerCountByType,
kaia_sendTransaction,
kaia_sendTransactionAsFeePayer,
kaia_signTransaction,
kaia_signTransactionAsFeePayer,
governance_*,
mainbridge_*,
subbridge_*
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/kaia \
-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/kaia" // 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/kaia' // 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/kaia' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0xa3c7fb4"
}
Kava
Kava API is available on Web3 API platform.
The Kava Network is the Layer-1 blockchain that combines the speed and scalability of the Cosmos SDK with the developer support of Ethereum. Kava will empower developers to build for Web3 and next-gen blockchain technologies through its unique co-chain architecture. KAVA is the native governance and staking token of the Kava Network, enabling its decentralization and security.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet:
- Cosmos REST API (
HTTPS) - EVM JSON-RPC API (
HTTPSandWSS) - Tendermint REST API (
HTTPS) - Tendermint JSON-RPC API (
HTTPSandWSS)
- Cosmos REST API (
API methods
For Kava, 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.
EVM JSON-RPC:
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
Tendermint REST:
/health,
/broadcast_evidence,
/dial_seeds,
/dial_peers
API querying
EVM JSON-RPC
- Request example
- Response example
curl -X POST https://rpc.ankr.com/kava_evm \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc":"2.0",
"method":"eth_blockNumber",
"params": [],
"id":1
}'
{
"jsonrpc":"2.0",
"id":1,
"result":"0xca0842"
}
Tendermint REST
- Request example
- Response example
curl https://rpc.ankr.com/http/kava_rpc/blockchain?minHeight=1&maxHeight=2
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"last_height": "13211309",
"block_metas": [
{
"block_id": {
"hash": "606AA3A0B325273C27FCD254D528DCCB968351ECF4C045920517A5269D76DB4E",
"parts": {
"total": 1,
"hash": "8B827E255B0EFF6D3D66315F9460D180D7A1988A5281DE11699CE204A0308E79"
}
},
"block_size": "6590",
"header": {
"version": {
"block": "11"
},
"chain_id": "kava_2222-10",
"height": "2",
"time": "2022-05-25T18:39:32.196946927Z",
"last_block_id": {
"hash": "9D2AF876309BB9174604004A813DCFEE94F4947B08C5BB4C1A042F318488851E",
"parts": {
"total": 1,
"hash": "510794F966632A503431FE4515D6C15D49BCFEA9E6753E06E582C8D26C826294"
}
},
"last_commit_hash": "093DC4B1414DE776AAC2388AAD616FCAC5E783930420710395732259CA023DB8",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"next_validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"consensus_hash": "AD82B220C509602720D74FD75BCE7CFE9B148039958F236D8894E00EB1599E04",
"app_hash": "4107A4EABA68DEF282B97D5071440DFB121307B524B0E2B64D7F348CB57E74A9",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "330871F4F79EF8572E4AB3A64A45AF0C88AFC24E"
},
"num_txs": "0"
},
{
"block_id": {
"hash": "9D2AF876309BB9174604004A813DCFEE94F4947B08C5BB4C1A042F318488851E",
"parts": {
"total": 1,
"hash": "510794F966632A503431FE4515D6C15D49BCFEA9E6753E06E582C8D26C826294"
}
},
"block_size": "339",
"header": {
"version": {
"block": "11"
},
"chain_id": "kava_2222-10",
"height": "1",
"time": "2022-05-25T17:00:00Z",
"last_block_id": {
"hash": "",
"parts": {
"total": 0,
"hash": ""
}
},
"last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"next_validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"consensus_hash": "AD82B220C509602720D74FD75BCE7CFE9B148039958F236D8894E00EB1599E04",
"app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "BFA6235D95564560A73460860B8D6F847360A31B"
},
"num_txs": "0"
}
]
}
}
Tendermint JSON-RPC
- Request example
- Response example
curl -X POST https://rpc.ankr.com/kava_rpc \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "blockchain",
"params": ["1", "2"],
"id": 1
}'
{
"id": 1,
"jsonrpc": "2.0",
"result": {
"last_height": "13211309",
"block_metas": [
{
"block_id": {
"hash": "606AA3A0B325273C27FCD254D528DCCB968351ECF4C045920517A5269D76DB4E",
"parts": {
"total": 1,
"hash": "8B827E255B0EFF6D3D66315F9460D180D7A1988A5281DE11699CE204A0308E79"
}
},
"block_size": "6590",
"header": {
"version": {
"block": "11"
},
"chain_id": "kava_2222-10",
"height": "2",
"time": "2022-05-25T18:39:32.196946927Z",
"last_block_id": {
"hash": "9D2AF876309BB9174604004A813DCFEE94F4947B08C5BB4C1A042F318488851E",
"parts": {
"total": 1,
"hash": "510794F966632A503431FE4515D6C15D49BCFEA9E6753E06E582C8D26C826294"
}
},
"last_commit_hash": "093DC4B1414DE776AAC2388AAD616FCAC5E783930420710395732259CA023DB8",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"next_validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"consensus_hash": "AD82B220C509602720D74FD75BCE7CFE9B148039958F236D8894E00EB1599E04",
"app_hash": "4107A4EABA68DEF282B97D5071440DFB121307B524B0E2B64D7F348CB57E74A9",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "330871F4F79EF8572E4AB3A64A45AF0C88AFC24E"
},
"num_txs": "0"
},
{
"block_id": {
"hash": "9D2AF876309BB9174604004A813DCFEE94F4947B08C5BB4C1A042F318488851E",
"parts": {
"total": 1,
"hash": "510794F966632A503431FE4515D6C15D49BCFEA9E6753E06E582C8D26C826294"
}
},
"block_size": "339",
"header": {
"version": {
"block": "11"
},
"chain_id": "kava_2222-10",
"height": "1",
"time": "2022-05-25T17:00:00Z",
"last_block_id": {
"hash": "",
"parts": {
"total": 0,
"hash": ""
}
},
"last_commit_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"data_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"next_validators_hash": "9D8248DFDD2C7571A1FB66F43C21FF698BACE04A4F2802AF63ED70FB7DC91B57",
"consensus_hash": "AD82B220C509602720D74FD75BCE7CFE9B148039958F236D8894E00EB1599E04",
"app_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"last_results_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"evidence_hash": "E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855",
"proposer_address": "BFA6235D95564560A73460860B8D6F847360A31B"
},
"num_txs": "0"
}
]
}
}
Cosmos REST
- Request example
- Response example
curl https://rpc.ankr.com/http/kava_api/cosmos/auth/v1beta1/params
{
"params": {
"max_memo_characters": "512",
"tx_sig_limit": "7",
"tx_size_cost_per_byte": "10",
"sig_verify_cost_ed25519": "590",
"sig_verify_cost_secp256k1": "1000"
}
}
Kinto
Kinto API is available on Web3 API platform.
Kinto is a Layer 2 focused on providing safe access to on-chain finance. It's built on top of the Ethereum network using the Arbitrum Nitro Stack, and it's non-custodial, transparent, permissionless, and governed by the community.
Official quick links: Website, Docs
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Kinto, 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/kinto \
-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/kinto" // 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/kinto' // 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/kinto' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1db1f"
}
Kite AI
Kite AI API is available on Web3 API platform.
Kite AI is the first AI payment blockchain, providing foundational infrastructure that empowers autonomous agents to operate and transact with identity, payment, and verification. The network enables AI agents to discover and pay for services autonomously through features like funded wallets, scoped spending sessions, and service discovery, all while maintaining user control.
Official quick links: Website, Docs
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Kite AI, 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/kite_mainnet \
-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/kite_mainnet" // 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/kite_mainnet' // 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/kite_mainnet' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x28244"
}
Kusama
Available for Premium users only.
Kusama API is available on Web3 API platform.
Kusama is an early release of Polkadot: a scalable, multichain network for radical innovation. Kusama serves as a proving ground that allows teams and developers to build and deploy a parachain, and experiment with Polkadot’s governance and NPoS functionality in a real environment.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Kusama, 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/kusama/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "chain_getBlock",
"params": []
}'
Response example
{
"jsonrpc": "2.0",
"result": {
"block": {
"header": {
"parentHash": "0x805af41d6b9e4a559a188c1824ca8bbfd454761d40791013ca9acbb7022f41b1",
"number": "0x1136a68",
"stateRoot": "0x512ca942fdd6ac82d445fddc9e6b3c23548bbbcff431dd9136fd73c3377fd1f1",
"extrinsicsRoot": "0xd45d7104386fd2bc68ec0b9455c5395b53dd8d72fb73376f13e433e282bfda34",
"digest": {
"logs": [
"0x0642414245b50103a4030000cef6bc1000000000620f5a0e38b9f5c4695c9271c17aa6d75adbbd4ed06f5d08a0f17280524242133e3eb41876d2ff9609ee2cfa422ac8a4772179ad7310d950c8edb97f0e7543006eb79fd3fbd865c24f8601f8ee50409984c915b59480e01b9382d2abccd55f06",
"0x05424142450101e45511be6785f935a0c729a15cab7503b06aeed6b881d9cdf75978e7d393060a356278eff9ac4918c1fba3127c4dfa88206ccd8a737b8796e99171728e0b448c"
]
}
},
"extrinsics": [
"0x280402000b217cd84c8801"
]
},
"justifications": null
},
"id": 1
}
Linea
Available for Premium users only.
Linea API is available on Web3 API platform.
Linea is a network that scales the experience of Ethereum. Its out-of-the-box compatibility with the Ethereum Virtual Machine enables the deployment of already-existing applications, as well as the creation of new ones that would be too costly on Mainnet. It also enables the community to use those dapps, at a fraction of the cost, and at multiples the speed of Mainnet.
It does this by leveraging quantum-resistant lattice-based cryptography to create zero-knowledge proofs that include every transaction performed on the network, and rolling them up to Mainnet. This ensures that every transaction is recorded to the Ethereum ledger while dividing the cost of that security by magnitudes.
Official quick links: Website, Docs
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Linea, 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/linea/{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/linea/{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/linea/{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/linea/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xd0ffc"
}
Mantle
Available for Freemium and Premium users.
Mantle API is available on Web3 API platform.
Mantle is a high-performance Ethereum layer-2 network built with modular architecture delivering low fees and high security. Builders can leverage Mantle’s unique design to build dApps with exceptional UX, all while relying on Ethereum’s unrivaled security.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Sepolia Testnet (
HTTPSandWSS)
API methods
For Mantle, 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/mantle/{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/mantle/{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/mantle/{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/mantle/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3ca75e"
}
Matchain
Matchain API is available on Web3 API platform.
Matchain is a decentralized AI blockchain platform dedicated to providing comprehensive digital identity solutions for all users. By integrating advanced artificial intelligence, Matchain enhances data categorization and user profiling, seamlessly merging social logins from both Web2 and Web3 into a unified digital identity. This empowers individuals with full control over their data, enabling them to own, manage, and monetize it according to their preferences.
Official quick links: Website, Docs
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Matchain, 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/matchain_mainnet \
-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/matchain_mainnet" // 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/matchain_mainnet' // 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/matchain_mainnet' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xed2d7c"
}
Metis
Available for Premium users only.
Metis API is available on Web3 API platform.
Metis is an Ethereum Layer 2 Rollup platform that offers simple and fast smart contract deployment within the network. Metis provides several solutions to solve the big challenges we face in the Ethereum mainnet, including transaction speed, cost, and scalability.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Metis, 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/metis/{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/metis/{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/metis/{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/metis/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x45cd53"
}
Midnight
Midnight API is available on Web3 API platform.
Midnight is a data protection-focused sidechain of Cardano, designed to support confidential smart contracts and zero-knowledge (ZK) technology. Developed by IOG (Input Output Global)—the same team behind Cardano—Midnight aims to bring privacy-preserving decentralized applications (dApps) to Web3.
Key Features:
- Confidential Smart Contracts: Written in TypeScript, supporting zero-knowledge (ZK) privacy by default.
- Zero-Knowledge Proofs (ZKPs): Enable validation without revealing sensitive data.
- Privacy-First Architecture: Built for data protection and regulatory compliance (example: GDPR).
- Selective Disclosure: Users can choose what information to share and with whom.
- Cardano's Sidechain: Interoperable with Cardano, using ADA and its wrapped token DUST.
- Custom PoS Consensus: A privacy-aware Proof-of-Stake mechanism tailored for Midnight.
Midnight is at a Testnet stage, providing a stable sandbox environment to develop commercially successful on-chain applications that benefit from the transparency of a blockchain while addressing granular data protection needs.
Official quick links: Website, Docs, GitHub
Networks
- Testnet (
HTTPSandWSS)
API methods
For Midnight, 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.
system_addLogFilter, system_addReservedPeer, system_dryRun, system_dryRunAt, system_localListenAddresses, system_localPeerId, system_name, system_nodeRoles, system_peers, system_removeReservedPeer, system_reservedPeers, system_resetLogFilter, system_unstable_networkState,
author_*
API querying
Request example
curl -X POST https://rpc.ankr.com/midnight_testnet/ \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "system_chain",
"params": [],
"id": 1
}'
Response example
{
"id": 1,
"jsonrpc": "2.0",
"result": "testnet-02-1"
}
Monad
Available for Freemium and Premium users.
Monad API is available on Web3 API platform.
Monad is an Ethereum-compatible Layer-1 blockchain with 10,000 tps of throughput, 500ms block frequency, and 1s finality.
Monad's implementation of the Ethereum Virtual Machine complies with the Cancun fork; simulation of historical Ethereum transactions with the Monad execution environment produces identical outcomes. Monad also offers full Ethereum RPC compatibility so that users can interact with Monad using familiar tools like Etherscan, Phantom, or MetaMask.
Monad accomplishes these performance improvements, while preserving backward compatibility, through the introduction of several major innovations:
- MonadBFT for performant, tail-fork-resistant BFT consensus.
- RaptorCast for efficient block transmission.
- Asynchronous Execution for pipelining consensus and execution to raise the time budget for execution.
- Parallel Execution for efficient transaction execution.
- MonadDb for efficient state access.
Although Monad features parallel execution and pipelining, it's important to note that blocks in Monad are linear, and transactions are linearly ordered within each block.
Official quick links: Website, Docs
Networks
- Monad (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Monad, 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/monad_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/monad_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/monad_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/monad_testnet/' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x18ffb27"
}
Moonbeam
Available for Freemium and Premium users.
Moonbeam API is available on Web3 API platform.
Moonbeam is the most Ethereum compatible smart-contract parachain in the Polkadot ecosystem. It combines the best of both worlds: the familiar and easy-to-use tooling of Ethereum and the scalable, interoperable architecture of Polkadot.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
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 Moonbeam through Ankr's infrastructure, add a required Moonbeam network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Moonbeam 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:
Moonbeam Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/moonbeam/{your_token}. - Chain ID:
1284. - Currency symbol:
GLMR. - Block explorer URL:
https://moonbeam.moonscan.io/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Moonbeam Mainnet.
API methods
For Moonbeam, 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/moonbeam/{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/moonbeam/{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/moonbeam/{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/moonbeam/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"result":"0x23218d",
"id":1
}
Movement
Movement API is available on Web3 API platform.
Movement Mainnet is a general-purpose Layer 2 built by Movement Labs to scale Ethereum applications and introduce the Move Virtual Machine (MoveVM) to a broader ecosystem. It features dual execution, fast settlement, and decentralized sequencing for high performance and interoperability.
Key Components
- Move Executor: Supports both MoveVM and EVM smart contracts, enabling seamless deployment of Move and Ethereum dApps on one network.
- Fast Finality Settlement (FFS): A validator-driven system that achieves rapid, low-latency transaction finality without expensive proofs or long challenge periods.
- Decentralized Shared Sequencer (DSS): Ensures fair, censorship-resistant transaction ordering without relying on external sequencing marketplaces.
Key Features
- Dual-VM Execution: Run Move and EVM contracts side-by-side.
- Celestia Data Availability: Modular, high-throughput data layer.
- Fast Finality: Validator staking enables settlement in seconds.
- High Scalability: Parallel execution and sovereign sequencing.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPS) - Testnet (
HTTPS)
For Movement, 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/http/movement_mainnet/v1/ \
-H 'Content-Type: application/json'
Response example
{
"chain_id": 126,
"epoch": "1220292",
"ledger_version": "3391169",
"oldest_ledger_version": "0",
"ledger_timestamp": "1749205936830030",
"node_role": "validator",
"oldest_block_height": "0",
"block_height": "1226595",
"git_hash": "1d1cdbbd7fabb80dcb95ba5e23213faa072fab67"
}
NEAR
Available for Premium users only.
NEAR API is available on Web3 API platform.
NEAR is a user-friendly and carbon-neutral blockchain, built from the ground up to be performant, secure, and infinitely scalable.
In technical terms, NEAR is a layer one, sharded, proof-of-stake blockchain built with usability in mind.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPS)
API methods
For Near, 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.
sandbox_patch_state,
status,
network_info
API querying
Request example
curl -X POST https://rpc.ankr.com/near/{your_token} \
-H "content-type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "dontcare",
"method": "query",
"params": {
"request_type": "view_access_key",
"finality": "final",
"account_id": "client.chainlink.testnet",
"public_key": "ed25519:H9k5eiU4xXS3M4z8HzKJSLaZdqGdGwBG49o7orNC4eZW"
}
}'
Response example
{
"jsonrpc": "2.0",
"result": {
"nonce": 85,
"permission": {
"FunctionCall": {
"allowance": "18501534631167209000000000",
"receiver_id": "client.chainlink.testnet",
"method_names": ["get_token_price"]
}
},
"block_height": 19884918,
"block_hash": "GGJQ8yjmo7aEoj8ZpAhGehnq9BSWFx4xswHYzDwwAP2n"
},
"id": "dontcare"
}
Nervos CKB
Available for Freemium and Premium users.
Nervos CKB API is available on Web3 API platform.
Nervos CKB (Common Knowledge Base) is the Layer 1, proof-of-work blockchain of the Nervos ecosystem, using an improved Nakamoto consensus and the generalized UTXO Cell model. It is designed to maximize decentralization while remaining minimal, flexible, and secure.
The Nervos EVM / Polyjuice (Godwoken) Layer 2 endpoint has been deprecated and removed following the sunset of the Godwoken network by Nervos (June 2025). Only the native Nervos CKB (Layer 1) endpoint is available.
Official quick links: Website, CKB Docs, JSON-RPC reference, GitHub
Networks
- Mainnet:
- Nervos CKB API (
HTTPSandWSS) —https://rpc.ankr.com/nervos_ckb/{your_token}
- Nervos CKB API (
API methods
For Nervos CKB, see the supported methods. Node administration, mining, network-control and debug_* methods are restricted on the shared endpoint; contact Sales (sales@ankr.com) for Enterprise access.
Neura
Neura API is available on Web3 API platform.
Neura is a high-performance, EVM-compatible Layer 1 blockchain purpose-built for real-time decentralized applications across DeFi and AI-driven systems. Built on the enterprise-grade Hyperledger Besu client and powered by the QBFT consensus mechanism, Neura delivers immediate transaction finality, fork resistance, and low-latency block production — making it ideal for applications that demand speed, consistency, and trust.
Official quick links: Docs
Networks
- Testnet (
HTTPSandWSS)
API methods
For Neura, 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/neura_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/neura_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/neura_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/neura_testnet' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0xdb42a"
}
Optimism
Available for Freemium and Premium users.
Optimism API is available on Web3 API platform.
Optimism is a fast, stable, and scalable L2 blockchain built by Ethereum developers, for Ethereum developers. Built as a minimal extension to existing Ethereum software, Optimism’s EVM-equivalent architecture scales your Ethereum apps without surprises. If it works on Ethereum, it works on Optimism at a fraction of the cost.
With the OVM 2.0 upgrade, which happened on November 11th, 2021, the Optimism protocol went through its biggest upgrade to date. The primary focus of this upgrade was EVM Equivalence, a new design for Optimism that brought it close to 1:1 parity with Ethereum.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet:
- Sepolia (
HTTPSandWSS)
- Sepolia (
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 Optimism through Ankr's infrastructure, add a required Optimism network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Optimism 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:
Optimism Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/optimism/{your_token}. - Chain ID:
10. - Currency symbol:
ETH. - Block explorer URL:
https://optimistic.etherscan.io/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Optimism Mainnet.
API methods
For Optimism, 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/optimism/{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/optimism/{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/optimism/{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/optimism/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x249c491"
}
Polkadot
Available for Premium users only.
Polkadot API is available on Web3 API platform.
Polkadot is the first fully-sharded blockchain.
Polkadot enables scalability by allowing specialized blockchains to communicate with each other in a secure, trust-free environment.
Polkadot is built to connect and secure unique blockchains, whether they be public, permissionless networks, private consortium chains, or other Web3 technologies. It enables an internet where independent blockchains can exchange information under common security guarantees.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Polkadot, 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/polkadot/{your_token} \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "chain_getBlock",
"params": []
}'
Response example
{
"jsonrpc": "2.0",
"result": {
"block": {
"header": {
"parentHash": "0xe121a7c43cbe19eab2601d422df9173a84553cda9f0cd59e0656227696f46d30",
"number": "0xedaaed",
"stateRoot": "0x4f4dd4f1bc408dfd01222a8d1401a96c9abb8be86ab60c0e01f10b4a54834b6f",
"extrinsicsRoot": "0xf310b41030a9bbf5788176a0a187a7fe84833729fb763883329bcc2f9a308a03",
"digest": {
"logs": [
"0x0642414245b50103fc000000f4aebb1000000000440c17d240df02d42ddab5c961fe2649e30f69aea189e5bc95487ae5f889a74bc516a159ccc7db48e5253dae8f1168be0c66597b18ab1e2248ecd3862eae9e0a8c74b856d20d6916ab8cbe3cd4955f183c231bde98ca24dbb3f201468cc23b0f",
"0x054241424501015a6148654f94084ca0373a6d708704ce54ae704e159d51eb00d7de032b2b3824a91a4509f94f90fda82a3ff372b0003c0440475b9218e6469d883eeba276ac8a"
]
}
},
"extrinsics": [
"0x280403000bc076d42e8801",
"0xdd02040c00ecaaed009c98002408011220c9b7d94c0c8dc84ca9034c1a6926bfb2e0b1e31c0c9fbaee8126874d32d122840878742f6970342f3134312e39382e3231392e3139392f7463702f33303333336c682f6970342f3130302e36342e332e31322f7463702f333033333379190000f600000029010000903755c7655994b2ca1f457d26c947041f9e6970e6b3cf578ee8459d061cc20d3d7e65d5c166fcca21059ad60b89d21f8a2b5574da4414adb72941c0c2e44d8c"
]
},
"justifications": null
},
"id": 1
}
Polygon
Polygon API is available on Web3 API platform.
Polygon is a scaling solution for public blockchains. Polygon PoS supports all the existing Ethereum tooling along with faster and cheaper transactions.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Amoy 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 Polygon through Ankr's infrastructure, add a required Polygon network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Polygon 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:
Polygon Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/polygon/. - Chain ID:
137. - Currency symbol:
MATIC. - Block explorer URL:
https://polygonscan.com/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Polygon Mainnet.
To add Polygon Amoy 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:
Polygon Amoy Testnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/polygon_amoy/. - Chain ID:
80002. - Currency symbol:
MATIC. - Block explorer URL:
https://www.oklink.com/amoy/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Polygon Amoy Testnet.
API methods
For Polygon, 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/polygon \
-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/polygon" // 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/polygon' // 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/polygon' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x21fbd0f"
}
Rollux
Rollux API is available on Web3 API platform.
Rollux is a suite of rollup-based Layer 2 solutions designed to enable EVM users with near-instant low-cost transfers, executions, and contract deployments. Rollux utilizes Syscoin's Layer 1 for best-of-breed secure decentralized settlement and Syscoin PoDA for Layer 1 data availability, offering more efficiency, lower costs, and higher throughput than other L1 DA alternatives.
As a suite, Rollux is set to encompass both Optimistic and ZK (zero-knowledge) based approaches, enabling users and projects to choose a network or solution that fits them best.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Op-node Mainnet (
HTTPS) - Testnet (
HTTPSandWSS) - Op-node Testnet (
HTTPS)
API methods
For Rollux, we support blockchain interaction via all the applicable EVM methods except for those listed as unsupported.
For Rollux Op-node, we support blockchain interaction via the applicable Op-node 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, 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/rollux \
-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/rollux" // 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/rollux' // 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/rollux' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x16bef5"
}