Solana Withdraw Flow
Withdrawing from Solana requires two steps: first, you must unstake, then you can withdraw.
Step 1: Unstake
POST /v1/transactions/SOL/forge/unstake
Content-Type: application/json
{
"delegatorAddress": "<your-wallet-address>",
"stakeAccountAddress": "<stake-account-address>"
}
Step 2: Sign and Broadcast the Unstake Transaction
You have two options:
- Broadcast via API:
POST /v1/transactions/SOL/broadcast
Content-Type: application/json
{
"encodedTransaction": "<your-signed-tx-base64>",
"uuid": "<uuid-from-forge-step>"
} - Or broadcast yourself and then notify us:
POST /v1/transaction/submitHash
Content-Type: application/json
{
"uuid": "<uuid-from-forge-step>",
"txHash": "<your-tx-hash>"
}
Step 3: Wait for Deactivation
Wait for the Solana network to deactivate your stake account (2 epochs - 4 to 6 days in average).
Step 4: Withdraw
POST /v1/transactions/SOL/forge/withdraw
Content-Type: application/json
{
"delegatorAddress": "<your-wallet-address>",
"stakeAccountAddress": "<stake-account-address>",
"amount": "<amount-in-SOL>"
}
Step 5: Sign and Broadcast the Withdraw Transaction
You have two options:
- Broadcast via API:
POST /v1/transactions/SOL/broadcast
Content-Type: application/json
{
"encodedTransaction": "<your-signed-tx-base64>",
"uuid": "<uuid-from-forge-step>"
} - Or broadcast yourself and then notify us:
POST /v1/transaction/submitHash
Content-Type: application/json
{
"uuid": "<uuid-from-forge-step>",
"txHash": "<your-tx-hash>"
}