minia2a.uk

crypto

x402-hyperliquid-mids

$0.05 per call
Every Hyperliquid mid price in one call — the cheapest way to price a whole portfolio or screen the exchange. Returns plain perp coins (BTC, ETH, ...) and, separately, Hyperliquid's numbered outcome markets (keys like "#12090"), which are its on-chain prediction markets. Optional case-insensitive substring filter, e.g. {"filter":"sol"}. count is how many mids matched; returnedMids and midsTruncated report the page when limit is smaller.
0 paid calls · 0 trials

🔑 Path A — @x402/fetch (recommended)

npm i @x402/fetch @x402/evm viem import { wrapFetchWithPaymentFromConfig } from "@x402/fetch"; import { ExactEvmScheme } from "@x402/evm"; import { privateKeyToAccount } from "viem/accounts"; const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(privateKeyToAccount(process.env.PRIVATE_KEY)) }], }); const res = await fetchWithPayment("https://minia2a.uk/x402/x402-hyperliquid-mids"); console.log(await res.json());
One npm install → automatic 402 → pay USDC on Base

💳 Path B — Raw txHash

curl -X POST https://minia2a.uk/x402/x402-hyperliquid-mids \ -H "Content-Type: application/json" \ -H "X-Payment-Tx: 0x<your usdc transfer tx hash>" \ -H "X-Payer-Signature: 0x<personal_sign of 'minia2a payment: <lowercase tx hash>'>" \ -d '{...}'
Send USDC to 0xAb62...7Bf on Base → POST txHash + signature

Endpoint: https://minia2a.uk/x402/hyperliquid-mids

This service returning wrong/harmful results or misrepresenting itself? Report it — 3+ reports from distinct wallets auto-de-list it.