> For the complete documentation index, see [llms.txt](https://liquify-2.gitbook.io/liquify/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://liquify-2.gitbook.io/liquify/supported-chains/chainlist/arbitrum/quickstart-guide.md).

# Quickstart Guide

### Prerequisites[​](https://docs.infura.io/api/networks/arbitrum/quickstart#prerequisites) <a href="#prerequisites" id="prerequisites"></a>

Ensure you have an [API key](/liquify/rpc-quickstart-guide/create-an-rpc-endpoint.md) with the Arbitrum network enabled.

### Make calls[​](https://docs.infura.io/api/networks/arbitrum/quickstart#make-calls) <a href="#make-calls" id="make-calls"></a>

#### cURL[​](https://docs.infura.io/api/networks/arbitrum/quickstart#curl) <a href="#curl" id="curl"></a>

Run the following command in your terminal. This command will retrieve the latest block number from the Arbitrum network.&#x20;

Replace `YOUR-API-KEY` with your actual Liquify Gateway API key.

```
curl https://gateway.liquify.com/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_blockNumber","params":[],"id":1}'
```

#### Node (JavaScript)[​](https://docs.infura.io/api/networks/arbitrum/quickstart#node-javascript) <a href="#node-javascript" id="node-javascript"></a>

In these examples, you'll use [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) as your package manager.

**Node Fetch**[**​**](https://docs.infura.io/api/networks/arbitrum/quickstart#node-fetch)

1. In your project folder, install the Node Fetch package using npm:

   ```
   npm i node-fetch
   ```
2. Create your JavaScript file and copy the following code:

   Replace `YOUR-API-KEY` with your actual Liquify Gateway API key.

   index.js

   ```
   import fetch from 'node-fetch';

   fetch("https://gateway.liquify.com/YOUR-API-KEY", {
     method: "POST",
     headers: {
       "Content-Type": "application/json"
     },
     body: JSON.stringify({
       jsonrpc: "2.0",
       method: "eth_blockNumber",
       params: [],
       id: 1
     })
   })
   .then(response =>
     response.json()
   )
   .then(data => {
     console.log(data);
   })
   .catch(error => {
     console.error(error);
   });
   ```
3. Run the code using the following command:

   ```
   node index.js
   ```

**Axios**[**​**](https://docs.infura.io/api/networks/arbitrum/quickstart#axios)

1. In your project folder, install the Axios package using npm:

   ```
   npm i axios
   ```
2. Create your JavaScript file and copy the following code:

   Replace `YOUR-API-KEY` with your actual Liquify Gateway API key.

   index.js

   ```
   const axios = require('axios');

   axios.post('https://gateway.liquify.com/YOUR-API-KEY', {
     jsonrpc: '2.0',
     method: 'eth_blockNumber',
     params: [],
     id: 1
   })
   .then(response => {
     console.log(response.data);
   })
   .catch(error => {
     console.error(error);
   });
   ```
3. Run the code using the following command:

   ```
   node index.js
   ```

**Ethers**[**​**](https://docs.infura.io/api/networks/arbitrum/quickstart#ethers)

1. In your project folder, install the ethers package using npm:

   ```
   npm install ethers
   ```
2. Create your JavaScript file and copy the following code:

   Replace `YOUR-API-KEY` with your actual Liquify Gateway API key.

   index.js

   ```
   const ethers = require('ethers');

   const provider = new ethers.providers.JsonRpcProvider('https://gateway.liquify.com/YOUR-API-KEY');

   provider.getBlockNumber()
   .then(blockNumber => {
     console.log(blockNumber);
   })
   .catch(error => {
     console.error(error);
   });
   ```
3. Run the code using the following command:

   ```
   node index.js
   ```

#### Python[​](https://docs.infura.io/api/networks/arbitrum/quickstart#python) <a href="#python" id="python"></a>

1. In your project folder, install the `requests` library:

   ```
   pip install requests
   ```
2. Create your Python file and copy the following code:

   Replace `YOUR-API-KEY` with your actual Liquify Gateway API key.

   index.py

   ```
   import requests
   import json

   url = 'https://gateway.liquify.com/YOUR-API-KEY'

   payload = {
       "jsonrpc": "2.0",
       "method": "eth_blockNumber",
       "params": [],
       "id": 1
   }

   headers = {'content-type': 'application/json'}

   response = requests.post(url, data=json.dumps(payload), headers=headers).json()

   print(response)
   ```
3. Run the code using the following command:

   ```
   python index.py
   ```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://liquify-2.gitbook.io/liquify/supported-chains/chainlist/arbitrum/quickstart-guide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
