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 carryx-blockreq-source: node. - When the limit is used up, the response is
503with codefallback_budget_exhaustedand aRetry-Afterheader. - Read-only.
POST /exchangeis not served and returns501; send orders directly to Hyperliquid.
Base URL
https://hyperevm-rpc.blockreq.com/v1/hypercore/BRQ1P0000000000000000000000000000000000000000000000000000000The 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.
| Status | code | When |
|---|---|---|
| 401 | invalid_key | No key, an invalid key, or public |
| 403 | forbidden | The key is not allowed to make the call |
| 405 | method_not_allowed | Not a POST |
| 413 | body_too_large | The body is over 4096 bytes |
| 422 | invalid_request | Not a JSON object, no type, a duplicate key, or a forbidden field |
| 422 | unsupported_info_type | The type is not in the list above |
| 429 | rate_limited | Your account's request rate; see Retry-After |
| 501 | not_implemented | POST /exchange |
| 503 | overloaded | Too many requests in flight; Retry-After: 1 |
| 503 | node_unavailable | The node is unavailable and the type cannot be answered by the official API |
| 503 | fallback_budget_exhausted | The node is unavailable and the official API limit is used up |
| 504 | timeout | The 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.