Connect to the network

Chain ID, RPC endpoints, explorer and currency, for a wallet or a script.

Docs / Getting started / Connect to the network

Everything a wallet, a script or a node needs to reach chain 2800.

Network details

FieldValue
Network nameAERE Network
Chain ID2800
RPC URLhttps://rpc.aere.network
Second RPC URLhttps://rpc2.aere.network
Currency symbolAERE
Currency decimals18
WebSocketwss://wss.aere.network
Block explorerhttps://explorer.aere.network

There is a one-click page at /addnetwork.html that hands these to an injected wallet through wallet_addEthereumChain.

Check that you reached the right chain

Do not take the endpoint's word for it. Two calls settle it: the chain ID, and the genesis hash.

curl -s -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}' \
  https://rpc.aere.network

The result is "0xaf0", which is 2800.

curl -s -X POST -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["0x0",false]}' \
  https://rpc.aere.network

The hash field must be 0xd86d57a899cbfa580669f0e1c7cd4ae5f525247c3c823f8f75df176a0c5d7f1a. That value covers every consensus-relevant genesis field, so a match is a complete identity check and a mismatch means you are talking to something else.

From code

import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://rpc.aere.network', {
  name: 'aere',
  chainId: 2800,
});

const head = await provider.getBlockNumber();
const genesis = await provider.getBlock(0);
console.log(head, genesis.hash);

Which endpoint to use

rpc.aere.network and rpc2.aere.network are both public read endpoints operated by the Foundation. Use either. For subscriptions, use wss://wss.aere.network.

Both of them are ours. If you are verifying a claim we made about this chain, running the check against our server proves less than you might want. Running your own node removes that, and Run a node is written for exactly that reason.

For indexed history such as transaction lists per address, use the indexer at https://api.aere.network rather than scanning blocks over RPC. See Indexer API.