Staking-Unstake
POST http://127.0.0.1/api/staking/unstake
{
"token": "4bdd8022e70b8af49e871f38c80917de",
"stake_id": 270
}
success response:
{
"success":true
}
fail response:
{"success":"false","error":"not authorized"}
P.S.
For viewing the general staking data you can use API GET: http://localhost/api/staking
For stake and ustake you can use also Web-API:
For stake POST: http://localhost/api/staking/stake
{
"data":{
"currency": "QDT",
"amount": 17.52,
"delegate_account_id": 1
},
"sign":"4bdd8022e70b8af49e871f38c80917de"
}
For unstake POST: http://localhost/api/staking/unstake
{
"data":{
"stake_id": 270
},
"sign":"4bdd8022e70b8af49e871f38c80917de"
}
Last updated