• RPC Service
  • Supported Chains
  • Chains Quickstart

Chains list

This docs section provides the list of all chains available on RPC Service. Each chain in the list contains a short overview and the networks supported. Moreover, it outlines the most popular API methods to interact with the network as well as the methods we don't support entirely for either Public or Premium service plans. And the cherry on top, each chain contains code snippets with basic requests in various languages and the corresponding JSON responses.

Chain info

Chains supported:

Aptos Celo HECO Chain Near Solana
Arbitrum Ethereum IoTeX Nervos Sui
Avalanche Fantom Klaytn Optimism Syscoin
BNB Smart Chain Gnosis Kusama Polkadot Tron
BitTorrent Chain Harmony Moonbeam Polygon

Aptos

The Aptos blockchain, designed with scalability, safety, reliability, and upgradeability 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

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that 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


Arbitrum

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.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)

API methods

For Arbitrum, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/arbitrum \
-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"  // 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'  // 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'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x2484729"
}

Avalanche

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:
    • X-Chain (HTTPS)
    • P-Chain (HTTPS)
    • C-Chain (HTTPS):
      • Standard EVM API (HTTPS and WSS)

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 RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Avalanche Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. 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/.
    • Chain ID: 43114.
    • Currency symbol: AVAX.
    • Block explorer URL: https://snowtrace.io/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Avalanche Mainnet.

API methods

For Avalanche, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork, eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, 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

API querying

Request example

curl -X POST https://rpc.ankr.com/avalanche \
-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"  // 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'  // 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'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "result":"0x155ea63",
  "id":1
}

BNB Smart Chain

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 (HTTPS and WSS)
  • Chapel Testnet (HTTPS and WSS)

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 RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add BNB Smart Chain Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. 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/.
    • Chain ID: 56.
    • Currency symbol: BNB.
    • Block explorer URL: https://bscscan.com/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with BNB Smart Chain Mainnet.

API methods

For BNB Smart Chain, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/bsc \
-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"  // 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'  // 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'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x1601d3a"
}

BitTorrent Chain

Bittorrent-Chain (BTTC) is a layer 2 scaling solution, BTTC strives to solve scalability and usability issues without compromising decentralization, and can make full use of the existing Ethereum developer community and ecosystem. BTTC is fully compatible with Ethereum, and existing applications on Ethereum can be easily migrated to this BTTC. In addition to the same experience as Ethereum, users can also enjoy ultra-high throughput and extremely low fees.

Users can conduct fast, low-cost, and safe transactions on BTTC, and assets on BTTC can be easily transferred between Ethereum, TRON, and BNB Smart Chain.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)

API methods

For BitTorrent Chain, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/bttc \
-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/bttc"  // 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/bttc'  // 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/bttc'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0xd91939"
}

Celo

Celo is a mobile-first blockchain designed to make decentralized financial (DeFi) tools and services accessible to anyone with a mobile phone.

Celo is a layer 1 protocol and blockchain platform. The Celo Mainnet is entirely separate from the Ethereum network. The Celo client originated as a fork of Ethereum Go language client, go-ethereum (or geth). Celo has several significant differences, including a Proof-of-Stake-based Practical Byzantine Fault Tolerance (PBFT) consensus mechanism.

All the crypto assets on Celo have ERC-20 compliant interfaces, meaning that while they are not ERC-20 tokens on the Ethereum Mainnet, all familiar tooling and code that support ERC-20 tokens can be easily adapted for Celo assets, including Celo Native Asset (CELO) and Celo Dollar (cUSD).

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)

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 Celo through Ankr's infrastructure, add a required Celo network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Celo Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Celo Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/celo/.
    • Chain ID: 42220.
    • Currency symbol: CELO.
    • Block explorer URL: https://explorer.celo.org/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Celo Mainnet.

API methods

For Celo, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/celo \
-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/celo"  // 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/celo'  // 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/celo'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0xf6b842"
}

Ethereum

