Account
Loop Alliance
Transactions
Withdraw
Staking
Trading
Gas Station
Account
Transaction
Withdraw
Tss Node
Bind Auth
Gas Station
Custodial Wallet APIs
MPC Wallet APIs
Get Transactions By time and offset
This endpoint returns a list of transactions filtered by time range, transaction status, coins, transaction side (deposit/withdraw) and address. As the extension of Get Transactions By Time, this endpoint introduced a new ‘offset’ parameter used for performing pagination query of transactions. The response includes transaction details such as transaction hash, amount, and timestamp.
Coin codes. Separated by commas
1: TRANSACTION_DEPOSIT; 2: TRANSACTION_WITHDRAW
Deposit address
Begin timestamp(milliseconds). If set, transactions whose transaction created time is greater than or equal to this will be returned.
End timestamp (milliseconds). If set, the transactions whose created time is less than this will be returned.
Page size. If not set, the default size will be 50, and the maximum size will also be 50.
Offset specifies the starting index for the current query, indicating the number of transactions to skip before fetching and returning the transactions in the result.
Sorting method. Default: created_time; other option: last_time
Sorting order. Options: ASC (default), DESC
Transaction ID
request(
'GET',
'/v1/custody/transactions_by_time_ex/',
{
"coins": "COBO_HNS",
"side": 2,
"status": 900,
"begin_time": 1699249938000,
"limit": 10,
"offset": 0,
"order": "DESC",
},
api_key, api_secret, host
)
{
"success": true,
"result": [
{
"id": "20231229164409000331925000008218",
"coin": "COBO_HNS",
"display_code": "COBO_HNS",
"description": "",
"decimal": 6,
"address": "rs1qsppf0ypx5lmjepc5s55rqwdlefk9n2saglxzm6",
"source_address": "rs1qt8f7pjuc6de5ljgtm96l2gkl4x7pq497j8qdn3",
"side": "withdraw",
"amount": "500",
"abs_amount": "0.0005",
"txid": "7d4c49b653633f65cff08932bab41e2fe594b3d90c7f1978d9e4a0eb678b7468",
"vout_n": 0,
"request_id": "IntegrationTest-854963652255465838",
"status": "success",
"abs_cobo_fee": "0",
"created_time": 1703839219000,
"last_time": 1703839450000,
"confirmed_num": 2,
"remark": "",
"tx_detail": {
"txid": "7d4c49b653633f65cff08932bab41e2fe594b3d90c7f1978d9e4a0eb678b7468",
"blocknum": 1199326,
"blockhash": "7cc460715566bd2fe2a545902ec8a52ac6ae79f28331bf58d6e07256bbb550ca",
"fee": 0,
"actualgas": 250000,
"gasprice": 1,
"hexstr": ""
},
"source_address_detail": "rs1qt8f7pjuc6de5ljgtm96l2gkl4x7pq497j8qdn3",
"memo": "",
"confirming_threshold": 2,
"fee_coin": "COBO_HNS",
"fee_amount": 550000,
"fee_decimal": 6,
"type": "external"
},
{
"id": "20231229161638000343969000005740",
"coin": "COBO_HNS",
"display_code": "COBO_HNS",
"description": "",
"decimal": 6,
"address": "rs1qsppf0ypx5lmjepc5s55rqwdlefk9n2saglxzm6",
"source_address": "rs1q5gqkxzd6g02csmv9m22450p6hw5sqmrptuanjy",
"side": "withdraw",
"amount": "500",
"abs_amount": "0.0005",
"txid": "26316634afed164e24418bf2e01daf0466407ddf14de2b928a369b5184e1fba1",
"vout_n": 0,
"request_id": "IntegrationTest-854957104955502882",
"status": "success",
"abs_cobo_fee": "0",
"created_time": 1703837659000,
"last_time": 1703837798000,
"confirmed_num": 2,
"remark": "",
"tx_detail": {
"txid": "26316634afed164e24418bf2e01daf0466407ddf14de2b928a369b5184e1fba1",
"blocknum": 1199299,
"blockhash": "1a280b2d298ed217c8a4f9dbe42ae93e70c286bbe25350d9d70009a66779deb1",
"fee": 0,
"actualgas": 250000,
"gasprice": 1,
"hexstr": ""
},
"source_address_detail": "rs1q5gqkxzd6g02csmv9m22450p6hw5sqmrptuanjy",
"memo": "",
"confirming_threshold": 2,
"fee_coin": "COBO_HNS",
"fee_amount": 550000,
"fee_decimal": 6,
"type": "external"
}
]
}
Request
Status Type | Code |
---|---|
PENDING_APPROVAL | 101 |
SENT | 201 |
PENDING_CONFIRMATION | 501 |
SUCCESS | 900 |
FAILED | 901 |
Response
Transaction Request Type | Code |
---|---|
REQUEST_FROM_WEB | 100 |
REQUEST_FROM_API | 200 |
REQUEST_FROM_GAS_STATION | 1500 |
request(
'GET',
'/v1/custody/transactions_by_time_ex/',
{
"coins": "COBO_HNS",
"side": 2,
"status": 900,
"begin_time": 1699249938000,
"limit": 10,
"offset": 0,
"order": "DESC",
},
api_key, api_secret, host
)
{
"success": true,
"result": [
{
"id": "20231229164409000331925000008218",
"coin": "COBO_HNS",
"display_code": "COBO_HNS",
"description": "",
"decimal": 6,
"address": "rs1qsppf0ypx5lmjepc5s55rqwdlefk9n2saglxzm6",
"source_address": "rs1qt8f7pjuc6de5ljgtm96l2gkl4x7pq497j8qdn3",
"side": "withdraw",
"amount": "500",
"abs_amount": "0.0005",
"txid": "7d4c49b653633f65cff08932bab41e2fe594b3d90c7f1978d9e4a0eb678b7468",
"vout_n": 0,
"request_id": "IntegrationTest-854963652255465838",
"status": "success",
"abs_cobo_fee": "0",
"created_time": 1703839219000,
"last_time": 1703839450000,
"confirmed_num": 2,
"remark": "",
"tx_detail": {
"txid": "7d4c49b653633f65cff08932bab41e2fe594b3d90c7f1978d9e4a0eb678b7468",
"blocknum": 1199326,
"blockhash": "7cc460715566bd2fe2a545902ec8a52ac6ae79f28331bf58d6e07256bbb550ca",
"fee": 0,
"actualgas": 250000,
"gasprice": 1,
"hexstr": ""
},
"source_address_detail": "rs1qt8f7pjuc6de5ljgtm96l2gkl4x7pq497j8qdn3",
"memo": "",
"confirming_threshold": 2,
"fee_coin": "COBO_HNS",
"fee_amount": 550000,
"fee_decimal": 6,
"type": "external"
},
{
"id": "20231229161638000343969000005740",
"coin": "COBO_HNS",
"display_code": "COBO_HNS",
"description": "",
"decimal": 6,
"address": "rs1qsppf0ypx5lmjepc5s55rqwdlefk9n2saglxzm6",
"source_address": "rs1q5gqkxzd6g02csmv9m22450p6hw5sqmrptuanjy",
"side": "withdraw",
"amount": "500",
"abs_amount": "0.0005",
"txid": "26316634afed164e24418bf2e01daf0466407ddf14de2b928a369b5184e1fba1",
"vout_n": 0,
"request_id": "IntegrationTest-854957104955502882",
"status": "success",
"abs_cobo_fee": "0",
"created_time": 1703837659000,
"last_time": 1703837798000,
"confirmed_num": 2,
"remark": "",
"tx_detail": {
"txid": "26316634afed164e24418bf2e01daf0466407ddf14de2b928a369b5184e1fba1",
"blocknum": 1199299,
"blockhash": "1a280b2d298ed217c8a4f9dbe42ae93e70c286bbe25350d9d70009a66779deb1",
"fee": 0,
"actualgas": 250000,
"gasprice": 1,
"hexstr": ""
},
"source_address_detail": "rs1q5gqkxzd6g02csmv9m22450p6hw5sqmrptuanjy",
"memo": "",
"confirming_threshold": 2,
"fee_coin": "COBO_HNS",
"fee_amount": 550000,
"fee_decimal": 6,
"type": "external"
}
]
}