curl --request GET \
--url https://openplatform.gateapi.io/v1/pay/wallet/withdrawals \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'[
{
"id": "w1879219868",
"currency": "USDT",
"address": "THISISTESTADDRESSFORGATEPAY",
"amount": "4.023",
"fee": "0",
"txid": "Internal transaction 260594131",
"chain": "BSC",
"timestamp": "1745220149",
"status": "DONE",
"withdraw_order_id": "202504211521368538928",
"block_number": "1000",
"fail_reason": "",
"type": "appbankgp",
"timestamp2": "1745220149",
"memo": ""
}
]根据筛选条件查询账户的提现记录列表。
curl --request GET \
--url https://openplatform.gateapi.io/v1/pay/wallet/withdrawals \
--header 'X-GatePay-Certificate-ClientId: <x-gatepay-certificate-clientid>' \
--header 'X-GatePay-Nonce: <x-gatepay-nonce>' \
--header 'X-GatePay-Signature: <x-gatepay-signature>' \
--header 'X-GatePay-Timestamp: <x-gatepay-timestamp>'[
{
"id": "w1879219868",
"currency": "USDT",
"address": "THISISTESTADDRESSFORGATEPAY",
"amount": "4.023",
"fee": "0",
"txid": "Internal transaction 260594131",
"chain": "BSC",
"timestamp": "1745220149",
"status": "DONE",
"withdraw_order_id": "202504211521368538928",
"block_number": "1000",
"fail_reason": "",
"type": "appbankgp",
"timestamp2": "1745220149",
"memo": ""
}
]商户客户端ID,在 GatePay 平台申请获得
"4186d0c6-6a35-55a9-8dc6-5312769dbff8"
HMAC-SHA256签名,用于验证请求合法性
"672d5650dcc9bb22ebf25fa16c28d03c0e159d742a9176d4340a5da326d75dc8a2ec24c97fa6fc5d1533dd6e968863747e1d86a45e562cbe899f9ed7e9ca7f77"
时间戳(毫秒),与服务器时间差不能超过5分钟
"1672905655498"
随机数,用于防止重放攻击
"3525756760"
指定币种,不填则返回所有币种的提现记录。
提现记录 ID(以 w 开头),如指定则查询单条记录。
币种类型,不填默认全部。可选:SPOT(主板)、PILOT(试验区)。
SPOT, PILOT 用户自定义提现订单号,用于查询指定记录。
起始时间戳(秒,Unix),默认近 7 天。查询时间范围不能超过 30 天。
结束时间戳(秒,Unix),默认当前时间。
返回记录的最大条数。
返回记录偏移量(从 0 开始)。
提现记录列表
交易记录 ID。
区块链交易哈希。
区块高度。
客户端订单 ID(最长 32 字符,仅支持数字/字母/_/-/.)。
操作时间(秒级时间戳,字符串)。
提现数量。
手续费数量。
币种名称。
提现地址。
失败原因(仅在 status 为 CANCEL 时返回)。
最终状态时间:CANCEL 为取消时间;DONE 且 block_number>0 为到账时间。
交易备注。
提现状态:DONE、CANCEL、REQUEST、MANUAL、BCODE、EXTPEND、FAIL、INVALID、VERIFY、PROCES、PEND、DMOVE、REVIEW 等。
提现链名称。