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.
- bitcoind node (Download latest from here or build from source)
- nodejs
- npm
- Install npm packages:
npm install
- Setup bitcoind node in testnet mode (example config is in bitcoin.conf file)
- Rename _.env file to .env
- 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)
- Generate a new solana keypair:
npm run genKey
- Airdrop some devnet tokens to your newly generated solana wallet:
npm run airdrop
- Run the app with:
npm start