Get agent order
API details
Track the detailed, real-time progress of your swap order using its agentOrderUniqueId.
Query parameters
AgentOrderIdstringOptional
Agent order id
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: testnetbrokerapi.hibit.app
Accept: */*
{
"code": 1,
"message": "text",
"data": {
"status": 0,
"orderExecutionTxHash": "text",
"refundTxHash": "text",
"refundAmount": "text",
"refundAsset": "text",
"transferredTxHash": "text",
"transferredAmount": "text",
"transferredAsset": "text"
}
}
Code example
import { brokerClient } from '@delandlabs/hibit-sdk';
const options = {
network: HibitNetwork.Testnet
};
brokerClient.setOptions(options);
const agentOrder = await brokerClient.getAgentOrder("agentOrderUniqueId");
SDK
Source code https://github.com/Deland-Labs/hibit-sdk
Example
Last updated