14.1 Obtain payment of network fees (penses)
#Brief description: Get the network handling fee for each payment.
- Request method: POST
- Request interface: https://gateway-domain/wallet-trade-merchant/v1/utils/payment/network/fee
- Request media type (JSON data format)Content-Type: application/json
Note: If you pay to MINPAY wallet (our platform) users, the network handling fee is 0 (free)
Query parameters
| Parameter name | Type | Required | Parameter meaning | Parameter description |
|---|---|---|---|---|
key | string | Yes | Merchant key | apiKey |
address | string | Yes | On-chain payment address | If this address is the MINPAY wallet (our platform) user payment address, the handling fee will be 0 (free) |
currency | string | Yes | Currency | Digital currencies supported by the wallet, such as USDT, TRX (can be obtained through the document 7.4.1 interface) |
network | string | Yes | Mainnet | Mainnet supported by digital currencies, such as TRON, BSC, POLYGON, ETHEREUM (available through the document 6.4.2 interface) |
sign | string | Yes | md5 signature | For details, see Signature Algorithm (Document 2) |
Request json sample
{
"key": "9yUreYgTRtit39Dy",
"network": "TRON",
"currency": "USDT",
"address": "TPutFhYUQnrRxHSmKVwjp55vgk9QY6r5nS",
"sign":"601adbf6af73ff8ad6cd7085fdea80bf"
}
return value
| Parameter name | Type | Parameter meaning | Parameter description |
|---|---|---|---|
code | int32 | Request status | Return code, 0 means the business is successful, otherwise it represents a different error |
success | boolean | Success status | Success identification, consistent with code=0, used for compatibility history |
message | string | Description | Error message. If there is an error, the error message returned |
data | json | Return data | See 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 name | Type | Parameter meaning | Parameter description |
|---|---|---|---|
currency | string | Currency | |
amount | number | Original amount | |
feeAmount | number | Charge amount | Take this field as the charge standard |
feePer | number | Fee percentage | |
feeFixed | number | Fixed value of charge |