获取交易详情
请求
GET https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/contract/orders/{order_no}
参数
字段 |
类型 |
描述 |
b_id |
String |
业务线ID |
wallet_code |
String |
钱包ID |
order_no |
String |
订单ID |
响应
字段 |
类型 |
描述 |
code |
Integer |
响应状态码 |
message |
String |
响应信息 |
successful |
Boolean |
请求是否成功 |
data |
Object |
订单数据 |
domain_id |
String |
域标识符 |
type |
String |
交易类型 |
order_wallet_info_model |
Object |
钱包信息模型 |
wallet_code |
String |
钱包代码 |
coin_name |
String |
币种/代币名称 |
wallet_name |
String |
钱包名称 |
connect_type |
String |
连接类型 |
time_stamp |
Long |
订单创建时间戳 |
block_hash |
String |
区块哈希 |
miner_fee |
Decimal |
执行合约的矿工费 |
order_no |
String |
订单号 |
serial_no |
String |
序列号 |
contract_address |
String |
合约地址 |
contract_address_desc |
String |
合约地址描述 |
contract_address_label |
String |
合约地址标签 |
from_address |
String |
发送地址 |
contract_function |
String |
合约函数 |
contract_function_signature |
String |
合约函数签名 |
gas_price |
Decimal |
汽油费价格 |
max_fee_per_gas |
Decimal |
最大费用 |
max_priority_fee_per_gas |
Decimal |
优先费用 |
gas_limit |
Decimal |
汽油费限制 |
gas_used |
Decimal |
已使用汽油费 |
contract_data |
String |
合约数据 |
nonce |
String |
交易 nonce |
applicant |
String |
订单制单人/申请人 |
status |
String |
订单状态 (FINISHED , FAILED , PROCESSING , ORDER_SEND_OUT , COMPLETED_FAILED , CANCELED ) |
ext_status |
String |
外部状态 |
inner_status |
String |
内部状态 |
amount |
Decimal |
提币金额 |
tx_id |
String |
交易哈希 |
description |
String |
订单描述 |
deposit_trans |
Object[] |
入账交易 |
└─ amount |
Decimal |
金额 |
└─ coin_name |
String |
币种/代币类型 |
withdraw_trans |
Object[] |
出账交易 |
└─ amount |
Decimal |
金额 |
└─ coin_name |
String |
币种/代币类型 |
wallet_id |
Integer |
钱包ID |
chain |
String |
链名称 |
chain_id |
String |
链ID |
payload |
String |
原始请求载荷 |
signed_data |
String |
已签名交易数据 |
contract_instructions |
String |
合约指令 |
bname |
String |
业务名称 |
bid |
String |
业务线ID |
响应示例
{
"code": 0,
"message": "",
"data": {
"domain_id": "1e2fa188f5d44faca64c40111062e001",
"type": "API_DAPP_TRANSACTION",
"order_wallet_info_model": null,
"wallet_code": "DeFiEVM4303011111",
"coin_name": null,
"wallet_name": "",
"connect_type": null,
"time_stamp": 1755679499000,
"block_hash": "",
"miner_fee": 3439022104100,
"order_no": "TX001",
"serial_no": "ABC245V0TSTXTEST000001",
"contract_address": "0x4aab11ADc11dD664DD1A4FDFa38dF001dac1D001",
"contract_address_desc": null,
"contract_address_label": null,
"from_address": "0x11d021cFFc2c11F11b11F54ABCb7fFFF90d0A6C1",
"contract_function": "0xa9059cbb",
"contract_function_signature": "0xa9059cbb",
"gas_price": 153322430,
"max_fee_per_gas": null,
"max_priority_fee_per_gas": null,
"gas_limit": 500000,
"gas_used": null,
"contract_data": "0xa1122cbb00000000000000000000000005d021cffc1c12f64b53f11abcb1ffff11d0a1c1000000000000000000000000000000000000000000000000000000000000000a",
"nonce": "0",
"applicant": "[email protected]",
"status": "FINISHED",
"ext_status": "FINISHED",
"inner_status": "FINISHED",
"amount": 1,
"tx_id": "0x00c0e989c7e0f31e22b18789b4abfcac00000004ba672f8a107bd8d1ae6ab000",
"description": "This is a create order",
"deposit_trans": [
{
"amount": 1,
"coin_name": "ETH_SEPOLIA"
}
],
"withdraw_trans": [
{
"amount": 1,
"coin_name": "ETH_SEPOLIA"
}
],
"wallet_id": 00001,
"chain": "SEPOLIA",
"chain_id": "11155111",
"payload": null,
"signed_data": null,
"contract_instructions": null,
"bname": null,
"bid": "b4a00000d06542ba8fedb40e99d0c000"
},
"successful": true
}