Skip to main content
POST
/
api
/
users
/
{userId}
/
withdraw
/
withdraw-sol
curl -X POST \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "destinationAddress": "7BfknMUrXjZ96swfM4uLzDXi9QgtcdjQKiWcG4QxW2So",
    "amount": "0.05"
  }' \
  "https://trade.predexon.com/api/users/USER_ID/withdraw/withdraw-sol"
{
  "success": true,
  "transactionHash": "5KtP9LMv...",
  "amount": "0.05",
  "destinationAddress": "7BfknMUrXjZ96swfM4uLzDXi9QgtcdjQKiWcG4QxW2So"
}
curl -X POST \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "destinationAddress": "7BfknMUrXjZ96swfM4uLzDXi9QgtcdjQKiWcG4QxW2So",
    "amount": "0.05"
  }' \
  "https://trade.predexon.com/api/users/USER_ID/withdraw/withdraw-sol"
{
  "success": true,
  "transactionHash": "5KtP9LMv...",
  "amount": "0.05",
  "destinationAddress": "7BfknMUrXjZ96swfM4uLzDXi9QgtcdjQKiWcG4QxW2So"
}

Use Cases

Recover Unused SOL

Withdraw excess SOL after you’re done trading on Kalshi

Account Cleanup

Withdraw all SOL before deleting a user

Authorizations

x-api-key
string
header
required

Path Parameters

userId
string
required

Unique identifier for the user

Body

application/json
destinationAddress
string
required

Recipient Solana wallet address (base58 format)

amount
string
required

SOL amount to withdraw (e.g., "0.05")

Response

200 - application/json

SOL withdrawal completed

success
boolean

Whether the withdrawal was successful

transactionHash
string

Solana transaction signature

amount
string

SOL amount withdrawn

destinationAddress
string

Recipient wallet address