10 sats \ 0 replies \ @shibe 17 May 2023 \ parent \ on: Can you help me build raw bitcoin transaction? bitcoin
That will depend on the address/output type. For example a segwit output is OP_0 OP_PUSHBYTES-20 <pk hash>, and a taproot output is OP_PUSHNUM_1 OP_PUSHBYTES_32 <public key>. I'm sure there's some address decoder out there that turns an address into its locking script