MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / create_tx

Method create_tx

test/functional/feature_block.py:1338–1341  ·  view source on GitHub ↗
(self, spend_tx, n, value, output_script=None)

Source from the content-addressed store, hash-verified

1336
1337 # this is a little handier to use than the version in blocktools.py
1338 def create_tx(self, spend_tx, n, value, output_script=None):
1339 if output_script is None:
1340 output_script = CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE])
1341 return create_tx_with_script(spend_tx, n, amount=value, output_script=output_script)
1342
1343 # sign a transaction, using the key we know about
1344 # this signs input 0 in tx, which is assumed to be spending output 0 in spend_tx

Callers 3

run_testMethod · 0.95
next_blockMethod · 0.95

Calls 2

CScriptClass · 0.90
create_tx_with_scriptFunction · 0.90

Tested by

no test coverage detected