查询自定义币种流水

注:仅支持Defi钱包

请求

GET https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/customize-flow

参数

字段 类型 描述
b_id String 业务线id
wallet_code String 钱包编号
id可选 String id
tx_types可选 String[] 业务类型 允许值: WITHDRAW、DEPOSIT
contract_addresses可选 String[] 合约地址
chains可选 String[] 所属链
允许值: 参考币种列表Cactus Network Name (For API)
offset可选 Integer 如果不传,默认0
limit可选 Integer 如果不传,默认10
start_time可选 Long 查询时间段的开始时间戳,不传则默认为0,即1970/00/00 00:00:00.000
end_time可选 Long 查询时间段的结束时间戳,不传则默认为当前时间点

响应

字段 类型 描述
code Integer 响应状态码
message String 响应信息
successful Boolean 请求是否成功
data Object 钱包列表数据
total Integer 总数据量
offset Integer offset
limit Integer limit
list Object[] 自定义流水列表
b_id String 业务线ID
wallet_code String 钱包编号
wallet_name String 钱包名称
coin_name String 币种名称
full_name String 币种全称
chain String 链信息
contract_address String 合约地址
order_no String 订单编号
block_height Long 交易块高度
block_hash String 交易块hash
tx_id String 交易hash
token_id String nft token id
nft_contract_name String nft 名称
tx_type String 业务类型(WITHDRAW-提币 DEPOSIT-入账 DEPOSIT) 允许值: WITHDRAW, DEPOSIT
amount Decimal 金额
gas_price Decimal eth系列提币汽油价格
gas_limit Decimal eth系列提币汽油上限
tx_fee Decimal 交易费
position Long 标志位
account String 系统账户地址
counterparty String 对方账户地址
tx_status String 交易状态(unconfirmed-未确认、confirmed-已安全确认) 允许值: unconfirmed ,confirmed
tx_time_stamp Long 交易时间戳

响应示例

{
  "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
}
Copyright © 2025 Cactus Custody all right reserved,powered by GitbookUpdated: 17-Apr-2025 10:11:15

results matching ""

    No results matching ""

    results matching ""

      No results matching ""