Skip to main content

Preflight REST API Endpoint

Validate order action without signing. Checks for errors before submission.

Updated on
May 19, 2026
info

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

action
object
REQUIRED

Order action to validate

type
string

Action type ("order")

orders
array

Array of order objects to validate (human-readable format)

asset
string

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.

side
string

Order side ("buy" or "sell")

price
string

Limit price (omit for market orders)

size
string

Order size/quantity

tif
string

Time in force ("ioc", "gtc", "alo")

Returns

valid
boolean

Whether the order action is valid

errors
array

Array of validation error messages (empty if valid)

assetInfo
array

Array of asset information for the orders being validated

order
integer

Order index in the request (0 for first order, 1 for second, etc.)

asset
integer

Asset index (0 for BTC, 1 for ETH, etc.)

name
string

Asset name (e.g., "BTC", "ETH")

szDecimals
integer

Number of decimal places for size/quantity

isSpot
boolean

Whether this is a spot market asset

estimatedFee
string

Estimated fee as a percentage string (e.g., "0.04%")

priorityFee
string or null

Priority fee if applicable, or null if no priority fee is set

isSpot
boolean

Whether this is a spot market order

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free