get order
API details
This API retrieves the detailed information of an order. Provide one of these identifiers:
orderId
clientOrderId (format:
${HIN}_${nonce}
, e.g.,10001_123
)txHash
Query parameters
OrderIdstring Β· stringOptional
Order id
ClientOrderIdstringOptional
TxHashstringOptional
Responses
200
OK
400
Bad Request
401
Unauthorized
403
Forbidden
404
Not Found
500
Internal Server Error
501
Not Implemented
get
GET /v1/order HTTP/1.1
Host: testnetopenapi.hibit.app
Accept: */*
{
"code": 1,
"message": "text",
"data": {
"id": "text",
"mid": "text",
"hin": "text",
"cat": 0,
"s": 1,
"fv": "text",
"fa": "text",
"tv": "text",
"ta": "text",
"fp": "text",
"p": "text",
"st": 0,
"t": null
}
}
Code example
import { hibitClient } from '@delandlabs/hibit-sdk';
const options = {
network: HibitNetwork.Testnet,
hin: 10000n
};
hibitClient.setOptions(options);
const order = await hibitClient.getOrder({orderId:"12000027100000000000000000000003"});
SDK
Source code https://github.com/Deland-Labs/hibit-sdk
Example
https://hibit-sdk-example.hibit.app/
References
Last updated