Wallet inquiry

TIP

Query the wallet in monitor mode.

Interface address

GET https://api.tokenpay.me/v1/wallet/query

Interface parameters

Name
Location
Type
Required
Description

app_id

header

string

Yes

Application ID, example value: 8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd.

mch_id

body

string

Yes

Merchant ID, example value: 1234567890.

wallet_address

query

string

No

Wallet address, example value: TQjxEW2Z3pxxxxxxxxxxxxgJUrWXVAC92T.

Interface return

Name
Type
Required
Description

code

integer

true

msg

string

true

Statements

request_id

string

true

data

false

Return example

{
    "code": 0,
    "msg": "ok",
    "request_id": "ac054f57-22bf-45aa-b2b7-2275a6daae6f",
    "data": {
        "app_id": "8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd",
        "mch_id": "1234567890",
        "name": "28713",
        "chain": "TRON",
        "wallet_address": "TQjxEW2Z3pxxxxxxxxxxxxgJUrWXVAC92T",
        "create_time": 1673333676,
        "last_time": 0
    }
}

Example code

curl --location --request GET 'https://api.tokenpay.me/v1/wallet/query' \
--header 'Authorization: <Authorization>' \
--header 'User-Agent: tokenpay API (https://tokenpay.me)' \
--header 'Content-Type: application/json' \
--data-raw '<body data here>'

Last updated