dex
Cancel Order
Generates an unsigned limit-order cancellation message, which must be signed using the Blockdaemon SDK for final on-chain execution. This endpoint provides EIP-712 domain data, type definitions, and a structured message (chain ID, maker address, and order IDs) to securely cancel pending orders on the decentralized exchange.
💡 Compute Unit Value: 15 (Fixed)
post/defi/v1/dex/cancelorder
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/cancelorder
- AuthAPI key in header X-API-Key
Request body
Example request
{
"dexId": "2200",
"orderId": [
"95167"
],
"from": "0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402",
"enableFee": false
}Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": {
"unsignedCancelOrder": {
"types": {
"CancelOrder": [
{
"name": "chainId",
"type": "string"
},
{
"name": "maker",
"type": "address"
},
{
"name": "orderIds",
"type": "uint64[]"
}
],
"EIP712Domain": [
{
"name": "name",
"type": "string"
},
{
"name": "version",
"type": "string"
},
{
"name": "chainId",
"type": "uint256"
}
]
},
"domain": {
"chainId": "137",
"name": "Kyber Limit Order Protocol",
"version": "1"
},
"primaryType": "CancelOrder",
"message": {
"chainId": "137",
"maker": "0xdae2f6eddda6fb4fb60cc02633de27e2b431b402",
"orderIds": [
95167
]
}
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.