BounceBit Documentation
HomepagePortalBounceClub
  • 🔳Welcome to BounceBit
    • BounceBit's Philosophy
    • Challenges Addressed By BounceBit
    • BounceClub: Build on BounceBit
  • CeDeFi
    • 🏦BounceBit CeFi + DeFi
      • Infrastructure
      • Yield Structure
    • 📊CeDeFi Yield
      • Funding Rate Arbitrage
      • Fixed
      • Auto
      • Manual
      • Integration of Node Staking Rewards
      • Rebasing Mechanism
      • Asset Manager Directory
    • 🌎RWA (Real World Assets)
      • RWA in Yield Generation
      • RWA on BounceBit Chain
    • Subscription & Redemption Rules
      • Auto & Manual
      • Fixed
    • Security Risk Management
    • dApp
      • ⚡Superfast
      • Ethena <> BounceBit
      • Convert
  • Infrastructure
    • ⛓️BounceBit PoS Chain
      • Dual-Token Staking Consensus
      • EVM Compatibility and Developer Support
    • 🔐Shared Security Clients
    • 🌉BTC Bridge
    • 🔮Oracle
      • Price Feed On-chain
      • Price Feed Off-chain
      • Data Feed Addresses
    • 💽Ecosystem Integrations
  • ♣️BounceClub
    • Intro
    • 🫂BounceClub Membership
    • MEME
    • Quanto
    • AI Agents
  • Token
    • 🏦BounceBit Tokenomics
      • Key Terms
      • 🪙BB Coin
      • Liquid Staking Token (stBBTC & stBB)
      • Bitcoin on BounceBit (BBTC)
      • Stablecoins on BounceBit (BBUSD)
    • 🧱Staking Delegation
    • 💧Liquid Staking
    • 📤Liquid Custody
    • 🍞Bread and Butter (BB Cross-chain Liquidity)
  • User Guides
    • General
      • How to Get BTCB from Binance
        • How to Transfer BTCB to your Binance Web3 Wallet
      • How to Use the Testnet Faucet
      • How to Add BounceBit Network to Your Wallet
    • 🌉Bridging
      • Portal Bridge
      • MultiBit Bridge
    • BounceClub V2
      • How to Launch a Memecoin
      • Arcade
      • DeFi
        • Quanto
        • Stablecoin
      • AI Agents
    • 📊CeDeFi
      • How to Withdraw/Redeem Your LCT
      • How to Subscribe to CeDeFi (V2)
      • How to Unsubscribe from CeDeFi (V2)
      • How to Wrap / How to get BBTC, BBUSD
      • Ethena <> BounceBit
      • Superfast Trading Guide
    • 💠Node Staking and Delegation
      • How to Stake/Unstake on Portal
      • How to Stake/Unstake BB and BBTC (Delegation)
  • Assets
    • 🪪Brand Guidelines
      • 🎨Logo Kit
    • ✅BounceBit's TVL
    • ✅Smart Contract Audit Report
    • First BounceBit's BTC TVL Audit Report
  • Developer Resources
    • BounceBit Mainnet Node Setup
      • Cosmovisor
    • Chain Info
    • RPC Support
    • How to Verify Smart Contracts
    • How to Withdraw Validator Commission
  • OTHER
    • 🌐BounceBit Official Social Media Channels
    • Terms of Use
    • Privacy Policy
Powered by GitBook
On this page
  1. Developer Resources

How to Withdraw Validator Commission

This guide explains how to withdraw your validator commission on BounceBit. Execute the following script on your validator machine, assuming your data directory is /data/bouncebit.

Prerequisites:

  • bbcored is installed (assumed location: /usr/local/bin/bbcored).

  • You have access to your validator's keyring.

Withdrawal Script:

#!/bin/bash

bbc="/usr/local/bin/bbcored --home=/data/bouncebit"

moniker=$($bbc status | jq -r '.NodeInfo.moniker' | sed 's/\n//')

opaddr=$($bbc query staking validators --output json | jq -r ".validators[] | select(.description.moniker == \"$moniker\") | .operator_address")

keys=$($bbc keys list --output json)

oper=$(echo "$keys"|jq -r '.[0].name')

rwaddr=$(echo "$keys"|jq -r '.[0].address')

cmd="bbc tx distribution withdraw-rewards $opaddr --from $oper --fees 2000000000000000bit --commission --yes --output json|jq"

echo "Moniker: $moniker"
echo "Operator Address: $opaddr"
echo "Reward Address: $rwaddr"
echo "Key Name: $oper"
echo "Command to execute: $cmd"
eval "$cmd"

Key Points:

  • Execution: Run this script on your validator server.

  • Keyring: You will be prompted for your keyring password twice during execution.

  • Reward Address: Rewards will be sent to your validator's operator address ($opaddr).

  • Key Selection: The script uses the first key in your keyring. Ensure this is the correct key.

  • Commission Flag: The --commission flag is essential for withdrawing validator commission.

Please execute this script to withdraw your commission. Contact us if you have any questions.

PreviousHow to Verify Smart ContractsNextBounceBit Official Social Media Channels

Last updated 29 days ago