Ethereum is a blockchain with a computer embedded in it. It is the foundation for building apps and organizations in a decentralized, permissionless, censorship-resistant way. Ethereum uses a proof-of-stake-based consensus mechanism.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet:
    • Goerli (HTTPS and WSS)
    • Rinkeby (HTTPS and WSS)
    • Ropsten (HTTPS and WSS)

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 Ethereum through Ankr's infrastructure, add a required Ethereum network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Ethereum Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Ethereum Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/eth/.
    • Chain ID: 1.
    • Currency symbol: ETH.
    • Block explorer URL: https://etherscan.io/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Ethereum Mainnet.

API methods

For Ethereum, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/eth \
-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/eth"  // 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/eth'  // 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/eth'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0xf3c34b"
}

Fantom

Fantom is a fast, scalable, and secure layer-1 platform built on an aBFT consensus protocol. Fantom is permissionless, decentralized, open-source, and fully compatible with Ethereum.

Lachesis, its revolutionary aBFT consensus mechanism, allows Fantom to be much faster and cheaper than previous technologies, yet extremely secure.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet (HTTPS and WSS)

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 Fantom through Ankr's infrastructure, add a required Fantom network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Fantom Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Fantom Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/fantom/.
    • Chain ID: 250.
    • Currency symbol: FTM.
    • Block explorer URL: https://ftmscan.com/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Fantom Mainnet.

API methods

For Fantom, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/gnosis \
-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/gnosis"  // 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/gnosis'  // 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/gnosis'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "result":"0x17d5c3d",
  "id":1
}

Gnosis

Gnosis Chain (formerly xDai Chain) provides stability, scalability and an extendable beacon chain framework.

Development on Gnosis Chain is straightforward for Ethereum developers as it is an EVM compatible chain. Smart contracts can be written and deployed in the same way as for Ethereum just by setting a different RPC endpoint.

Any contract that works on the Ethereum mainnet can be redeployed to the Gnosis chain. Transaction costs are minimized, and all fees and transactions are paid with a single token (xDai). Many tools supporting Ethereum development are compatible with Gnosis Chain.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)

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 Gnosis Chain through Ankr's infrastructure, add a required Gnosis Chain network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Gnosis Chain Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Gnosis Chain Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/gnosis/.
    • Chain ID: 100.
    • Currency symbol: xDai.
    • Block explorer URL: https://blockscout.com/xdai/mainnet/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Gnosis Chain Mainnet.

API methods

For Gnosis, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/gnosis \
-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/gnosis"  // 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/gnosis'  // 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/gnosis'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "result":"0x17d5c3d",
  "id":1
}

Harmony

Harmony is a fast and secure blockchain for decentralized applications. Production mainnet is expected to support 4 shards of 1000 nodes, producing blocks in 2 seconds with finality.

An Effective Proof-of-Stake (EPoS) reduces centralization while supporting stake delegation, reward compounding and double-sign slashing.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet (HTTPS and WSS)

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 Harmony through Ankr's infrastructure, add a required Harmony network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Harmony Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Harmony Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/harmony/.
    • Chain ID: 1666600000.
    • Currency symbol: ONE.
    • Block explorer URL: https://explorer.harmony.one/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Harmony Mainnet.

API methods

For Harmony, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*,

hmyv2_getCurrentBadBlocks, hmyv2_getNodeMetadata, hmy_getFilterLogs, hmy_newFilter, eth_newPendingTransactionFilter, eth_newBlockFilter, hmy_getFilterChanges, hmy_syncing

API querying

Request example

curl -X POST https://rpc.ankr.com/harmony \
-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/harmony"  // 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/harmony'  // 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/harmony'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x206a48d"
}

Huobi ECO Chain

Available for Premium users only.

Huobi ECO Chain (HECO) is a decentralized, high-efficiency and energy-saving public chain. It is compatible with smart contracts and supports high- performance transactions. The endogenous token of Heco is HT and it adopts the HPoS consensus mechanism. Heco will continue to improve the efficiency of Ethereum by Layer2, which will supplement and empower the Ethereum ecosystem.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet (HTTPS and WSS)

API methods

For HECO, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*


IoTeX

IoTeX Network is the lightning-fast, ultra-secure, and highly scalable blockchain platform that connects real world data to on-chain Dapps.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet (HTTPS and WSS)

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 IoTeX through Ankr's infrastructure, add a required IoTeX network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add IoTeX Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: IoTeX Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/iotex/.
    • Chain ID: 4689.
    • Currency symbol: IOTX.
    • Block explorer URL: https://iotexscan.io/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with IoTeX Mainnet.

