Skip to content

The lorenzo btcstaking submitter is responsible for relaying the BTC staking transactions to Lorenzo blockchain for stBTC minting.

Notifications You must be signed in to change notification settings

Lorenzo-Protocol/lorenzo-btcstaking-submitter

Repository files navigation

Lorenzo Btcstaking Submitter

The submitter program is used to submit btc staking transaction proof to Lorenzo node for stBTC minting.

Requirements

  • Go 1.21+

Building

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.

Run locally

  • 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

run blockscout refresher

 ./build/lrz-btcstaking-submitter refresh --blockscout-api $(blocksoutApiUrl) --lorenzo-app-api $(lorenzoAppApiUrl) --start-height $(startLorenzoHeight)

About

The lorenzo btcstaking submitter is responsible for relaying the BTC staking transactions to Lorenzo blockchain for stBTC minting.

Resources

Stars

Watchers

Forks

Packages

No packages published