For the complete documentation index, see llms.txt. This page is also available as Markdown.

餘額查詢

提示 (TIP)

檢查帳戶餘額和即時狀態

Interface address

POST https://api.tokenpay.me/v1/merchant/balance

介面地址 (Interface address)

參數名稱
位置
類型
必填
描述

mch_id

body

string

Yes

商戶 ID,示例值:12345678

chain

body

string

Yes

所屬公鏈,示例值:TRON

currency

body

string

Yes

幣種,示例值:TRX查看支援的幣種

介面返回 (Interface return)

參數名稱

類型

描述

說明

code

integer

服務狀態碼。0:成功,非 0:表示具體原因,請參考 msg

msg

string

狀態服務訊息

狀態服務訊息

request_id

string

請求 ID

請求 ID

data

array

內容

返回示例 (Return example)

{
    "code": 0,
    "msg": "ok",
    "request_id": "08250916-a677-4a36-a090-323807ac644c",
    "data": {
     "merchant_id": 167,
        "mch_id": "12345678",
        "network": "TRC20",
        "chain": "TRON",
        "balance": "54670000",
        "currency": "USDT",
        "decimal": 6,
        "create_time": 1724237814113,
        "modify_time": 1724239248394,
        "cash_time": 0
    }
}

示例代碼 (Example code)

最後更新於