Skip to main content
POST
/
staking
/
unstake
curl -X POST https://secureapi.gridlog.io/api/v1/staking/unstake \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "stakeId": "stake_123...",
    "chain": "solana",
    "fromPrivateKey": "YOUR_PRIVATE_KEY",
    "amountToUnstake": "50.0"
  }'
{
  "id": "stake_123...",
  "status": "unstaking",
  "unstakedAmount": "50.0",
  "penalty": "2.5",
  "netAmount": "47.5"
}

Documentation Index

Fetch the complete documentation index at: https://docs.myaza.co/llms.txt

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

This endpoint supports both API key (X-API-Key header) and Bearer token (Authorization: Bearer <JWT>) authentication.
stakeId
string
required
The stake ID to unstake
chain
string
required
Blockchain network
fromPrivateKey
string
required
Private key of the staking wallet
amountToUnstake
string
Partial amount to unstake. Omit to unstake everything.
curl -X POST https://secureapi.gridlog.io/api/v1/staking/unstake \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "stakeId": "stake_123...",
    "chain": "solana",
    "fromPrivateKey": "YOUR_PRIVATE_KEY",
    "amountToUnstake": "50.0"
  }'
{
  "id": "stake_123...",
  "status": "unstaking",
  "unstakedAmount": "50.0",
  "penalty": "2.5",
  "netAmount": "47.5"
}
penalty
string
Amount deducted as early withdrawal penalty. "0" if lock period has passed.
netAmount
string
Amount available to withdraw after penalty
If unstaking before lockedUntil, the penaltyPercent from the plan is applied to the unstaked amount.