def add_input(tx, tx_hash, tx_index): input = obelisk.TxIn() input.previous_output.hash = tx_hash input.previous_output.index = tx_index tx.inputs.append(input)
def add_input(tx, prevout): input = obelisk.TxIn() input.previous_output.hash = prevout.hash input.previous_output.index = prevout.index tx.inputs.append(input)
def add_input(transaction, prevout): tx_input = obelisk.TxIn() tx_input.previous_output.hash = prevout.hash tx_input.previous_output.index = prevout.index transaction.inputs.append(tx_input)