Пример #1
0
def add_output(transaction, address, value):
    output = obelisk.TxOut()
    output.value = value
    output.script = obelisk.output_script(address)
    transaction.outputs.append(output)
Пример #2
0
def add_output(tx, address, value):
    output = obelisk.TxOut()
    output.value = value
    output.script = obelisk.output_script(address)
    tx.outputs.append(output)
Пример #3
0
def add_return_output(tx, data):
    output = obelisk.TxOut()
    output.value = 0
    output.script = "\x6a\x14" + data
    tx.outputs.append(output)