• Ankr Build
  • Supported Chains
  • Arbitrum

Arbitrum

Arbitrum RPC is available on the Ankr Protocol App

Arbitrum is a suite of Ethereum scaling solutions that enable high-throughput, low cost smart contracts while remaining trustlessly secure.

Arbitrum has three modes: AnyTrust Channels, AnyTrust Sidechains, and Arbitrum Rollup.

Quick Links

Arbitrum

Docs

Github


Connect wallet

Here's how to set up your MetaMask wallet to connect to Arbitrum RPC. You can then perform transactions and interact with the network.

Get started

  1. Open your MetaMask wallet and click the 'Network' drop down menu at the top.
  2. Select 'Custom RPC'.
  3. Enter the settings below:
ChainCustom RPC CategoryDetails
ArbitrumNETWORK NAME:Arbitrum RPC
NEW RPC URL:https://rpc.ankr.com/arbitrum
CHAIN ID:42161
SYMBOL:AETH
BLOCK EXPLORER:https://arbiscan.io

Integrate code

web3 library

  • clientVersion

Returns the client version

Example request

curl https://rpc.ankr.com/arbitrum \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}'

Example response

{"jsonrpc":"2.0","id":1,"result":"arb-rpc-node/v0.8.0"}

net library

  • net_version

Returns the current network id.

Example request

  
  curl https://rpc.ankr.com/arbitrum \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}'

Example response

{"jsonrpc":"2.0","id":67,"result":"42161"}

eth library

Example request


curl https://rpc.ankr.com/arbitrum \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":67}'

Example response

{"jsonrpc":"2.0","id":67,"result":"0x788e6b"}