Make requests
The Arbitrum API is a superset of the Ethereum JSON-RPC specification and supports all the Ethereum JSON-RPC methods. When interacting with the API, you can expect all the usual fields, and some extra ones used to display information unique to Arbitrum.
WebSocket calls are not supported when using the Arbitrum endpoints
Call a JSON-RPC method
Use HTTPS to call a JSON-RPC method. In this example we use curl
to make the HTTPS request.
Note: Ensure that you replace YOUR-API-KEY
with an API key from your chainRPC dashboard.
$ curl -X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "id": 1, "method": "eth_blockNumber", "params": []}' \
"https://arb.chainrpc.io/v3/YOUR-API-KEY"
The result should look similar to the following:
$ {"jsonrpc":"2.0","id":1,"result":"0x5fe1df"}
Last updated