Closed mctrivia closed 4 years ago
Yes. addOutput
param accepts script
or address
... so if you just make the Buffer for the P2FKH and put it in the script
of the output you're fine.
To make the Buffer just build a Payment object and access its output
attribute for the Buffer of the outputScript.
See this example: Notice the first addOutput uses script
to pass the embed.output
(Which is a Buffer)
The example is kind of bad. an OP_RETURN (embed) should have value: 0
and not 1000
Yes an op_return script would be 0. P2FKH wouldn't so for a generic example it is actually very good. Thank you for your help.
Can PSBT be used to create P2FKH output?
I am looking to create colored coin transaction and need to be able to create 1 of 3 P2FKH transaction.