Solana Unstaking Flow
This guide explains how to perform an unstaking operation on Solana using the Meria Staking API. The process is secure and lets you sign transactions with your own wallet or key management solution.
Step 1: Forge an Unstaking Transaction
POST /v1/transactions/SOL/forge/unstake
Content-Type: application/json
{
"delegatorAddress": "<your-wallet-address>",
"stakeAccountAddress": "<stake-account-address>"
}
Step 2: Sign the Transaction
You will receive an unsigned base64-encoded transaction. Sign it with your preferred wallet or key management solution.
Step 3: Broadcast the 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>"
}
For more details on required parameters and response formats, see the full API documentation.