获取交易详情
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/contract/orders/{order_no}
参数
字段 |
类型 |
描述 |
b_id |
String |
业务线id |
order_no |
String |
订单号 |
响应
字段 |
类型 |
描述 |
code |
Integer |
响应状态码 |
message |
String |
响应信息 |
successful |
Boolean |
请求是否成功 |
data |
Object |
订单数据 |
time_stamp |
Long |
订单创建时间戳 |
order_no |
String |
订单号 |
chain |
String |
链信息 |
chain_id |
String |
链ID |
status |
String |
订单状态(FINISHED、FAILED、PROCESSING、ORDER_SEND_OUT、COMPLETED_FAILED、CANCELED) |
applicant |
String |
订单制单人 |
amount |
Decimal |
提币金额 |
miner_fee |
Decimal |
执行合约花费的小费 |
tx_id |
String |
tx hash 交易hash |
contract_address |
String |
合约地址 |
contract_data |
String |
合约动作 |
gas_price |
Decimal |
汽油费 |
gas_limit |
Decimal |
汽油费限制 |
max_fee_per_gas |
Decimal |
max fee |
max_priority_fee_per_gas |
Decimal |
priority fee |
contract_instructions |
List |
solana 合约信息 |
description |
String |
订单描述 |
deposit_trans |
Object[] |
入账交易 |
withdraw_trans |
Object[] |
出账交易 |
-amount |
Decimal |
金额 |
-coin_name |
String |
币种 |
Response Example
{
"code": 0,
"message": "",
"data": {
"time_stamp": 1608032934000,
"miner_fee": 11354360000000000,
"order_no": "D111111000071",
"contract_address": "0x600103d518cc5e8f3319d532eb4e5c268d32e604",
"contract_function": "",
"gas_price": 20000000000,
"gas_limit": 336417,
"contract_data": "0x40c10f19000000000000000000000000b597cd8d3217ea6477232f9217fa70837ff667af0000000000000000000000000000000000000000000000056bc75e2d63100000",
"applicant": "[email protected]",
"status": "FINISHED",
"amount": 0,
"tx_id": "KIVl7LZyHd8h8eHypUsprpb7XdpX7VV8",
"description": null,
"deposit_trans": [
{
"amount": 1000000000000000000,
"coin_name": "AAVE"
}
],
"withdraw_trans": []
},
"successful": true
}