API 路径、字段名、事件名和代码示例保持英文,与接口完全一致,可直接复制使用。
充值
查询充值记录,用于补回漏收的 Webhook 或对账。Webhook 仍是得知充值的最快方式。
查询充值
GET/v1/deposits/{id}
返回一笔充值。id 是充值 Webhook中的 deposit_id。未知的 ID 返回 404 not_found。
200 OK
{
"id": "c1a5e8f2-7b3d-4e9a-8c6f-1d2e3f4a5b6c",
"status": "confirmed",
"chain": "tron",
"asset": "tron:USDT",
"decimals": 6,
"address": "TQ9xG7c2...7kLm",
"player_ref": "player_1024",
"player_name": "alice88",
"from": "TFp3...Wq8",
"amount": "50000000",
"fee": "1000000",
"net": "49000000",
"finality": "finalized",
"tx_hash": "0x7c3e...b91d",
"log_index": 0,
"block_number": "68421337",
"detected_at": "2026-10-10T08:00:41.000Z",
"confirmed_at": "2026-10-10T08:01:12.000Z"
}充值对象
| 字段 | 类型 | 说明 |
|---|---|---|
status | string · 必填 | 见下方状态表。 |
address | string · 必填 | 收到这笔资金的玩家充值地址;Standard充值是您的收款地址。 |
player_ref | string · 必填 | 您给玩家的标识,来自创建地址。 |
player_name | string | null · 必填 | 您最近一次以 player_name发送的用户名,或 null。Webhook 中不包含此字段。 |
from | string · 必填 | 付款方地址。 |
amount | string · 必填 | 玩家转入的金额,以最小单位表示。请按这个完整金额给玩家入账。 |
fee | string | null · 必填 | 我们的手续费。confirmed 后才有值。 |
net | string | null · 必填 | amount − fee:您的余额实际收到的金额(手续费由您承担,不由玩家承担)。confirmed 后才有值。 |
finality | string | null · 必填 | fast(在最终确认较慢的链上,小额充值经过几个区块后即入账)或 finalized。 |
tx_hash, log_index, block_number | string, number, string · 必填 | 这笔转账在链上的位置。 |
状态
| status | 含义 |
|---|---|
detected | 链上已发现,尚未最终确认。显示为处理中;不要入账。 |
confirmed | 已最终确认,并已计入您的余额。fee 和 net 已有值。 |
below_min | 低于最低充值金额;未入账。请联系我们处理。 |
flagged | 暂扣待审核;未入账。 |
orphaned | 所在区块在最终确认前被链重组移除。没有任何入账。 |
充值列表
GET/v1/deposits
最新的在前。
| 参数 | 类型 | 说明 |
|---|---|---|
player_ref | string · 选填 | 只返回该玩家的充值。 |
status | string · 选填 | 上面的状态之一。 |
limit | integer · 选填 | 1–100,默认 50。 |
before | string · 选填 | 获取下一页时,传入上一次响应中的 next_before。 |
let before = null; do { const q = new URLSearchParams({ player_ref: "player_1024", limit: "100", ...(before && { before }) }); const { body } = await icn("GET", `/v1/deposits?${q}`); for (const d of body.deposits) handle(d); before = body.next_before; } while (before);
before = None
while True:
q = "player_ref=player_1024&limit=100" + (f"&before={before}" if before else "")
status, body = icn("GET", f"/v1/deposits?{q}")
for d in body["deposits"]:
handle(d)
before = body["next_before"]
if not before:
break200 OK
{
"deposits": [ { "id": "c1a5e8f2-…", "status": "confirmed", … } ],
"next_before": "c1a5e8f2-7b3d-4e9a-8c6f-1d2e3f4a5b6c"
}最后一页的 next_before 为 null。查询字符串也是签名内容的一部分,所以请按实际发送的原样签名。