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

Method create_tx

test/functional/feature_block.py:1216–1217  ·  view source on GitHub ↗
(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE]))

Source from the content-addressed store, hash-verified

1214
1215 # this is a little handier to use than the version in blocktools.py
1216 def create_tx(self, spend_tx, n, value, script=CScript([OP_TRUE, OP_DROP] * 15 + [OP_TRUE])):
1217 return create_tx_with_script(spend_tx, n, amount=value, script_pub_key=script)
1218
1219 # sign a transaction, using the key we know about
1220 # this signs input 0 in tx, which is assumed to be spending output n 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