Skip to main content

Arbitrum API

Develop on Arbitrum

Ankr allows users to create their own Arbitrum full APIs with a variety of options for request call limits, archived data, and more. Ankr’s novel cluster technology allows APIs to draw from multiple nodes, offering a more reliable experience for our users.

Get started on Arbitrum

  1. Login or set up an account on app.ankr.com
  2. Create API

Node types available on Ankr

  • Full Node

Network types available on Ankr

  • Mainnet
  • Testnet

https://explorer.offchainlabs.com/​​

View available endpoints

Select 'Settings' to view API & & Websocket endpoints

JSON-RPC methods

Arbitrum nodes support the Ethereum JSON-RPC API

View Arbitrum Docs

Example calls

API (HTTPS) endpoint

package main

import (
"context"
"fmt"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/ethclient"
"time"
)

func main() {
const url_auth = "https://username:password@apis.ankr.com/xxxxx/xxxxx/arbitrum/full/main" // authentication
const url_token = "https://apis.ankr.com/xxxxx/xxxxx/arbitrum/full/main" // token

rpcClient,err := ethclient.Dial("choose url_auth or url_token by your created type")

if err != nil {
panic(err)
}

blockNumber, err := rpcClient.BlockNumber(context.Background())

if err != nil {
panic(err)
}

fmt.Println(blockNumber)
}