Skip to content

stakingrewards/staking-sdk-babylon-simple-staking

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin Staking dApp

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.

Develop

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_API specifies the mempool.space host to use for Bitcoin node queries
  • NEXT_PUBLIC_STAKING_SDK_BABYLON_API_URL specifies the back-end API to use for the staking system queries
  • NEXT_PUBLIC_STAKING_SDK_BABYLON_POINTS_API_URL specifies the Points API to use for the points system (Optional)
  • NEXT_PUBLIC_STAKING_SDK_BABYLON_NETWORK specifies the BTC network environment
  • NEXT_PUBLIC_DISPLAY_TESTING_MESSAGES boolean value to indicate whether display testing network related message. Default to true
  • NEXT_PUBLIC_DISABLE_UNBONDING boolean value to indicate whether disable unbonding. Default to false

Then, to start a development server:

npm run dev

Wallet Integration

Instructions for wallet integration can be found in this document.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 98.9%
  • Other 1.1%