Qchain
English
English
  • KNOWLEDGE BASE
    • Introduction to Qchain
    • Getting Started
    • How to run QChain node?
    • Instructions
      • How to install QNode on Linux
      • How to send tokens to staking
      • How to import an account
      • How to change the storage size
      • How to install Qnode on Andriod and register an account.
      • How to create a repository
      • How to transfer tokens between accounts
      • How to create your own token
      • How to send a file to the storage
    • Video instructions
      • How to import an account into Qchain node
      • Qchain. Import and Export of private key
      • Qchain installation Mac OS
      • Installation Qchain Node on Android
      • How to install a Qnode on Windows and register an account
    • Our tokens
    • Our products
    • Developing
      • Node API
      • Node account API
        • Export and import operations
        • Registering a new user
        • Registering a new user (2)
        • User login
        • Getting an address
        • Getting a balance
        • Getting a private key
        • Import a private key
        • Transfer
        • Request for transfer status
        • Request for list of transfers
        • Staking-Stake
        • Staking-Unstake
      • QTreasure API
        • Registration
        • List of payment gateways
        • Status payment
        • Payments
        • Purchase
        • Transaction fields
        • Transaction types
        • Transaction statuses
        • Callback response
Powered by GitBook
On this page
  1. KNOWLEDGE BASE
  2. Developing
  3. Node account API

Staking-Unstake

PreviousStaking-StakeNextQTreasure API

Last updated 1 year ago

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:

{
     "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"
}
http://localhost/api/staking/stake