An event and every market under it
chainhilt.ai/api/v1/predict/polymarket/events/:eventId
An event and every market under it. The venue's grouping of markets: every line of a match, or the mutually exclusive outcomes of a multi-outcome question (`negRisk: true` means exactly one of them resolves Yes). Markets come back in the search-result shape (outcome tokenIds, tradability, fees), each with the venue's short `label` when it has one. Reach an event from any market's `eventId`; an unk
GET
https://chainhilt.ai/api/v1/predict/polymarket/events/:eventIdUptime100% of 1 check in 30 days
30 days agoToday
Try it
Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.
The response shows up here.
Call it from an agent
import { createPayer } from "fourohtwo";
// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://chainhilt.ai/api/v1/predict/polymarket/events/:eventId");
console.log(await res.json());Example input
{}More from chainhilt-x402
- chainhilt.ai/api/v1/bridge/executePrepare the selected bridge route as ordered unsigned transactions: an exact-amount ERC-20 approval when needed (after an approval to 0 for tokens like Ethereum USDT), then the bridge transaction. Pass the minTargetAmount and maxNativeFee the user accepted; if the fresh quote delivers less or charges more native fee, it returns 409 with quote { adapter, estimatedTargetAmount, minTargetAmount, nati0.01
- chainhilt.ai/api/v1/bridge/simulateCompare bridge routes, best first: tokens, estimated and minimum target amounts, fees by token, duration, expiry and the approval each route needs. sourceAmount is exactly what leaves the wallet. Errors: 400 invalid input, 502 when no adapter returns a route.0.001
- chainhilt.ai/api/v1/bridge/statusLook up a bridge after its transaction was sent, by the adapter that built it and the hash of the bridge transaction on the source chain; layerzero and relay also need the providerRef that bridge/execute returned (0x and 64 hex characters). Poll it every 10 to 15 seconds until the status is filled, refunded or failed; x402 does not charge an error answer, such as a 429. After a 429, wait the Retry0.001
- chainhilt.ai/api/v1/perp/hyperliquid/asset-idResolve an order asset ID from asset (symbol, spot pair, @index, or numeric market index) and sourceDex ("" for default perps, "spot" for spot). Spot IDs are 10000 + spot market index; already formatted IDs are preserved. Token indexes are not market indexes. Unknown or ambiguous assets return 400; provider failures return 502. Use assetId as orders[].a or modify order.a before signing. Treat spot0.001
- chainhilt.ai/api/v1/perp/hyperliquid/isolated-margin/previewAdd or remove isolated margin for a perp asset. ntli is a signed integer in millionths of USD: 1000000 adds 1 USD; -1000000 removes 1 USD. isBuy defaults to true. Sign and submit unchanged to the returned submitPath (unpaid). Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "0.001
- chainhilt.ai/api/v1/perp/hyperliquid/leverage/previewSet cross or isolated leverage for a perp asset. Supply isCross and positive integer leverage; market limits apply. Sign the L1 preview and submit it unchanged to the returned submitPath (unpaid). Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".0.001
- chainhilt.ai/api/v1/perp/hyperliquid/order/cancel-all/previewPreview the Hyperliquid cancel-all action the user must sign; it cancels the account's open orders on the default perp DEX and spot, but not on builder-deployed perp DEXs. Errors: 400 invalid input or no open orders, 502 provider failure; execution may return 422 exchange rejection. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".0.001
- chainhilt.ai/api/v1/perp/hyperliquid/order/cancel/previewPreview the Hyperliquid cancel action the user must sign for an open numeric order ID. Errors: 400 invalid input or no matching open order, 502 provider failure; execution may return 422 exchange rejection. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".0.001
- chainhilt.ai/api/v1/perp/hyperliquid/order/modify/previewPrepare a single-order modification by OID or CLOID for L1 signing. Supply the full replacement order. Omit action.a unless true. Sign and submit unchanged using the returned submitPath. See /skills.md for signing rules. Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifi0.001
- chainhilt.ai/api/v1/perp/hyperliquid/order/noopReturn the Hyperliquid noop action the user must sign to mark a nonce as used for safer in-flight cancellation workflows. Errors: 400 invalid input; execution may return 422 exchange rejection or 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".0.001
- chainhilt.ai/api/v1/perp/hyperliquid/order/place/previewPrepare an order for L1 signing with the configured lowercase builder and fee in tenths of a basis point. Sign and submit unchanged to the returned submitPath. Errors: 400 invalid input, 409 builder approval slots full, 428 builder fee not yet approved (sign the returned approval, then retry), 502 provider failure, 503 builder not configured. Treat spot and perp as one balance only when the accoun0.01
- chainhilt.ai/api/v1/perp/hyperliquid/orders/auditAudit Hyperliquid open orders for stale, duplicate, conflicting, reduce-only, or unprotected orders. Errors: 400 invalid input, 502 provider failure. Treat spot and perp as one balance only when the account abstraction mode is "unifiedAccount".0.01
