Interesting. How do you derive pk_script for output?
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
reply