Skip to main content
POST
/
staking
/
withdraw
curl -X POST https://secureapi.gridlog.io/api/v1/staking/withdraw \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "stakeId": "stake_123...",
    "chain": "solana",
    "fromPrivateKey": "YOUR_PRIVATE_KEY"
  }'
{
  "id": "stake_123...",
  "status": "withdrawn",
  "withdrawnAmount": "47.5",
  "txHash": "5j7s8KXY..."
}
stakeId
string
required
The stake ID to withdraw from
chain
string
required
Blockchain network
fromPrivateKey
string
required
Private key of the staking wallet
curl -X POST https://secureapi.gridlog.io/api/v1/staking/withdraw \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "stakeId": "stake_123...",
    "chain": "solana",
    "fromPrivateKey": "YOUR_PRIVATE_KEY"
  }'
{
  "id": "stake_123...",
  "status": "withdrawn",
  "withdrawnAmount": "47.5",
  "txHash": "5j7s8KXY..."
}