Skip to main content

Solana Staking Flow

This guide explains how to perform a staking operation on Solana using the Meria Staking API. The process is designed to be secure and flexible, allowing you to sign transactions with your own wallet or key management solution.

Step 1: Forge a Staking Transaction​

POST /v1/transactions/SOL/forge/stake
Content-Type: application/json

{
"delegatorAddress": "<your-wallet-address>",
"validatorAddress": "<validator-vote-address>",
"amount": "<amount-in-SOL>"
}

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.