API methods

For IoTeX, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork, eth_submitWork, eth_submitHashrate, eth_accounts, eth_getStorageAt, eth_getUncleCountByBlockHash, eth_getUncleCountByBlockNumber, eth_sign, eth_signTransaction, eth_sendTransaction, eth_getUncleByBlockHashAndIndex, eth_getUncleByBlockNumberAndIndex, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs, eth_pendingTransactions,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, db_*, shh_*

API querying

Request example

curl -X POST https://rpc.ankr.com/iotex \
-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/iotex"  // 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/iotex'  // 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/iotex'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "id":1,
  "jsonrpc":"2.0",
  "result":"0x139dbf4"
}

Klaytn

Klaytn is a highly optimized, BFT-based public blockchain that aims to meet the enterprise-grade reliability.

Key design goals are:

  • Immediate finality.
  • High TPS that meets real-world use cases.
  • Lower the cost of running Blockchain Applications.
  • Lower the barriers to entry for end-users.
  • Ease the technology adoption process for industry.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)

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 Klaytn through Ankr's infrastructure, add a required Klaytn network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Klaytn Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Klaytn Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/klaytn/.
    • Chain ID: 8217.
    • Currency symbol: KLAY.
    • Block explorer URL: https://scope.klaytn.com/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Klaytn Mainnet.

API methods

For Klaytn, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*,

klay_sign, klay_syncing, klay_clientVersion, klay_isParallelDBWrite, klay_isSenderTxHashIndexingEnabled, klay_protocolVersion, klay_rewardbase, klay_getFilterChanges, klay_getFilterLogs, klay_newBlockFilter, klay_newFilter, klay_newPendingTransactionFilter, klay_uninstallFilter, net_listening, net_peerCount, net_peerCountByType, klay_sendTransaction, klay_sendTransactionAsFeePayer, klay_signTransaction, klay_signTransactionAsFeePayer,

governance_*, mainbridge_*, subbridge_*

API querying

Request example

curl -X POST https://rpc.ankr.com/klaytn \
-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/klaytn"  // 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/klaytn'  // 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/klaytn'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x65aab81"
}

Kusama

Available for Premium users only.

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 (HTTPS and WSS)

API methods

For Kusama, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that 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_*


Moonbeam

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 (HTTPS and WSS)

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 RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Moonbeam Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. 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/.
    • Chain ID: 1284.
    • Currency symbol: GLMR.
    • Block explorer URL: https://moonbeam.moonscan.io/.

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

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/moonbeam \
-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"  // 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'  // 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'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "result":"0x23218d",
  "id":1
}

NEAR

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

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that 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


Nervos

Nervos blockchain, also known as Common Knowledge Base, is the rock-bottom layer of the Nervos ecosystem. As the foundation, Nervos blockchain provides trust for all the layers built on top of it. It is designed to maximize decentralization while remaining minimal, flexible, and secure. Its primary objective is to reliably preserve any data and assets stored therein.

Official quick links: Website, CKB Docs, Godwoken Docs, GitHub

Networks

  • Standard EVM and Polyjuice API (HTTPS)
  • Godwoken API (HTTPS)
  • CKB API (HTTPS and WSS)

API methods

For Nervos, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*,

send_alert, process_block_without_verify, truncate, generate_block, notify_transaction, generate_block_with_template, calculate_dao_field, get_block_template, submit_block, local_node_info, get_peers, get_banned_addresses, clear_banned_addresses, set_ban, sync_state, set_network_active, add_node, remove_node, ping_peers, clear_tx_pool

API querying

Below are the request examples applicable for Standard EVM and Polyjuice API.

Request example

curl -X POST https://rpc.ankr.com/nervos \
-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/nervos"  // 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/nervos'  // 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/nervos'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x37e7d"
}

Optimism

