A simple covenant for the Liquid sidechain.
- An elements node running on regtest
- Installation of npm
- Installation of typescript
- Make sure you have an elements node running (use nigiri to run the script as-is)
- Change admin1, 123, and 18881 in the string http://admin1:123@localhost:18881 from ElementsClient.ts to your username, password, and port respectively
- Open terminal
cd
to the folder containing the contents of this repo- Run
npm install
- Run
ts-node simple-covenant.ts
- Make sure the first log with the balance shows up to see if you can correctly connect to the elements node
- The last log should start with
Final transaction id:
if everything runs successfully