Skip to main content
POST
/
unstake
Unstake
curl --request POST \
  --url https://tokens.shakesco.com/unstake \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_ref": "<string>",
  "stake_index": 123
}
'
{ "tx_hash": "0xabc..." }

Documentation Index

Fetch the complete documentation index at: https://docs.shakesco.com/llms.txt

Use this file to discover all available pages before exploring further.

For the complete documentation index, see llms.txt. Unlocks a specific stake position by its index (0-based). The customer’s available balance is credited with the principal plus pro-rata rewards based on how long the stake was held. Customers may unstake early, in which case rewards are scaled proportionally.
Look up the right index with /stake-info or /stake-count before calling. Indexes do not change once assigned.

Request Body

customer_ref
string
required
Your unique identifier for this customer
stake_index
integer
required
0-based index of the stake position

Response

tx_hash
string
Reference identifier for the unstake
await fetch("https://tokens.shakesco.com/unstake", {
  method: "POST",
  headers: { Authorization: `Bearer ${API_KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({ customer_ref: "customer-123", stake_index: 0 }),
});
{ "tx_hash": "0xabc..." }