Hyperliquid (HyperEVM)

Overview

HyperEVM is an Ethereum Virtual Machine (EVM) execution layer embedded within Hyperliquid's Layer 1 blockchain. It shares state with HyperCore (the trading engine) and is secured by the same HyperBFT consensus mechanism. This unique architecture allows smart contracts to directly access Hyperliquid's on-chain order books, spot trading, and perpetual markets.

Key Features

  • EVM Compatibility: Full Ethereum tooling support (Foundry, Hardhat, ethers.js, web3.js)
  • Unified State: Smart contracts can interact directly with HyperCore trading infrastructure
  • HyperBFT Consensus: Sub-second finality with high throughput
  • EIP-1559 Support: Cancun hardfork (without blobs) with base fee mechanism
  • Native HYPE Token: Gas payments in HYPE with 18 decimals
  • Fee Burning: Both base fees and priority fees are burned

TECHNICAL DISCLAIMER: AUTHORITATIVE JSON-RPC API SPECIFICATION.

GetBlock's RPC API reference documentation is provided exclusively for informational purposes and to optimize the developer experience. The canonical and normative specification for Ethereum Virtual Machine (EVM) JSON-RPC methods is solely maintained and published through the official Ethereum Foundation documentation portal at ethereum.org. This resource constitutes the sole authoritative reference implementation of the JSON-RPC 2.0 protocol interface across EVM-compatible execution clients.

Supported Network

NetworkChain IDJSONWSS
Mainnet999✔✔

Base URL

bashhttps://shared.us-east-1.getblock.io
bashhttps://shared.eu-central-1.getblock.io
bashhttps://shared.ap-southeast-1.getblock.io

Available API Methods

Standard Ethereum Methods

MethodDescriptionLimitations
eth_blockNumberGet current block number-
eth_chainIdGet chain ID-
eth_gasPriceGet gas price for next small block-
eth_getBalanceGet account balanceLatest block only
eth_getBlockByHashGet block by hash-
eth_getBlockByNumberGet block by number-
eth_getBlockReceiptsGet all receipts in block-
eth_getBlockTransactionCountByHashGet tx count by block hash-
eth_getBlockTransactionCountByNumberGet tx count by block number-
eth_getCodeGet contract bytecodeLatest block only
eth_getLogsGet event logsMax 4 topics, 50 blocks
eth_getStorageAtGet storage valueLatest block only
eth_getTransactionByHashGet transaction by hash-
eth_getTransactionByBlockHashAndIndexGet tx by block hash and index-
eth_getTransactionByBlockNumberAndIndexGet tx by block number and index-
eth_getTransactionCountGet account nonceLatest block only
eth_getTransactionReceiptGet transaction receipt-
eth_callExecute call without transactionLatest block only
eth_estimateGasEstimate gas for transactionLatest block only
eth_feeHistoryGet historical fee data-
eth_maxPriorityFeePerGasGet priority fee suggestionAlways returns 0
eth_syncingGet sync statusAlways returns false
net_versionGet network ID-
web3_clientVersionGet client version-

HyperEVM-Specific Methods

MethodDescription
eth_bigBlockGasPriceGet gas price for next big block
eth_usingBigBlocksCheck if address uses big blocks
eth_getSystemTxsByBlockHashGet HyperCore system transactions by block hash
eth_getSystemTxsByBlockNumberGet HyperCore system transactions by block number

Quickstart

In this section, you will learn how to make your first call with either:

  • Axios
  • Python

Quickstart with Axios

Before you begin, you must have already installed npm or yarn on your local machine. If not, check out npm or yarn.

  1. Set up your project using this command:
bashmkdir hyperevm-api-quickstart
cd hyperevm-api-quickstart
npm init --yes
bashmkdir hyperevm-api-quickstart
cd hyperevm-api-quickstart
yarn init --yes

This creates a project directory named hyperevm-api-quickstart and initialises a Node.js project within it.

  1. Install Axios using this command:
bashnpm install axios
bashyarn add axios
  1. Create a new file and name it index.js. This is where you will make your first call.

  2. Set the ES module "type": "module" in your package.json.

  3. Add the following code to the file (index.js):

    jsimport axios from 'axios'
    let data = JSON.stringify({
      jsonrpc: "2.0",
      method: "eth_blockNumber",
      params: [],
      id: "getblock.io",
    });
    
    let config = {
      method: "post",
      maxBodyLength: Infinity,
      url: "https://shared.us-east-1.getblock.io/<ACCESS_TOKEN>",
      headers: {
        "Content-Type": "application/json",
      },
      data: data,
    };
    
    axios
      .request(config)
      .then((response) => {
        console.log(JSON.stringify(response.data));
      })
      .catch((error) => {
        console.log(error);
      });
    

    Replace <ACCESS_TOKEN> with your actual access token from GetBlock.

  4. Run the script:

    bashnode index.js

    The sequence number and authentication key log in your console like this:

    json{
        "jsonrpc": "2.0",
        "id": "getblock.io",
        "result": "0x15776ea"
    }

Quickstart with Python and Requests

Before you begin, you must have installed Python and Pip on your local machine.

  1. Set up your project using this command:

    bashmkdir arbitrum-api-quickstart
    cd arbitrum-api-quickstart
  2. Set up a virtual environment to isolate dependencies:

    bashpython -m venv venv
    source venv/bin/activate  
    # On Windows, use venv\Scripts\activate
  3. Install the requests library:

    bashpip install requests
  4. Create a new file called main.py and insert the following code:

    pythonimport requests
    import json
    
    url = "https://shared.us-east-1.getblock.io/<ACCESS_TOKEN>"
    
    payload = json.dumps({
      "jsonrpc": "2.0",
      "method": "eth_blockNumber",
      "params": [],
      "id": "getblock.io"
    })
    headers = {
      'Content-Type': 'application/json'
    }
    
    response = requests.request("POST", url, headers=headers, data=payload)
    
    print(response.text)
    

    Replace <ACCESS_TOKEN> with your actual access token from GetBlock.

  5. Run the script:

    bashpython main.py

Support & Resources