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。查詢字串也是簽名內容的一部分,所以請按實際發送的原樣簽名。