0 sats \ 0 replies \ @spraveenitpro 21 Jan \ on: ELI5: How do I programmatically create a Segwit transaction? bitcoin_beginners
https://medium.com/coinmonks/creating-and-signing-a-segwit-transaction-from-scratch-ec98577b526a is what came to my mind but you have it. Also the 4th chapter of Mastering Bitcoin addresses this I believe.