Get Wallet Transaction Summary
Request
GET https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/tx-summaries
Parameters
Field | Type | Description |
---|---|---|
b_id | String | Business line ID |
wallet_code | String | Wallet name |
coin_name | String | Asset name Allowed Value: Refer to Cactus Symbol (For API) column in Supported Token |
tx_typesOptional |
String[] | tx_types |
addressesOptional |
String[] | addresses |
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 list |
wallet_code | String | Wallet ID |
chain | String | Chain name |
wallet_type | String | Wallet type Allowed values: MIXED_ADDRESS, SEGREGATED_ADDRESS |
coin_name | String | Asset name |
order_no | String | Order ID |
block_height | Long | Block height |
tx_id | String | Transaction hash |
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 |
amount | Decimal | Transaction amount |
wallet_balance | Decimal | Wallet balance after transaction |
remark_detail | String | Remark |
tx_time_stamp | Long | Transaction timestamp |
create_time_stamp | Long | Create timestamp |
Response Example
{
"code": 0,
"message": "",
"successful": null,
"data": {
"offset": 0,
"limit": 10,
"list": [
{
"wallet_code": "CCLTC1278870318",
"wallet_type": "SEGREGATED_ADDRESS",
"coin_name": "BCH",
"order_no": "666666000000080",
"block_height": 1361723,
"tx_id": "ad854765eb377b5f41839c3b7d85b7f39af2011b14d73320daeddf3fcbf45e68",
"tx_type": "DEPOSIT",
"amount": 33,
"wallet_balance": 9999092,
"remark_detail": "测试入账",
"tx_time_stamp": 1579163340000,
"create_time_stamp": 1579163540000
}
],
"total": 1
}
}