Skip to main content
POST
/
staking
/
stake
curl -X POST https://secureapi.gridlog.io/api/v1/staking/stake \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "solana",
    "planId": "123e4567-e89b-12d3-a456-426614174000",
    "amount": "100.0",
    "fromPrivateKey": "YOUR_PRIVATE_KEY",
    "validator": "VALIDATOR_ADDRESS"
  }'
{
  "id": "stake_123e4567...",
  "planId": "123e4567...",
  "chain": "solana",
  "amount": "100.0",
  "status": "active",
  "lockedUntil": "2025-04-21T10:00:00.000Z",
  "createdAt": "2025-03-21T10:00:00.000Z"
}
chain
string
required
Blockchain network (e.g., solana)
planId
string
required
UUID of the staking plan from Get Staking Plans
amount
string
required
Amount to stake (must be within the plan’s minAmount and maxAmount)
fromPrivateKey
string
required
Private key of the wallet to stake from
validator
string
Validator address (required for Solana staking)
curl -X POST https://secureapi.gridlog.io/api/v1/staking/stake \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "solana",
    "planId": "123e4567-e89b-12d3-a456-426614174000",
    "amount": "100.0",
    "fromPrivateKey": "YOUR_PRIVATE_KEY",
    "validator": "VALIDATOR_ADDRESS"
  }'
{
  "id": "stake_123e4567...",
  "planId": "123e4567...",
  "chain": "solana",
  "amount": "100.0",
  "status": "active",
  "lockedUntil": "2025-04-21T10:00:00.000Z",
  "createdAt": "2025-03-21T10:00:00.000Z"
}
status
string
One of: active, unstaking, withdrawn
lockedUntil
string
Timestamp when penalty-free withdrawal becomes available