3. Claim BABY Rewards

As soon as your stake is active, you will increase your rewards balance.

To claim your rewards, you have to call this endpoint:

POST /btc/baby/transaction/baby-withdraw-rewards
{
  "baby_public_key": "ff...",
  "baby_address": "bbn1..."
}
{
  "unsigned_tx_hash": "ff...",
  "fee": "12345",
  "tx_body": "ff...",
  "tx_auth_info": "ff...",
  "unsigned_tx_serialized": "ff...",
  "chain_id": "bbn",
  "account_number": "123"
}

Inputs Required:

  • Babylon Address (baby_address): The Babylon wallet address where rewards will be sent.
  • Babylon Public Key (baby_public_key): The public key of the Babylon wallet.

Output

  • The result of this call gives you the Babylon transaction to sign and broadcast in order to withdraw your rewards.
    • unsigned_tx_hash: The hash of the unsigned transaction.
    • fee: The transaction fee, represented as a StdFee object. Includes the amount and gas limit.
    • tx_body: The serialized transaction body.
    • tx_auth_info: The serialized transaction authorization information.
    • unsigned_tx_serialized: The fully serialized unsigned transaction.
    • chain_id: The ID of the blockchain network (e.g., babylon-1).
    • account_number: The account number of the sender on the blockchain.

Sign and broadcast this transaction and the totality of your rewards balance will be added to your wallet as $BABY.