BitSong
  • Introduction
  • Delegators
    • Delegator FAQ
    • Delegator Security
  • Validators
    • Validator Overview
    • Validator FAQ
    • Validator Security
  • Relayer
  • FAQ
  • Glossary
  • Roadmap
  • Media Kit
  • Links
  • Blockchain
    • Install go-bitsong
    • Join the Mainnet
    • Create Validator
    • CLI Guide
    • Gas and Fees
    • Pruning of State
    • Export the state
    • Verify Mainnet
    • Upgrades
      • From v0.8.0 to v0.10.0
      • From v0.10.0 to v0.11.0
      • From v0.12.x to v0.13.0
      • From v0.13.x to v0.14.0
      • From v0.14.x to v0.15.0
      • From v0.17.0 to v0.18.0
  • Features and Modules
    • Fan Tokens
    • Merkledrop
    • NFTs
    • Marketplace
    • CosmWasm
      • Install rust
      • Deploy a Smart Contract
    • IBC
    • Auth
    • Bank
    • Crisis
    • Capability
    • Community Pool
    • Distribution
    • Evidence
    • Governance
    • Mint
    • Staking
    • Slashing
    • Upgrade
  • BTSG
    • What is BTSG ?
    • Distribution and Tokenomics
    • Wallets
    • Buy and Sell
    • Liquidity Provider
  • Developers
    • bitsongJS
  • PRODUCTS
    • Sinfonia
    • BitSong Studio
  • USEFUL GUIDES
    • How to Create a BitSong wallet
    • How to Import Your BitSong Wallet
    • How to Stake $BTSG
    • How to Add $BTSG Liquidity to Osmosis Pools
    • Sinfonia User's Guide
    • How to Report a Bug on Sinfonia
  • Global Ambassador Program
    • Who is an ambassador?
    • Program Rules
Powered by GitBook
On this page
  1. Blockchain

Export the state

PreviousPruning of StateNextVerify Mainnet

Last updated 3 months ago

We are moving our documentation to the new "" website. To access the most up-to-date and complete version of our guides and articles, please visit our new website. This old documentation site will no longer be maintained or updated, so we strongly recommend referring to the new website for the latest information. If you can't find what you're looking for on the new site, please be patient as we are still in the process of migrating all of our content. Thank you for your understanding! Visit the new article

go-bitsong can dump the entire application state into a JSON file. This application state dump is useful for manual analysis and can also be used as the genesis file of a new network.

Export state with:

bitsongd export 2> [filename].json

You can also export state from a particular height (at the end of processing the block of that height):

bitsongd export --height [height] 2> [filename].json

If you plan to start a new network from the exported state, export with the --for-zero-height flag:

bitsongd export --height [height] --for-zero-height 2> [filename].json
BitSong, the blockchain for music
bitsong documentation
bitsong documentation
https://bitsong.io/en/docs/blockchain/export-the-state