Skip to main content
POST
/
prune-inactive-stakes
Prune Inactive Stakes
curl --request POST \
  --url https://tokens.shakesco.com/prune-inactive-stakes \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "customer_ref": "<string>"
}
'
{ "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. Each customer is capped at 50 stake records (active or otherwise). Once a stake has been unstaked, this endpoint lets you delete the inactive record so the customer can create new stakes. Has no effect on active stakes or available balance.
Calling this changes stake indexes, so refresh any cached stake_index values immediately after.

Request Body

customer_ref
string
required
Your unique identifier for this customer

Response

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