Skip to content

atomiqlabs/atomiq-relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bitcoin relay synchronizer + Watchtower

Btc Relay

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.

Watchtower

Watches the chain for Bitcoin -> Solana swaps and automatically claims them on behalf of payees, earning a fee in Solana in return, more on it here

Requirements

  • bitcoind node (Download latest from here or build from source)
  • nodejs (requires v18 or higher)
  • npm
  • typescript

Installation

  1. Install npm packages: npm install
  2. Install typescript: npm install -g typescript
  3. Compile to javascript: tsc
  4. Setup bitcoind node in testnet mode (example config is in bitcoin.conf file)
  5. Rename _.env file to .env
  6. 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)
  7. Generate a new solana keypair: npm run genKey
  8. Airdrop some devnet tokens to your newly generated solana wallet: npm run airdrop
  9. Run the app with: npm start

About

Relayer & watchtower node.js app for atomiq

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published