Sandbox BTCDEB
Last updated
Last updated
The most direct approach to creating bitcoin transactions is using a regtest and a tool that simulates the process step by step.
Bitcoin Debugger is an excellent tool in this regard, it also is convenient for creating taproot leaves, branches, and trees.
By following the updated version of the BTCDEB you should be able to create a tree that contains that 2 script paths. The script flow is also very similar to the one wanted.
Alice path is close to the reclaim path as the user who sent the funds can reclaim them from the script after X blocks.
Bob path is similar to paying to PoX address as in the example
it creates a transaction that uses the script path as UTXO and the output is another address
it gets signed
it gets broadcasted and the address receives the funds
A more straightforward example to just getting the transaction simulated can be found here
A more detailed version which explains in detail how things are combined and how to obtain the values wanted is here
Get all transactions from the regtest. The list of transactions contains all of them, including the blocks mined.
Save them in a variable locally on a browser console.
Filter transactions by amount < 6 or by address to be the wanted address.