Skip to content

Off-chain app synchronizing bitcoin blockheaders to BTC Relay program on Solana

License

Notifications You must be signed in to change notification settings

adambor/BTCRelay-Sol-Offchain

Repository files navigation

Bitcoin relay off-chain app

A nodejs app, utilizing bitcoin full node and synchronizing all blockheaders to program on Solana. This app is also handling possible forks and chain splits and always tries to submit the chain with highest work.

Requirements

Installation

  1. Install npm packages: npm install
  2. Setup bitcoind node in testnet mode (example config is in bitcoin.conf file)
  3. Rename _.env file to .env
  4. Fill in the details of your bitcoind node in .env file (you don't have to edit this file when using local node and a provided bitcoin.conf config)
  5. Generate a new solana keypair: npm run genKey
  6. Airdrop some devnet tokens to your newly generated solana wallet: npm run airdrop
  7. Run the app with: npm start

About

Off-chain app synchronizing bitcoin blockheaders to BTC Relay program on Solana

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published