Get Transaction Details for custom currency
Request
GET https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/customize-flow
Parameters
Field |
Type |
Description |
b_id |
Long |
Business line ID |
wallet_code |
String |
Wallet ID |
tx_typesOptional |
String[] |
Business type |
contract_addressesOptional |
String[] |
addresses |
chainsOptional |
String[] |
Cactus chain name Allowed Value: Refer to Cactus Network Name (For API) column in Supported Token |
offsetOptional |
Integer |
0 by default |
limitOptional |
Integer |
10 by default |
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[] |
List |
b_id |
String |
Business line ID |
wallet_code |
String |
Wallet ID |
wallet_name |
String |
Wallet name |
coin_name |
String |
Asset name |
full_name |
String |
Asset full name |
chain |
String |
Chain name |
contract_address |
String |
Contract address |
order_no |
String |
Order ID |
block_height |
Long |
Block height |
block_hash |
String |
Block hash |
tx_id |
String |
Transaction hash |
tx_type |
String |
Business type Allowed values: WITHDRAW , DEPOSIT |
amount |
Decimal |
Amount |
gas_price |
Decimal |
Gas price (ETH series) |
gas_limit |
Decimal |
Gas limit (ETH series) |
tx_fee |
Decimal |
Transaction fee |
position |
Long |
position |
account |
String |
System account address |
counterparty |
String |
External address |
tx_status |
String |
Transaction status Allowed values: unconfirmed ,confirmed |
tx_time_stamp |
Long |
Transaction timestamp |
Response Example
{
"code": 0,
"message": "",
"data": {
"offset": 0,
"limit": 10,
"list": [
{
"order_no": "D000000000116",
"chain": "ETH",
"contract_address": "0x1b0e97e344a2c21a3809198242a887114fbdfc8a",
"block_height": 32522341,
"block_hash": "0x2174695fba65008064c2f8cc4459ce8e50e4ff04a61c06784eee0230493416d4",
"tx_id": "0x19a54f0efc39d6a62c907310b1a49bf9e6655bd84f052267963fe1f39e8490f9",
"position": 0,
"tx_type": "WITHDRAW",
"amount": 1000000000000000000,
"tx_status": "confirmed",
"account": "0x115eb8585ad0cfA18e1b7Fd39Dfc5c655adF8fB8",
"counterparty": "0x285F223343679ed88d93190c5da781aE8c49a6B1",
"gas_price": 2000000007,
"gas_limit": 51989,
"tx_fee": 103978000363923,
"wallet_code": "CHETH2222072723",
"wallet_name": "wallet name",
"coin_name": "CT01",
"full_name": "Custody Token 01",
"tx_time_stamp": 1656845124000,
"bid": "af6fcbc38b4d48cf99a23d68ed609b05"
},
{
"order_no": "",
"chain": "ETH",
"contract_address": "0x1b0e97e344a2c21a3809198242a887114fbdfc8a",
"block_height": 29757054,
"block_hash": "0xf6d67bc42350d6f65f9710fcbaf1db30ceefa71f5ef63a9c8da8c78929360ecc",
"tx_id": "0xfc1f5a98266f36117253d49a139226c3e46d5b646d39b18258e45c4a60623133",
"position": 29,
"tx_type": "DEPOSIT",
"amount": 1000000000000000000,
"tx_status": "confirmed",
"account": "0x115eb8585ad0cfa18e1b7fd39dfc5c655adf8fb8",
"counterparty": "0xecbfd63c2a81143c1baeeb74c3c506c24b333e59",
"gas_price": null,
"gas_limit": null,
"tx_fee": null,
"wallet_code": "CHETH2222072723",
"wallet_name": "wallet name",
"coin_name": "CT01",
"full_name": "Custody Token 01",
"tx_time_stamp": 1644487124000,
"bid": "af6fcbc38b4d48cf99a23d68ed609b05"
}
],
"total": 2,
},
"successful": true
}