Skip to content

A recursive covenant built on Liquid that forces L-BTC royalty payments to an address whenever an asset is transferred

License

Notifications You must be signed in to change notification settings

Randy808/liquid-forceoutputscript-recursive

Repository files navigation

liquid-forceoutputscript-recursive

A covenant for the Liquid sidechain that uses the psuedo-opcode 'OP_FORCE_OUTPUT_SCRIPT_VERIFY' to make a recursive script construction.

Prerequisites

  • An elements node running on regtest
  • Installation of npm
  • Installation of typescript

How to run

  1. Make sure you have an elements node running (use nigiri to run the script as-is)
  2. Change admin1, 123, and 18881 in the string http://admin1:123@localhost:18881 from ElementsClient.ts to your username, password, and port respectively
  3. Open terminal
  4. cd to the folder containing the contents of this repo
  5. Run npm install
  6. Run ts-node main.ts
  7. Make sure the first log with the balance shows up to see if you can correctly connect to the elements node
  8. The last log should should read Done if the script runs successfully

About

A recursive covenant built on Liquid that forces L-BTC royalty payments to an address whenever an asset is transferred

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published