Exchange API calls do not consume Quicknode API credits. If you are on a free trial plan, see hyperliquidapi.com for your URL and fee schedule. To white-label with your own builder code, contact us.
Body Parameters
- actionobjectREQUIRED
Order action to validate
- typestring
Action type ("order")
- ordersarray
Array of order objects to validate (human-readable format)
- assetstring
Asset name (e.g., "BTC", "ETH"). HIP-4 prediction market outcomes can also be referenced with their # alias. A priority fee applies only to IOC orders; every order in the action must be IOC or a market-style IOC order, the fee rate is interpreted as p / 100000000 of filled notional (10000 equals 1 basis point, maximum 80000 or 8 basis points), and it is charged from the undelegated staking HYPE balance. Preflight rejects a priority fee on HIP-4 # markets.
- sidestring
Order side ("buy" or "sell")
- pricestring
Limit price (omit for market orders)
- sizestring
Order size/quantity
- tifstring
Time in force ("ioc", "gtc", "alo")
Returns
- validboolean
Whether the order action is valid
- errorsarray
Array of validation error messages (empty if valid)
- assetInfoarray
Array of asset information for the orders being validated
- orderinteger
Order index in the request (0 for first order, 1 for second, etc.)
- assetinteger
Asset index (0 for BTC, 1 for ETH, etc.)
- namestring
Asset name (e.g., "BTC", "ETH")
- szDecimalsinteger
Number of decimal places for size/quantity
- isSpotboolean
Whether this is a spot market asset
- estimatedFeestring
Estimated fee as a percentage string (e.g., "0.04%")
- priorityFeestring or null
Priority fee if applicable, or null if no priority fee is set
- isSpotboolean
Whether this is a spot market order