获取智能合约交易详情¶
返回消息或智能合约的签名结果。
请求¶
参数¶
路径参数¶
| 字段 | 类型 | 描述 |
|---|---|---|
| b_id 必填 | String | 业务线ID |
| wallet_code 必填 | String | 钱包ID |
| order_no 必填 | String | 订单ID |
响应¶
响应体¶
| 字段 | 类型 | 描述 |
|---|---|---|
| code | Integer | 响应代码(0 = 成功) |
| message | String | 响应消息 |
| successful | Boolean | 请求是否成功 |
| data | Object | 智能合约订单(详见下方 data 对象详情) |
data (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| 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 | 执行合约的矿工费 |
| miner_fee_str | String | 矿工费(字符串格式) |
| 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 | Gas价格 |
| gas_price_str | String | Gas价格(字符串格式) |
| max_fee_per_gas | Decimal | 最大费用 |
| max_fee_per_gas_str | String | 最大费用(字符串格式) |
| max_priority_fee_per_gas | Decimal | 优先费用 |
| max_priority_fee_per_gas_str | String | 优先费用(字符串格式) |
| gas_limit | Decimal | Gas限制 |
| gas_limit_str | String | Gas限制(字符串格式) |
| gas_used | Decimal | 已使用Gas |
| gas_used_str | String | 已使用Gas(字符串格式) |
| contract_data | String | 合约数据 |
| nonce | String | 交易nonce |
| applicant | String | 订单制单人/申请人 |
| status | String | 订单状态 允许值: FINISHED, FAILED, PROCESSING, ORDER_SEND_OUT, COMPLETED_FAILED, CANCELED, INVALID |
| ext_status | String | 外部状态 |
| inner_status | String | 内部状态 |
| amount | Decimal | 提币金额 |
| amount_str | String | 提币金额(字符串格式) |
| tx_id | String | 交易哈希 |
| description | String | 订单描述 |
| deposit_trans | Object[] | 入账交易(详见下方 deposit_trans / withdraw_trans 对象详情) |
| withdraw_trans | Object[] | 出账交易(详见下方 deposit_trans / withdraw_trans 对象详情) |
| wallet_id | Integer | 钱包ID |
| chain | String | 链名称 |
| chain_id | String | 链ID |
| payload | String | 原始请求载荷 |
| signed_data | String | 已签名交易数据 |
| contract_instructions | String | 合约指令 |
| bname | String | 业务名称 |
| bid | String | 业务线ID |
deposit_trans / withdraw_trans (对象)
| 字段 | 类型 | 描述 |
|---|---|---|
| amount | Decimal | 金额 |
| amount_str | String | 金额(字符串格式) |
| coin_name | String | 币种/代币类型 |
响应示例¶
{
"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,
"miner_fee_str": "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,
"gas_price_str": "153322430",
"max_fee_per_gas": null,
"max_fee_per_gas_str": null,
"max_priority_fee_per_gas": null,
"max_priority_fee_per_gas_str": null,
"gas_limit": 500000,
"gas_limit_str": "500000",
"gas_used": null,
"gas_used_str": null,
"contract_data": "0xa1122cbb00000000000000000000000005d021cffc1c12f64b53f11abcb1ffff11d0a1c1000000000000000000000000000000000000000000000000000000000000000a",
"nonce": "0",
"applicant": "test@abc.com",
"status": "FINISHED",
"ext_status": "FINISHED",
"inner_status": "FINISHED",
"amount": 1,
"amount_str": "1",
"tx_id": "0x00c0e989c7e0f31e22b18789b4abfcac00000004ba672f8a107bd8d1ae6ab000",
"description": "This is a create order",
"deposit_trans": [
{
"amount": 1,
"amount_str": "1",
"coin_name": "ETH_SEPOLIA"
}
],
"withdraw_trans": [
{
"amount": 1,
"amount_str": "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
}