Get Transaction Details
Request
GET https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/tx-details
Parameters
Field | Type | Description |
---|---|---|
b_id | Long | Business line ID |
wallet_code | String | Wallet ID |
coin_nameOptional |
String | Asset name Allowed Value: Refer to Cactus Symbol (For API) column in Supported Token |
tx_typesOptional |
String[] | tx_types |
addressesOptional |
String[] | addresses |
idOptional |
String | Wallet detail item ID |
tx_idOptional |
String | Transaction hash |
order_noOptional |
String | Order ID |
offsetOptional |
Integer | 0 by default |
limitOptional |
Integer | 10 by default |
create_time_order Optional |
Integer | Sort by creation time, 0 means in descending order, 1 means in ascending order; The result will be descending order by default Allowed values: "0" , "1" |
start_timeOptional |
Long | Start timestamp (0 by default) |
end_timeOptional |
Long | End timestamp (current time by default) |
Response
Field | Type | Description |
---|---|---|
code | Integer | Response code |
message | String | Response message |
successful | Boolean | If the request is successful |
data | Object | Wallet detail object |
offset | Integer | Offset |
limit | Integer | Limit |
list | Object[] | Wallet detail list |
id | String | Record ID |
domain_id | String | Enterprise ID |
b_id | String | Business line ID |
wallet_code | String | Wallet ID |
chain | String | Chain name |
wallet_type | String | Wallet type(MIXED_ADDRESS or SEGREGATED_ADDRESS) |
coin_name | String | Asset name |
order_no | String | Order ID |
block_height | Long | Block height |
confirm_ratio | String | Confirmation ratio |
tx_id | String | Transaction hash |
tx_size | Long | Transaction size (1 by default) |
tx_type | String | Business type Allowed values: WITHDRAW, DEPOSIT, PREFUND_DEPOSIT, MINER_REWARD, FEE_PAYMENT, ADVANCED_FEE, CONSOLIDATION, DEPOSIT_ROLLBACK, WITHDRAW_CREDIT, WITHDRAW_FAILED, WITHDRAW_CANCELED, WITHDRAW_REFUND, REBASE |
withdraw_amount | Decimal | Withdrawal amount |
gas_price | Decimal | Gas price (ETH series) |
gas_limit | Decimal | Gas limit (ETH series) |
tx_fee | Decimal | Transaction fee |
tx_fee_rate | Decimal | Transaction fee rate (withdrawal) |
tx_fee_type | String | Transaction fee type (withdrawal) |
miner_reward | Decimal | Block reward (deposit) |
miner_fee | Decimal | Miner fee reward (deposit) |
deposit_amount | Decimal | Total deposit |
wallet_balance | Decimal | Wallet balance |
tx_status | String | Transaction status Allowed values: unconfirmed, confirmed, failed, frozen, rollbacked, unconfirmed_alarm |
remark_detail | String | Remark |
tx_time_stamp | Long | Transaction timestamp |
create_time_stamp | Long | eposit timestamp |
vins | Object[] | Vins |
-address | String | Vins Address |
-idx | String | Vin ID |
-tag | String | Memo |
-amount | Decimal | Vin amount |
-balance | Decimal | Vin balance after transaction |
-is_change | Long | Is change |
-desc | String | Description |
vouts | Object[] | Vout |
-address | String | Vout address |
-idx | String | Vout ID |
-tag | String | Memo |
-amount | Decimal | Vout amount |
-balance | Decimal | Vout balance after transaction |
-is_change | Integer | Is change |
-desc | String | Vout description |
Response Example
{
"code": 0,
"message": "",
"data": {
"offset": 9,
"limit": 10,
"list": [
{
"id": 2187,
"domain_id": "a5b3f782c4e24c688eca60946442a75f",
"domain_name": null,
"domain_code": null,
"kyc_number": null,
"service_type": null,
"wallet_code": "CHBTC6731708813",
"wallet_type": "SEGREGATED_ADDRESS",
"coin_name": "BTC",
"order_no": null,
"block_height": 1691839,
"confirm_ratio": null,
"tx_id": "617e02248e1620b6d5a65a531fc8fcbb412c2e34c840be048add18215e49e94e",
"tx_size": 293,
"tx_type": "DEPOSIT",
"withdraw_amount": null,
"gas_price": null,
"gas_limit": null,
"tx_fee": 590,
"tx_fee_rate": null,
"tx_fee_type": null,
"miner_reward": null,
"miner_fee": null,
"deposit_amount": 300000,
"wallet_balance": 20309373,
"extended_info": {
"domain_coin_balance": 500073396381,
"attachments": null
},
"tx_status": "confirmed",
"remark_detail": null,
"vins": [
{
"address": "mnxUp4iXgSrAhHEipDjH5pkZMhVPSDqUjK",
"idx": 1,
"tag": null,
"amount": null,
"balance": null,
"is_change": 0,
"desc": null
}
],
"vouts": [
{
"address": "mnxUp4iXgSrAhHEipDjH5pkZMhVPSDqUjK",
"idx": 1,
"tag": null,
"amount": 300000,
"balance": 18219851,
"is_change": 1,
"desc": ""
}
],
"tx_time_stamp": 1585539864000,
"create_time_stamp": 1585539503000,
"bid": "ed70ff75b1fe4994a3bd836befe0e87f"
}
],
"total": 1
},
"successful": true
}