def add_output(transaction, address, value): output = obelisk.TxOut() output.value = value output.script = obelisk.output_script(address) transaction.outputs.append(output)
def add_output(tx, address, value): output = obelisk.TxOut() output.value = value output.script = obelisk.output_script(address) tx.outputs.append(output)
def add_return_output(tx, data): output = obelisk.TxOut() output.value = 0 output.script = "\x6a\x14" + data tx.outputs.append(output)