HyperCore info API (Beta)

The HyperCore info API (Beta) answers Hyperliquid's POST /info requests on the same key as your HyperEVM endpoint, so read-only clients built on Hyperliquid's API can point at BlockReq.

Beta

  • Data comes from a single node that BlockReq runs. Availability is not committed.
  • When that node is unavailable, requests are answered by Hyperliquid's official API within a limit. Those responses carry the header x-blockreq-source: official, and the request content is then sent to the official API. Responses from BlockReq's node carry x-blockreq-source: node.
  • When the limit is used up, the response is 503 with code fallback_budget_exhausted and a Retry-After header.
  • Read-only. POST /exchange is not served and returns 501; send orders directly to Hyperliquid.

Base URL

https://hyperevm-rpc.blockreq.com/v1/hypercore/BRQ1P0000000000000000000000000000000000000000000000000000000

The path is /v1/hypercore/BRQ1P0000000000000000000000000000000000000000000000000000000/info. The key can also go in a header, with the same rules as /v1/rpc. public and requests without a key return 401.

Examples

curl https://hyperevm-rpc.blockreq.com/v1/hypercore/BRQ1P0000000000000000000000000000000000000000000000000000000/info \ -X POST \ -H 'Content-Type: application/json' \ -d '{"type":"meta"}'

Python, with the official hyperliquid-python-sdk:

from hyperliquid.info import Info info = Info("https://hyperevm-rpc.blockreq.com/v1/hypercore/BRQ1P0000000000000000000000000000000000000000000000000000000", skip_ws=True) print(info.meta())

Pass skip_ws=True: the WebSocket is not served. The official Python and Rust SDKs pick mainnet by the base URL, so after you change it to BlockReq's URL they can read but cannot place orders.

TypeScript:

const res = await fetch("https://hyperevm-rpc.blockreq.com/v1/hypercore/BRQ1P0000000000000000000000000000000000000000000000000000000/info", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ type: "meta" }), }); console.log(await res.json());

Supported types

The body is a JSON object with a string type and at most 4096 bytes. Other types return 422 with code unsupported_info_type.

Type
meta
spotMeta
perpDexs
clearinghouseState
spotClearinghouseState
openOrders
frontendOpenOrders
userFees
userRateLimit
userRole
userVaultEquities
subAccounts
extraAgents
delegations
delegatorSummary
userToMultiSigSigners
spotDeployState
perpDeployAuctionStatus
exchangeStatus
webData2
activeAssetData
vaultSummaries
leadingVaults
marginTable
maxBuilderFee
maxMarketOrderNtls
perpsAtOpenInterestCap
validatorL1Votes

Market-wide data such as allMids, l2Book, candleSnapshot and userFills is not available yet.

Requests and method allowlists

Each /info call counts as 1 Request on your plan. Its method name is hypercore_info. If the endpoint has a method allowlist, add hypercore_info.

Errors

The error body is {"code","msg"}, which is what the Hyperliquid SDKs read from a 4xx response.

StatuscodeWhen
401invalid_keyNo key, an invalid key, or public
403forbiddenThe key is not allowed to make the call
405method_not_allowedNot a POST
413body_too_largeThe body is over 4096 bytes
422invalid_requestNot a JSON object, no type, a duplicate key, or a forbidden field
422unsupported_info_typeThe type is not in the list above
429rate_limitedYour account's request rate; see Retry-After
501not_implementedPOST /exchange
503overloadedToo many requests in flight; Retry-After: 1
503node_unavailableThe node is unavailable and the type cannot be answered by the official API
503fallback_budget_exhaustedThe node is unavailable and the official API limit is used up
504timeoutThe request took too long

When the node returns a 4xx for a listed type (for example a bad parameter), the status and body are returned unchanged and the call is not counted.