cashscript icon indicating copy to clipboard operation
cashscript copied to clipboard

support to set `nSequence` as a number of second chunks

Open mr-zwets opened this issue 8 months ago • 1 comments

support to set nSequence as a number of second chunks

Currently this is not supported a laid out in the docs:

Because of the way time locks work, a corresponding time lock needs to be added to the transaction. This can be done in the CashScript SDK through [addInput()][addInput()] by passing the sequence as optional argument. However, the value passed into this function will always be treated as a number of blocks, so it is currently not supported to use this.age as a number of second chunks.

mr-zwets avatar Mar 03 '25 16:03 mr-zwets