Payout estimated fee inquiry

TIP

Inquire about Payout estimated fees

Interface address

POST https://api.tokenpay.me/v1/payanother/estimated_fee

Interface parameters

Name
Location
Type
Required
Description

mch_id

body

string

Yes

Merchant ID, example value:12345678

chain

body

string

Yes

Owned public chain, example value:TRON

currency

body

string

Yes

Currency, example value:TRX. View supported currencies

to_address

body

string

Yes

Collection wallet( Notes: payment wallet is required for the application of payout)

app_id

body

string

Yes

Application ID, example value:8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd

TIP

app_id through the merchant backstage creating an application to obtain.

Interface return

Name
Type
Required
Description

code

integer

true

msg

string

true

Status description

request_id

string

true

Request ID

data

object

false

Data object

currency

string

Currency, example value:TRX. View supported currencies

to_address

string

Collection wallet( Notes: payment wallet is required for the application of payout)

fee

string

fee

app_id

string

Application ID, example value:8e4b8c2e7cxxxxxxxx1a1cbd3d59e0bd

Return example


{
    "code": 0,
    "msg": "ok",
    "request_id": "0f262d68-a7bc-4ff4-beeb-994a1e6bcd53",
    "data": {
        "chain": "TRON",
        "currency": "USDT",
        "to_address": "TPKcSZqWWAJyE7KTKUveSfgWM75sZrr9JG",
        "fee": "2500000",
        "decimals": 6
    }
}

Example code

curl --location --request POST 'https://api.tokenpay.me/v1/payanother/estimated_fee'
--header 'Authorization: '
--header 'User-Agent: tokenpay API (https://tokenpay.me)'
--header 'Content-Type: application/json'
--data-raw ''

Last updated