Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLTV example #2220

Closed
VladChernenko opened this issue Mar 11, 2025 · 2 comments
Closed

CLTV example #2220

VladChernenko opened this issue Mar 11, 2025 · 2 comments

Comments

@VladChernenko
Copy link

VladChernenko commented Mar 11, 2025

Greetings!

Can you provide please the examples (code snippets) of CLTV usage:

  1. How to create P2SH for it
  2. How to fund this address
  3. How to spend from such an address

The presented snippets in tests are impossible to be used, there are no normal answers in Google and LLMs chats

Thank you in advance

@jasonandjay
Copy link
Member

https://github.com/bitcoinjs/bitcoinjs-lib/blob/master/test/integration/cltv.spec.ts

Here are very detailed ideas and code implementation

@VladChernenko
Copy link
Author

Resolved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants