The Bitcoin Staking dApp is a web application integrating with extension wallets that allows a user to stake their Bitcoin. It is hosted by Babylon and serves as a reference implementation for entities that want to set up their own staking website.
To set up a development environment, first specify the required environment
variables in the .env.local file in the root directory:
cp .env.example .env.local
where,
NEXT_PUBLIC_STAKING_SDK_BABYLON_MEMPOOL_APIspecifies the mempool.space host to use for Bitcoin node queriesNEXT_PUBLIC_STAKING_SDK_BABYLON_API_URLspecifies the back-end API to use for the staking system queriesNEXT_PUBLIC_STAKING_SDK_BABYLON_POINTS_API_URLspecifies the Points API to use for the points system (Optional)NEXT_PUBLIC_STAKING_SDK_BABYLON_NETWORKspecifies the BTC network environmentNEXT_PUBLIC_DISPLAY_TESTING_MESSAGESboolean value to indicate whether display testing network related message. Default to trueNEXT_PUBLIC_DISABLE_UNBONDINGboolean value to indicate whether disable unbonding. Default to false
Then, to start a development server:
npm run devInstructions for wallet integration can be found in this document.