获取订单详情
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/orders/{order_no}
参数
字段 |
类型 |
描述 |
b_id |
String |
业务线id |
order_no |
String |
订单号 |
响应
字段 |
类型 |
描述 |
code |
Integer |
响应状态码 |
message |
String |
响应信息 |
successful |
Boolean |
请求是否成功 |
data |
Object[] |
订单数据 |
order_wallet_info |
Object[] |
订单基本信息 |
business_name |
String |
业务线名称 |
coin_name |
String |
币种名称 |
chain |
String |
所属链 |
storage_type |
String |
存储类型 |
wallet_type |
String |
钱包类型 |
wallet_name |
String |
钱包名称 |
wallet_code |
String |
钱包编号 |
time_stamp |
Long |
订单创建时间戳 |
order_no |
String |
订单编号 |
applicant |
String |
制单人 |
amount |
Decimal |
提币额 |
exchange_rate |
Decimal |
币种汇率(美元) |
miner_fee_rate |
Decimal |
矿工费率 |
description |
String |
订单描述 |
status |
String |
订单状态 (PROCESSING、PARTIALLY_FAILED、MANUAL_APPROVAL、FAILED、ORDER_SEND_OUT、FINISHED、CANCELED) |
inner_status |
String |
内部订单状态 (内部状态FINISHED才有流水) |
miner_fee |
Decimal |
矿工费 |
from_address |
String |
提币地址 |
gas_price |
Decimal |
汽油费价格(ETH系列) |
gas_limit |
Decimal |
汽油费限制 (ETH系列) |
max_fee_per_gas |
Decimal |
max fee |
max_priority_fee_per_gas |
Decimal |
priority fee |
bid |
String |
业务线ID |
order_dest_address_info_vo_list |
Object[] |
订单列表订单项 |
dest_address |
String |
提币目的地址 |
-memo_type |
String |
memo 类型 (MEMO_NONE,MEMO_TEXT,MEMO_HASH) |
-memo |
String |
memo |
origin_balance |
Decimal |
原始提币额 |
balance |
Decimal |
实际提币额 |
remark |
String |
备注信息 |
tx_info_models |
Object |
tx信息 |
consolidation_tx_info_models |
Object |
归集交易信息 |
miner_fee_tx_info_models |
Object |
代缴矿工费tx信息(ETH代币系列) |
-tx_type |
String |
tx类型 |
-block_height |
Long |
块高度 |
-tx_size |
Integer |
tx大小 |
-tx_hash |
Integer |
tx hash |
-gas_price |
Decimal |
汽油费价格(ETH系列) |
-gas_limit |
Decimal |
汽油费限制(ETH系列) |
-miner_fee |
Decimal |
矿工费(ETH系列值为gas_used) |
partial_failed |
Object[] |
失败的订单项(部分失败场景) |
partial_success |
Object[] |
成功的订单项(部分失败场景) |
dest_address |
String |
提币目的地址 |
origin_balance |
Decimal |
原始提币额 |
-memo_type |
String |
memo 类型 (MEMO_NONE, MEMO_TEXT, MEMO_HASH) |
-memo |
String |
memo |
balance |
Decimal |
提币额 |
remark |
String |
备注信息 |
响应示例
{
"code": 0,
"message": "",
"data": {
"order_wallet_info": {
"business_name": "BusinessLine001",
"coin_name": "USDC",
"wallet_type": "SEGREGATED_ADDRESS",
"storage_type": "PRIME_HOT",
"wallet_name": "",
"wallet_code": "CHUSDC1036370270",
"timestamp": 1582275952000,
"order_no": "666666000000081",
"applicant": "[email protected]",
"amount": 1000,
"exchange_rate": 1,
"value": null,
"miner_fee_rate": null,
"description": "",
"status": "FINISHED",
"inner_status": "FINISHED",
"miner_fee": 630000000000000,
"from_address": "0xB6CcF826A777Da8fA0FcfAE0002172a43B05f9a1",
"gas_price": 3000000000,
"gas_limit": 120000,
"order_dest_address_info_vo_list": [
{
"dest_address": "0xB6CcF826A777Da8fA0FcfAE0002172a43B05f9a1",
"memo_type": "MEMO_TEXT",
"memo": "text",
"origin_balance": 1000,
"balance": 1000,
"remark": ""
}
],
"bid": "ed70ff75b1fe4994a3bd836befe0e87f"
},
"tx_info_models": [
{
"tx_type": "WITHDRAW",
"block_height": 9525716,
"tx_size": 1,
"tx_hash": "0x9c34bb2e92056b353747d36483842e00eb4c4944e44dc38c23c3a06a1335a86f",
"gas_price": 30000000000,
"gas_limit": 70000,
"miner_fee": "0"
}
],
"consolidation_tx_info_models": [
{
"tx_type": "CONSOLIDATION",
"block_height": 9525716,
"tx_size": 1,
"tx_hash": "0x9c34bb2e92056b353747d36483842e00eb4c4944e44dc38c23c3a06a1335a86f",
"gas_price": 30000000000,
"gas_limit": 70000,
"miner_fee": "0"
}
],
"miner_fee_tx_info_models": [
{
"tx_type": "ADVANCED_FEE",
"block_height": 9525694,
"tx_size": 1,
"tx_hash": "0x2646ab7f6990ff892c277cd6c4a423907a267f5a93b8a5c53d74d077d94ae42f",
"gas_price": 30000000000,
"gas_limit": null,
"miner_fee": "630000000000000"
}
],
"partial_failed": [],
"partial_success": []
},
"successful": true
}