The submitter program is used to submit btc staking transaction proof to Lorenzo node for stBTC minting.
- Go 1.21+
In order to build the program, execute the following command:
make build
You will get the binary file named lrz-btcstaking-submitter
in the build
directory.
- copy sample config and update with your values
- create database tables by
./db/schema.sql
- insert a row to database config table
name: submitter/btc-sync-point
value: $(pick a block height start from)
## replace ./sample-config.yml with your config file
./build/lrz-btcstaking-submitter --config ./sample-config.yml
./build/lrz-btcstaking-submitter refresh --blockscout-api $(blocksoutApiUrl) --lorenzo-app-api $(lorenzoAppApiUrl) --start-height $(startLorenzoHeight)