Skip to main content

hl_buildCancel JSON-RPC Method

Loading...

Updated on
Feb 26, 2026

hl_buildCancel JSON-RPC Method

Parameters

action
object
REQUIRED
Loading...
type
string
Loading...
cancels
array
Loading...
a
string | integer
Loading...
o
integer
Loading...
vaultAddress
string
Loading...
expiresAfter
integer
Loading...

Returns

result
object
Loading...
hash
string
Loading...
nonce
integer
Loading...
action
object
Loading...
type
string
Loading...
cancels
array
Loading...
a
integer
Loading...
o
integer
Loading...
summary
string
Loading...
assets
array
Loading...
index
integer
Loading...
name
string
Loading...
isSpot
boolean
Loading...
szDecimals
integer
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_buildCancel",
7
"params": {
8
"action": {
9
"type": "cancel",
10
"cancels": [
11
{
12
"a": "BTC",
13
"o": 12345
14
}
15
]
16
}
17
},
18
"id": 1
19
}'
20
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_buildCancel",
7
"params": {
8
"action": {
9
"type": "cancel",
10
"cancels": [
11
{
12
"a": "BTC",
13
"o": 12345
14
}
15
]
16
}
17
},
18
"id": 1
19
}'
20
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free