Optimism is a low-cost and lightning-fast Ethereum L2 blockchain, but it's also so much more than that.

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 (opens new window), a new design for Optimism that brought it close to 1:1 parity with Ethereum.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet (HTTPS and WSS)

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 RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Optimism Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. 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/.
    • Chain ID: 10.
    • Currency symbol: ETH.
    • Block explorer URL: https://optimistic.etherscan.io/.

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

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/optimism \
-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"  // 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'  // 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'  # 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 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 (HTTPS and WSS)

API methods

For Polkadot, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that 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_*


Polygon

Polygon is a scaling solution for public blockchains that combines the best of Ethereum and sovereign blockchains to offer a full-stack scaling solution.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Testnet (HTTPS and WSS)

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 RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Polygon Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. 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/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Polygon Mainnet.

API methods

For Polygon, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

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"
}

Solana

Solana is a decentralized blockchain built to enable scalable, user-friendly apps for the world.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)
  • Devnet (HTTPS and WSS)

API methods

For Solana, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.


Sui

Sui is the first permissionless Layer 1 blockchain designed from the ground up to enable creators and developers to build experiences that cater to the next billion users in Web3. Sui is horizontally scalable to support a wide range of application development with unrivaled speed at low cost.

Official quick links: Website, Docs, GitHub

Networks

  • Testnet (HTTPS and WSS)

API methods

For Sui, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

None


Syscoin

Syscoin is a Proof-of-Work blockchain solution merge-mined with Bitcoin. At its base is a dual-chain Layer 1: the core is the Syscoin native blockchain, and running in tandem with it is an Ethereum Virtual Machine (EVM) chain called NEVM (Network-Enhanced Virtual Machine), which provides modularity, enhanced security, and full byte-for-byte Ethereum compatibility.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS and WSS)

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 Syscoin through Ankr's infrastructure, add a required Syscoin network either via RPC Service's or MetaMask's UI.

Via RPC Service

To be added soon.

Via MetaMask

To add Syscoin Mainnet, follow this steps:

  1. In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.

  2. In the Add a network pane, click Add a network manually, then enter the network details and click Save:

    • Network name: Syscoin Mainnet by Ankr RPC.
    • New RPC URL: https://rpc.ankr.com/syscoin/.
    • Chain ID: 57.
    • Currency symbol: SYS.
    • Block explorer URL: https://explorer.syscoin.org/.

Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Syscoin Mainnet.

API methods

For Syscoin, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

eth_newFilter, eth_getFilterChanges, eth_syncing, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount,

debug_*, personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*

API querying

Request example

curl -X POST https://rpc.ankr.com/syscoin \
-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/syscoin"  // 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/syscoin'  // 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/syscoin'  # url string
    
    web3 = Web3(HTTPProvider(url))
    print(web3.eth.block_number)

Response example

{
  "jsonrpc":"2.0",
  "id":1,
  "result":"0x2fb1c"
}

Tron

TRON is an open source public blockchain platform that supports smart contracts. TRON is compatible with Ethereum, which means that you can migrate smart contracts on Ethereum to TRON directly or with minor modifications. TRON relies on a unique consensus mechanism to realize the high TPS of the TRON network that is far beyond Ethereum, bringing developers a good experience of a faster transaction.

Official quick links: Website, Docs, GitHub

Networks

  • Mainnet (HTTPS)

API methods

For Tron, we support blockchain interaction via all the applicable methods except for those listed as unsupported.

Unsupported

💡

There is a list of methods that we don't support for either Public or Premium service plans. If you find the required methods in that list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.

/wallet/easytransferbyprivate, /wallet/easytransferassetbyprivate, /wallet/easytransfer, /wallet/easytransferasset, /wallet/gettransactionsign,

And all the methods with the following segments in their path:

easytransferbyprivate, easytransferassetbyprivate, easytransfer, easytransferasset, gettransactionsign, createaddress, listnodes, generateaddress, getnodeinfo, addtransactionsign, getakfromask, getnkfromnsk, getspendingkey, getexpandedspendingkey, getdiversifier, getincomingviewingkey, createspendauthsig, getnewshieldedaddress, createshieldedtransaction, createshieldedcontractparameters, createshieldedcontractparameterswithoutask, scanshieldedtrc20notesbyivk, scanshieldedtrc20notesbyovk, isshieldedtrc20contractnotespent