Skip to main content

14.1 Obtain payment of network fees (penses)

#Brief description: Get the network handling fee for each payment.

Note: If you pay to MINPAY wallet (our platform) users, the network handling fee is 0 (free)

Query parameters

Parameter nameTypeRequiredParameter meaningParameter description
keystringYesMerchant keyapiKey
addressstringYesOn-chain payment addressIf this address is the MINPAY wallet (our platform) user payment address, the handling fee will be 0 (free)
currencystringYesCurrencyDigital currencies supported by the wallet, such as USDT, TRX (can be obtained through the document 7.4.1 interface)
networkstringYesMainnetMainnet supported by digital currencies, such as TRON, BSC, POLYGON, ETHEREUM (available through the document 6.4.2 interface)
signstringYesmd5 signatureFor details, see Signature Algorithm (Document 2)
Request json sample
{
"key": "9yUreYgTRtit39Dy",
"network": "TRON",
"currency": "USDT",
"address": "TPutFhYUQnrRxHSmKVwjp55vgk9QY6r5nS",
"sign":"601adbf6af73ff8ad6cd7085fdea80bf"
}

return value

Parameter nameTypeParameter meaningParameter description
codeint32Request statusReturn code, 0 means the business is successful, otherwise it represents a different error
successbooleanSuccess statusSuccess identification, consistent with code=0, used for compatibility history
messagestringDescriptionError message. If there is an error, the error message returned
datajsonReturn dataSee the parameters below for details
Return to Example
{
"code": 0,
"success": true,
"message": null,
"data": {
"currency": "USDT",
"amount": "0",
"feeAmount": "1.5",
"feePer": 0,
"feeFixed": "1.5"
}
}
data parameter description
Parameter nameTypeParameter meaningParameter description
currencystringCurrency
amountnumberOriginal amount
feeAmountnumberCharge amountTake this field as the charge standard
feePernumberFee percentage
feeFixednumberFixed value of charge