Skip to main content

hl_preflight JSON-RPC Method

Loading...

Updated on
Feb 26, 2026

hl_preflight JSON-RPC Method

Parameters

action
object
REQUIRED
Loading...
type
string
Loading...
orders
array
Loading...
a
string | integer
Loading...
b
boolean
Loading...
p
string
Loading...
s
string
Loading...
r
boolean
Loading...
t
object
Loading...
grouping
string
Loading...

Returns

result
object
Loading...
valid
boolean
Loading...
errors
array
Loading...
assetInfo
array
Loading...
order
integer
Loading...
asset
integer
Loading...
name
string
Loading...
szDecimals
integer
Loading...
isSpot
boolean
Loading...
estimatedFee
string
Loading...
isSpot
boolean
Loading...
Request
1
curl https://docs-demo.hype-mainnet.quiknode.pro/evm \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"jsonrpc": "2.0",
6
"method": "hl_preflight",
7
"params": {
8
"action": {
9
"type": "order",
10
"orders": [
11
{
12
"a": "BTC",
13
"b": true,
14
"p": "100000",
15
"s": "0.001",
16
"r": false,
17
"t": {
18
"limit": {
19
"tif": "Ioc"
20
}
21
}
22
}
23
],
24
"grouping": "na"
25
}
26
},
27
"id": 1
28
}'
29
1
curl https://docs-demo.hype-mainnet.quiknode.pro/evm \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"jsonrpc": "2.0",
6
"method": "hl_preflight",
7
"params": {
8
"action": {
9
"type": "order",
10
"orders": [
11
{
12
"a": "BTC",
13
"b": true,
14
"p": "100000",
15
"s": "0.001",
16
"r": false,
17
"t": {
18
"limit": {
19
"tif": "Ioc"
20
}
21
}
22
}
23
],
24
"grouping": "na"
25
}
26
},
27
"id": 1
28
}'
29
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free