MCPcopy Create free account
hub / github.com/ElementsProject/elements / create_transaction

Function create_transaction

test/functional/test_framework/blocktools.py:186–193  ·  view source on GitHub ↗

Return signed transaction spending the first output of the input txid. Note that the node must have a wallet that can sign for the output that is being spent.

(node, txid, to_address, *, amount, fee, locktime=0)

Source from the content-addressed store, hash-verified

184 return tx
185
186def create_transaction(node, txid, to_address, *, amount, fee, locktime=0):
187 """ Return signed transaction spending the first output of the
188 input txid. Note that the node must have a wallet that can
189 sign for the output that is being spent.
190 """
191 raw_tx = create_raw_transaction(node, txid, to_address, amount=amount, fee=fee, locktime=locktime)
192 tx = tx_from_hex(raw_tx)
193 return tx
194
195def create_raw_transaction(node, txid, to_address, *, amount, fee, locktime=0):
196 """ Return raw signed transaction spending the first output of the

Callers 2

run_testMethod · 0.90
run_testMethod · 0.90

Calls 2

create_raw_transactionFunction · 0.70
tx_from_hexFunction · 0.70

Tested by

no test coverage detected