Supported Chains: C-I
Supported chains C-I on the Web3 API platform. See the full chain list for every network.
Celo
Celo API is available on Web3 API platform.
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 (
HTTPSandWSS) - 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 Celo through Ankr's infrastructure, add a required Celo network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Celo 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:
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/.
- Network name:
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
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/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"
}
Chiliz
Chiliz API is available on Web3 API platform.
Chiliz is an EVM-compatible Layer-1 blockchain built to serve as the foundation for an ever-growing ecosystem of enterprise-level sports and entertainment stakeholders developing blockchain-based user/fan experiences and B2B/B2C tools within their respective industries.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Chiliz, 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/chiliz \
-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/chiliz" // 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/chiliz' // 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/chiliz' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2a35d7"
}
Core
Core API is available on Web3 API platform.
Core is a layer 1 blockchain built around a unique consensus mechanism called "Satoshi Plus".
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Core, 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/core \
-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/core" // 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/core' // 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/core' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x905bb4"
}
Corn
Corn API is available on Web3 API platform.
Corn is an Ethereum Layer 2 network that offers a rich, Bitcoin-centric ecosystem powered by cutting-edge technologies. It includes Bitcorn (BTCN) as its gas token, the popCORN System for long-term incentives, and LayerZero for seamless cross-chain asset transfers. Built on Arbitrum Orbit, Corn brings unparalleled scalability and efficiency, with support for Stylus, enabling developers to use multiple programming languages for smart contract development.
Key components:
- Bitcorn (BTCN): A Bitcoin-backed asset used as gas, transforming Bitcoin into a utility token for transactions and smart contracts.
- popCORN System: veTokenomics-inspired mechanism allowing $CORN stakers to vote on yield distribution, aligning user and protocol incentives.
- Bitcoin Secured Network: Integrates Bitcoin staking (via Babylon) with Ethereum staking for dual-layer security.
- Arbitrum Orbit Foundation: Combines Ethereum's security with scalable and cost-effective infrastructure, supporting multi-language smart contracts via Stylus.
- Cross-Chain Interoperability: LayerZero and ThorCorn enable seamless asset transfers across chains.
- BlueCorn & Bitcoin Clearing House: Simplifies BTCN minting directly from Coinbase accounts, enhancing Bitcoin’s utility within Corn.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Corn, 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/corn_maizenet \
-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/corn_maizenet" // 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/corn_maizenet' // 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/corn_maizenet' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x209ac"
}
Electroneum
Electroneum API is available on Web3 API platform.
Electroneum is an IBFT-based blockchain that operates with known validators, ensuring a high level of trust and security. Compatible with the Ethereum Virtual Machine (EVM), Electroneum allows developers to easily deploy and interact with smart contracts. The blockchain offers impressive 5-second transaction speeds, facilitated by its unique proprietary instant blockchain finality system.
The finality system ensures that transactions are quickly and irreversibly confirmed, eliminating the need for multiple confirmations and enabling rapid and efficient transactions. Combined with ultra low-cost smart contract fees, Electroneum provides an attractive platform for developers and users alike.
Official quick links: Website
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Electroneum, 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/electroneum \
-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/electroneum" // 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/electroneum' // 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/electroneum' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x1e6d99"
}
Ethereum
Available for Freemium and Premium users.
Ethereum API is available on Web3 API platform.
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 (
HTTPSandWSS) - Testnet:
- Holesky (
HTTPSandWSS) - Sepolia (
HTTPSandWSS)
- Holesky (
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 Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Ethereum 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:
Ethereum Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/eth/{your_token}. - Chain ID:
1. - Currency symbol:
ETH. - Block explorer URL:
https://etherscan.io/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Ethereum Mainnet.
To add Ethereum Sepolia 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:
Ethereum Sepolia Testnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/eth_sepolia/{your_token}. - Chain ID:
11155111. - Currency symbol:
ETH. - Block explorer URL:
https://sepolia.etherscan.io/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Ethereum Sepolia Testnet.
API methods
For Ethereum, 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/eth/{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/eth/{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/eth/{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/eth/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xf3c34b"
}
Ethereum Beacon
Available for Premium users only.
Ethereum Beacon API is available on Web3 API platform upon switching on the Beacon toggle.
The Ethereum Beacon Chain is a consensus layer that introduced a proof-of-stake to Ethereum. The Beacon Chain mechanism is responsible for creating new blocks, making sure those new blocks are valid, and rewarding validators with ETH for keeping the network secure.
The Beacon Chain has several clients to choose from, serving the same purpose but built with slightly different focus in mind:
- Prysm — focuses on usability, security, and reliability. Prysm is developed by Prysmatic Labs, a company with the sole focus on the development of their client.
- Lighthouse — a client with a heavy focus on speed and security. Built by Sigma Prime, an information security and software engineering firm who have funded Lighthouse along with the Ethereum Foundation, ConsenSys, and private individuals.
- Nimbus — strives to be as lightweight as possible in terms of resources used. This allows it to perform well on embedded systems, resource-restricted devices — including Raspberry Pis — and multi-purpose servers.
Official quick links: Website, Docs, GitHub, Eth Beacon Node API specification
Networks
- Mainnet (
HTTPS) - Testnet:
- Holesky (
HTTPS) - Sepolia (
HTTPS)
- Holesky (
API methods
For the Ethereum Beacon Chain, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
/eth/v1/node/identity
API querying
Request example
curl -X GET "https://rpc.ankr.com/premium-http/eth_beacon/{your_token}/eth/v1/beacon/genesis" \
-H "Accept: application/json"
Response example
{
"data": {
"genesis_time": "1606824023",
"genesis_validators_root": "0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95",
"genesis_fork_version": "0x00000000"
}
}
Etherlink
Available for Freemium and Premium users.
Etherlink API is available on Web3 API platform.
Etherlink is an EVM-compatible, non-custodial Layer 2 blockchain powered by Tezos Smart Rollup technology. It enables seamless integration with existing Ethereum tools, including wallets and indexers, and facilitates asset transfers to and from other EVM-compatible chains.
Built upon the secure foundation of Tezos layer 1, Etherlink delivers a fast, fair, and (nearly) free experience. This permissionless and censorship-resistant environment empowers developers to actively create and participate in the next generation of decentralized applications.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Etherlink, 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/etherlink_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/etherlink_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/etherlink_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/etherlink_mainnet/' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x143e3e2"
}
Fantom
Available for Premium users only.
Fantom API is available on Web3 API platform.
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 (
HTTPSandWSS) - 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 Fantom through Ankr's infrastructure, add a required Fantom network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Fantom 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:
Fantom Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/fantom/{your_token}. - Chain ID:
250. - Currency symbol:
FTM. - Block explorer URL:
https://ftmscan.com/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Fantom Mainnet.
To add Fantom 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:
Fantom Testnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/fantom_testnet/{your_token}. - Chain ID:
4002. - Currency symbol:
FTM. - Block explorer URL:
https://testnet.ftmscan.com/.
- Network name:
Congrats — you've just added Ankr as the blockchain provider for MetaMask to interact with Fantom Testnet.
API methods
For Fantom, 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/fantom/{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/fantom/{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/fantom/{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/fantom/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"result":"0x17d5c3d",
"id":1
}
Filecoin
Filecoin API is available on Web3 API platform.
Filecoin is a peer-to-peer network that stores files, with built-in economic incentives and cryptography to ensure files are stored reliably over time.
Filecoin is built on top of the same software powering IPFS protocol, which is a peer-to-peer distributed storage network that leverages content addressing to allow permanent references to the data, and avoids relying on specific devices or cloud servers for addressing the content. Filecoin is different from IPFS because it has an incentive layer on top to incentivize contents to be reliably stored and accessed.
Filecoin enables several use cases, from Web3 native NFT and metaverse/game assets storage, incentivized permanent storage, to archiving Web2 datasets as a cheaper alternative to cloud storage.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For Filecoin, we support blockchain interaction via the following methods:
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS EVM methods:
eth_newFilter, eth_getFilterChanges, eth_syncing, 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 EVM methods:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
WSS Filecoin methods:
Filecoin.ChainNotify
API querying
Request example (Standard EVM)
curl -X POST https://rpc.ankr.com/filecoin \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Response example (Standard EVM)
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2910f9"
}
Request example (Filecoin native)
curl -X POST https://rpc.ankr.com/filecoin \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "Filecoin.ChainGetBlock",
"params": [
{
"/": "bafy2bzacecbzs3i5qubhgozauss4nvifgty5zvyvf6cy6frnnznojdmfl6phe"
}
],
"id": 1
}'
Response example (Filecoin native)
{
"jsonrpc": "2.0",
"result": {
"Miner": "f0427989",
"Ticket": {
"VRFProof": "pbmP9mctFpH6BoFFh22uvzv8Ixx0rJq9YanJLFTRsgIWDibuomloU2UTWiN8007KBYAnB5Xj1jw7o81VJzKrUByqHUpZHWZM34CgVkuzcHPoSJpM8XGxs2GQkfNAncK2"
},
"ElectionProof": {
"WinCount": 1,
"VRFProof": "oLSLThMoFfGX4E8cDIEULGmUteJY/10nCfun3hiRE1PDIpkPOnoBACmto7/SCz1yFixgQaysEcKK6RCx1ImUW2Q9dlrj3MCbjRQtNiumTXviDqAWgoxYU55QSBDpLbel"
},
"BeaconEntries": [
{
"Round": 2787998,
"Data": "h+zHzc0DvUFIWFpFzqREiA2f3Uk4sn5NExnJJUtfju3Hlc0/dkNXq31+su9kh/q1CK69TRUy9562jx/eV4XXw1lA4QhDxBBWKoxQL/xR+zoCcfm4nzoD3HximnPCEEQA"
}
],
"WinPoStProof": [
{
"PoStProof": 3,
"ProofBytes": "pK36Z/ehsV5sqyoX/Gc64tsV2yQOW6X+p8Wy1wH03WC9VA6qyc3ZaTt4d9oI6xVniJdyHiu22yMsXfimEfVSc/UzThf8KrnIBMWZr3sSQsOVusdf1zV5zNfvDr1wccHhCjIExyinkvGRW/irioDZ49Jrm5PUvaBERIuJC4hUp0DijM8UgY7FIYTA16HHp7gbpUzU7mpofBz42tL3c/8LgOmLd7FKOh69fk0xHYaeQU1Oz3cbSSHWL8a/wRf4y3nV"
}
],
"Parents": [
{
"/": "bafy2bzaceaxasycsjnixwqqbx4o3fsspal2zspnhmdjdtyke5xwtjkut7asyw"
},
{
"/": "bafy2bzaceadqtqu4wcecrk2akfb4mw7y3bedihwanwk2l4dxbcu4fonu3x6pe"
},
{
"/": "bafy2bzacecoqk52mag2xpxn2eq3pfmyr6mafvogju4znyagmkah4oo4fjgh5i"
},
{
"/": "bafy2bzaced46b2tewkbg6qfa5jnoecvbpdn5k7loz7qsoon3m5mgeb63de46s"
}
],
"ParentWeight": "63400884650",
"Height": 2692153,
"ParentStateRoot": {
"/": "bafy2bzacec5o4ffqnp4zmkn44i6h7oajurvtsb5zvstudvgwhha7y25alt3ck"
},
"ParentMessageReceipts": {
"/": "bafy2bzacebvll7rq7wscnsgbvgdc7xeuzsp2quu4hhfx4pjvq3hydhw2auvd6"
},
"Messages": {
"/": "bafy2bzacechrvqknf26ff4pihyatewfx64ae4bawbp4ibtasy72hr63fds4iq"
},
"BLSAggregate": {
"Type": 2,
"Data": "mQuz4wd292+Qh8oeZmpl+4QX7/90Oz7VDFLgPhRjIGgvYTEj0FYAecHTaxKaH0GGDwt0nqEvoVbFGf6PA6wCNtzwpLTMqQXZrT2cFeSAtC62vOOn7KTSdqtFxJvBwX1a"
},
"Timestamp": 1679070990,
"BlockSig": {
"Type": 2,
"Data": "qiMSk+hQ1E9WGMRn2o5dQmCpz1uO8JK4oIoh8NUwybN7GzrLEaSTv1W5IGx5AAnrAIYgE1MA+Y+CQ677iBC6wD3YUpzdSIt0QCv3cbf8SJgeOVusC+x0Vo/29zRGBgU/"
},
"ForkSignaling": 0,
"ParentBaseFee": "403334159"
},
"id": 1
}
Flare
Flare API is available on Web3 API platform.
Flare is the blockchain for data. It is a layer 1, EVM smart contract platform designed to expand the utility of blockchain.
Flare has the following native data acquisition protocols at these stages of development:
- The Flare Time-Series Oracle (FTSO) provides continuous estimations of changing data, such as price pairs.
- The State Connector allows querying of verifiable, non-changing data from other chains and the internet.
- Flare LayerCake is being developed by Flare Labs to provide a decentralized, trustless bridging system between smart contract networks.
By giving developers trustless access to the broadest range of data, Flare can advance the development of more blockchain use cases where data is important, such as in DeFi, gaming, NFT, music, and social networks.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet:
- Standard EVM API (
HTTPSandWSS) - C-Chain (
HTTPS) - P-Chain (
HTTPS) - X-Chain (
HTTPS)
- Standard EVM API (
API methods
For Flare, we support blockchain interaction via the following methods:
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork, eth_submitWork, eth_submitHashrate, net_peerCount,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*,
avm.createAddress, avm.exportKey, avm.importKey, avm.export, avm.import, avm.mint, avm.createFixedCapAsset, avm.createVariableCapAsset, avm.createNFTAsset, avm.mintNFT, avm.listAddresses, avm.send, avm.sendMultiple, avm.sendNFT, wallet.send, wallet.sendMultiple, wallet.issueTx, avax.export, avax.exportAVAX, avax.exportKey, avax.import, avax.importAVAX, avax.importKey,
platform.addDelegator, platform.addValidator, platform.addSubnetValidator, platform.createAddress, platform.createBlockchain, platform.createSubnet, platform.exportAVAX, platform.exportKey, platform.importAVAX, platform.importKey, platform.listAddresses
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example (Standard EVM)
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/flare \
-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/flare" // 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/flare' // 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/flare' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example (Standard EVM)
{
"jsonrpc":"2.0",
"result":"0xbe7762",
"id":1
}
Fuel
Fuel API is available on Web3 API platform.
Fuel is an operating system specifically designed for Ethereum Rollups, providing the necessary tools and infrastructure to maximize the efficiency of rollups while solving key challenges around scalability and performance. Fuel’s goal is to enhance the Ethereum ecosystem by optimizing for parallelization, state-minimized execution, and interoperability (PSI), without compromising on any of these aspects.
- FuelVM: Optimized execution engine enabling parallel transaction execution and state minimization using a UTXO model, improving scalability and throughput.
- Sway Language: A Rust + Solidity inspired language for smart contracts, offering safety, performance, and static auditing.
- Developer Experience: Streamlined, boilerplate-free development for efficient contract creation and interaction with the FuelVM.
- Unmatched Throughput: Leverages parallel processing for significantly higher transaction throughput compared to single-threaded blockchains.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (GraphQL over
HTTPS) - Testnet (GraphQL over
HTTPS)
API methods
For Fuel, 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.
None.
API querying
Request example
curl --location 'https://rpc.ankr.com/http/fuel' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"query": "{ chain { latestBlock { id height } } }"
}'
Response example
{
"data": {
"chain": {
"latestBlock": {
"id": "0x1cd6d6725bb58123623e8a60de42f269252dbf0df8922e27e45b9e894bffeea7",
"height": "13781885"
}
}
}
}
Gnosis
Available for Freemium and Premium users.
Gnosis API is available on Web3 API platform.
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 (
HTTPSandWSS) - 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 Gnosis Chain through Ankr's infrastructure, add a required Gnosis Chain network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Gnosis Chain Mainnet, follow these steps:
-
In MetaMask extension, click Networks (drop-down menu) > Add network to open Settings.
-
In the Add a network pane, click Add a network manually, then enter the network details and click Save:
- Network name:
Gnosis Chain Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/gnosis/{your_token}. - Chain ID:
100. - Currency symbol:
xDai. - Block explorer URL:
https://blockscout.com/xdai/mainnet/.
- Network name:
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
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/gnosis/{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/gnosis/{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/gnosis/{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/gnosis/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"result":"0x17d5c3d",
"id":1
}
Gnosis Beacon
Available for Premium users only.
Gonsis Beacon API is available on Web3 API platform upon switching on the Beacon toggle.
The Gnosis Beacon Chain is a consensus layer that introduced a proof-of-stake to Ethereum. The Gnosis Beacon Chain mechanism is responsible for creating new blocks, making sure those new blocks are valid, and rewarding validators with ETH for keeping the network secure.
The Gnosis Beacon Chain has several clients to choose from, serving the same purpose but built with slightly different focus in mind:
- Prysm — focuses on usability, security, and reliability. Prysm is developed by Prysmatic Labs, a company with the sole focus on the development of their client.
- Lighthouse — a client with a heavy focus on speed and security. Built by Sigma Prime, an information security and software engineering firm who have funded Lighthouse along with the Ethereum Foundation, ConsenSys, and private individuals.
- Nimbus — strives to be as lightweight as possible in terms of resources used. This allows it to perform well on embedded systems, resource-restricted devices — including Raspberry Pis — and multi-purpose servers.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPS) - Testnet (
HTTPS)
API methods
For the Gnosis Beacon Chain, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
/eth/v1/node/identity
API querying
Request example
curl -X GET "https://rpc.ankr.com/premium-http/gnosis_beacon/{your_token}/eth/v1/beacon/genesis" \
-H "Accept: application/json"
Response example
{
"data": {
"genesis_time": "1606824023",
"genesis_validators_root": "0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95",
"genesis_fork_version": "0x00000000"
}
}
GOAT
GOAT API is available on Web3 API platform.
GOAT Network is a Layer 2 blockchain solution designed to enhance Bitcoin's scalability, transaction speed, and functionality. By operating atop Bitcoin's primary blockchain (Layer 1), it aims to transform Bitcoin from a passive asset into an active participant in decentralized finance (DeFi), enabling users to earn sustainable yields on their BTC holdings.
Key features of GOAT Network are the following:
- ZKM Infrastructure: The Zero-Knowledge Modular (ZKM) Infrastructure leverages advanced cryptographic principles to ensure privacy, scalability, and trustlessness in transactions. It's critical for enabling private, fast, and secure cross-chain and intra-chain operations in the GOAT Network.
- Optimistic Challenge Protocol: OCP is a security mechanism ensuring the correctness of off-chain computations and transactions by providing a way to challenge fraudulent or erroneous data. Provers in the GOAT Network use OCP to securely manage asset peg-out requests and execute off-chain transactions.
- Decentralized Sequencing: This feature decentralizes the process of transaction batching, which determines the order of transactions within the network. GOAT Network’s decentralized sequencer uses a consensus-driven protocol to batch transactions and confirm them on the blockchain.
Official quick links: Website, Docs, GitHub
Networks
- Testnet (
HTTPSandWSS)
API methods
For GOAT network, we support blockchain interaction via all the applicable methods except for those listed as unsupported.
Unsupported
This section contains a list of methods we don't support for Premium service plan.
If you require any of the methods from the list, contact our Sales (sales@ankr.com) about moving to the Enterprise service plan that can provide the services tailored to your specific needs.
HTTPS:
eth_newFilter, eth_getFilterChanges, eth_coinbase, eth_hashrate, eth_mining, eth_getWork,eth_submitWork, eth_submitHashrate, net_peerCount, eth_newBlockFilter, eth_newPendingTransactionFilter, eth_uninstallFilter, eth_getFilterLogs,
debug_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, engine_*, parity_*
WSS:
txpool_content, txpool_inspect, txpool_status, txpool_contentFrom
API querying
Request example
- cURL
- Golang
- Web3.JS
- Python
curl -X POST https://rpc.ankr.com/goat_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/goat_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/goat_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/goat_testnet' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x7e340"
}
Gravity
Gravity API is available on Web3 API platform.
Gravity is a Layer 1 blockchain designed for mass adoption and an omnichain future. Gravity features the following key points:
- Cross-Chain Transactions: Gravity enables developers to define and settle transactions across multiple blockchains, enhancing efficiency and security.
- Efficient Verification: With cost-efficient ZKP verification, Gravity ensures economical and secure transactions.
- Enhanced User Experience: Gravity introduces cryptographic primitives like the secp256r1 curve through precompiled contracts, allowing for cost-effective passkey authentication for Account Abstraction wallets.
- High-Performance Execution: Gravity integrates the Reth execution layer and the Jolteon consensus algorithm, providing high throughput and near-instant finality.
- Secure and Robust PoS Mechanism: Powered by G token staking and restaking protocols like Babylon and EigenLayer, Gravity's PoS design incentivizes and unites a diverse community to secure the chain.
- EVM-Compatible: Gravity is fully EVM-compatible, enabling seamless deployment and interaction with smart contracts.
Official quick links: Website
Networks
- Mainnet (
HTTPSandWSS)
API methods
For Gravity, 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/gravity \
-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/gravity" // 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/gravity' // 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/gravity' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2ba2"
}
Harmony
Available for Freemium and Premium users.
Harmony API is available on Web3 API platform.
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 (
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 Harmony through Ankr's infrastructure, add a required Harmony network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add Harmony 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:
Harmony Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/harmony/{your_token}. - Chain ID:
1666600000. - Currency symbol:
ONE. - Block explorer URL:
https://explorer.harmony.one/.
- Network name:
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
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_*,
hmyv2_getCurrentBadBlocks, hmyv2_getNodeMetadata, hmy_getFilterLogs, hmy_newFilter, eth_newPendingTransactionFilter, eth_newBlockFilter, hmy_getFilterChanges, hmy_syncing
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/harmony/{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/harmony/{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/harmony/{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/harmony/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc":"2.0",
"id":1,
"result":"0x206a48d"
}
Horizen EON
Horizen EON API is available on Web3 API platform.
EON is Horizen's Ethereum VM (Virtual Machine). EON has adopted Ethereum’s account-based transaction model to represent assets as balances within accounts. The account model, in VM capable blockchains, differentiate account types on whether they represent a normal account balance or an account which is bound to some code that has to be executed by the VM.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Gobi Testnet (
HTTPSandWSS)
API methods
For Horizen EON, 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 -X POST https://rpc.ankr.com/horizen_eon \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "eth_blockNumber",
"params": [],
"id": 1
}'
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x47f66"
}
Huobi ECO Chain
Available for Premium users only.
HECO API is available on Web3 API platform.
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 (
HTTPSandWSS)
API methods
For HECO, 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/heco/{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/heco/{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/heco/{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/heco/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x15bafe2"
}
IOTA
IOTA API is available on Web3 API platform.
IOTA is a Move-based protocol that provides a decentralized, scalable platform for digital asset management and smart contracts. Leveraging the Move programming language, IOTA Layer 1 ensures high performance and security for applications deployed on the IOTA Mainnet.
Key Features:
- Move Programming Language: Move is an object-centric programming language designed for secure and efficient smart contract development. It enables developers to model complex entities such as assets, users, and contracts in a natural and structured way.
- Performance: Because Move is based on an object model rather than a shared global state, transactions can be executed in parallel. This results in high throughput, reduced network congestion, and lower gas fees.
- Security: Move adopts principles from Rust’s ownership model to enforce strict memory and resource control. The compiler helps prevent common programming mistakes, but developers are still advised to audit smart contracts to guard against runtime issues and logic flaws.
This architecture makes IOTA Layer 1 an ideal foundation for building high-performance, secure blockchain applications.
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPS) - Testnet (
HTTPS)
API methods
For IOTA, 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.
None.
API querying
Request example
curl -X POST https://rpc.ankr.com/iota_mainnet \
-H 'Content-Type: application/json' \
-d '{
"jsonrpc": "2.0",
"method": "iotax_getAllBalances",
"params": ["0x94f1a597b4e8f709a396f7f6b1482bdcd65a673d111e49286c527fab7c2d0961"],
"id": 1
}'
Response example
{
"jsonrpc": "2.0",
"result": [
{
"coinType": "0x2::iota::IOTA",
"coinObjectCount": 15,
"totalBalance": "3000000000"
}
],
"id": 1
}
IOTA EVM
IOTA EVM API is available on Web3 API platform.
IOTA EVM is a Layer 2 solution that operates on top of the IOTA Mainnet. It is part of the broader Iota Smart Contracts (ISC) framework, which provides smart contract functionality on Iota. It leverages the Iota Tangle's scalability and security while providing an environment for running decentralized applications (dApps).
Official quick links: Website, Docs, GitHub
Networks
- Mainnet (
HTTPSandWSS) - Testnet (
HTTPSandWSS)
API methods
For IOTA EVM, 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/iota_evm \
-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/iota_evm" // 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/iota_evm' // 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/iota_evm' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x4ab291"
}
IoTeX
Available for Freemium and Premium users.
IoTeX API is available on Web3 API platform.
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 (
HTTPSandWSS) - 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 IoTeX through Ankr's infrastructure, add a required IoTeX network either via Web3 API platform's or MetaMask's UI.
Via Web3 API platform
To be added soon.
Via MetaMask
To add IoTeX 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:
IoTeX Mainnet by Ankr RPC. - New RPC URL:
https://rpc.ankr.com/iotex/{your_token}. - Chain ID:
4689. - Currency symbol:
IOTX. - Block explorer URL:
https://iotexscan.io/.
- Network name:
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
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_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_* (exception: debug_traceBlockByHash, debug_traceBlockByNumber, debug_traceTransaction, debug_traceCall, debug_traceBlock),
personal_*, admin_*, clique_*, les_*, miner_*, db_*, shh_*
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/iotex/{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/iotex/{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/iotex/{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/iotex/{your_token}' # url string
web3 = Web3(HTTPProvider(url))
print(web3.eth.block_number)
Response example
{
"id":1,
"jsonrpc":"2.0",
"result":"0x139dbf4"
}