Fee estimation
1. Create your website and get the “SECRET_KEY”. Instruction can be found here.
2. Send the “GET” request to see available fee plans.
Note: for the correct work of the service it is necessary to set Request IP
Endpoint:
https://api.plisio.net/api/v1/operations/fee/<psys_cid>
cURL request example:
curl --location --request GET https://api.plisio.net/api/v1/operations/fee/BTC
?addresses=2N2m6XRwR8shANBwFTgCGwYtkkf6uFi6XJW
&amounts=0.002
&api_key=SECRET_KEY
List of all supported request fields:
Field | Description |
---|---|
currency | ID column from one of the supported cryptocurrencies supported by Plisio |
addresses | wallet address or comma separated addresses when estimating fee for mass withdrawal |
amounts | amount or comma separated amount that will be send in case of mass withdraw |
feePlan | normal or priority (more info) |
api_key | “Secret key” value from your API » Api settings page |
* - required
Success response example:
{
"status": "success",
"data": {
"fee": "0.00000775",
"psys_cid": "BTC",
"currency": "BTC",
"plan": "normal"
}
}
HTTP response status code: 200
Error response example:
{
"status": "error",
"data": {
"name": "Unprocessable entity",
"message": "{\"balance\":\"Insufficient funds on balance\"}",
"code": 116
}
}
HTTP response status codes: 422, 500
Error response:
Field | Description |
---|---|
status | error |
data.name | error name |
data.message | error explanation |
data.code | error code |