2

There is the OP_IF opcode in Script. What did users use the OP_IF opcode for (use cases except for Lightning) before 2023? What tools to use to extract the transactions (with OP_IF) from historical data?

1 Answer 1

5

Some examples of early uses of OP_IF:

4
  • Re "What tools to use to extract the transactions (with OP_IF) from historical data?" did you query the blockchain data here yourself @Vojtech or use something else? Dec 27, 2023 at 16:05
  • 1
    I wrote a script that extracts this data from a local node. Dec 27, 2023 at 16:38
  • @VojtěchStrnad - is that script something you could share here (i.e. a link to github or something?)
    – Hannah Vernon
    Jan 2 at 21:13
  • @HannahVernon Not meaningfully, it has a lot of private dependencies so you wouldn't be able to run it, and it extracts all kinds of scripts, it's not specialized for OP_IF so it's a lot more complicated than it needs to be for this task. Jan 2 at 21:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.