> For the complete documentation index, see [llms.txt](/llms.txt).

# HyperEVM quickstart

This quickstart guide will help you set up and make calls on HyperEVM using the Infura endpoint.

Don't have an Infura account? Sign up for our free plan and start using HyperEVM!

[Sign up](https://app.infura.io/register)

## Prerequisites[​](#prerequisites "Direct link to Prerequisites")

Ensure you have an [API key](/developer-tools/dashboard/get-started/create-api/) with the HyperEVM network enabled.

## Make calls[​](#make-calls "Direct link to Make calls")

### curl[​](#curl "Direct link to curl")

Run the following command in your terminal, replacing `<YOUR-API-KEY>` with your actual Infura API key:

```
curl https://hyperevm-mainnet.infura.io/v3/<YOUR-API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'

```

### Node (JavaScript)[​](#node-javascript "Direct link to Node (JavaScript)")

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

#### Node Fetch[​](#node-fetch "Direct link to 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 Infura API key.  
index.js  
```  
import fetch from 'node-fetch'  
fetch('https://hyperevm-mainnet.infura.io/v3/<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[​](#axios "Direct link to 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 Infura API key.  
index.js  
```  
const axios = require('axios')  
axios  
  .post('https://hyperevm-mainnet.infura.io/v3/<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  
```

### Python[​](#python "Direct link to Python")

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 Infura API key.  
index.py  
```  
import requests  
import json  
url = "https://hyperevm-mainnet.infura.io/v3/<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  
```

## Next steps[​](#next-steps "Direct link to Next steps")

Now that you have successfully made a call to HyperEVM mainnet, you can explore more JSON-RPC methods in the [HyperEVM JSON-RPC API documentation](/services/reference/hyperevm/json-rpc-methods/).
