In a terminal, run the following commands:
npm install
npm run btc:start
In another terminal run:
npm run icp:start
Open another terminal and run:
npm run icp:deploy
# How to mint ckBTC
npm run btc:mint --address=$ADDRESS
# Sometimes you have to wait a few seconds
dfx canister call wallet updateBalance
# Troubleshoting
When running Bitcoin scripts on macOS, you may experience an error due to the fact that it is not a signed application. To fix this issue, you can run the following commands:
codesign -s - .bitcoin/bin/bitcoind
codesign -s - .bitcoin/bin/bitcoin-cli