Cosmos Staking Flow
This guide explains how to stake, unstake, and claim rewards on Cosmos-based chains (e.g., ATOM) using the Meria Staking API.
Step 1: Forge a Staking Transaction
POST /v1/transactions/ATOM/forge/stake
Content-Type: application/json
{
"delegatorAddress": "<your-wallet-address>",
"validatorAddress": "<validator-address>",
"amount": "<amount-in-ATOM>"
}
Step 2: Sign the Transaction
You will receive a transaction object compatible with wallets like Keplr. Sign it with your preferred wallet.
Step 3: Broadcast the Transaction
POST /v1/transactions/ATOM/broadcast
Content-Type: application/json
{
"encodedTransaction": "<your-signed-tx-base64>",
"uuid": "<uuid-from-forge-step>"
}
Step 4: Claim Rewards
POST /v1/transactions/ATOM/forge/claimRewards
Content-Type: application/json
{
"delegatorAddress": "<your-wallet-address>",
"validatorAddress": "<validator-address>"
}