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

Function txToHex

test/bitcoin_functional/functional/feature_rbf.py:16–17  ·  view source on GitHub ↗
(tx)

Source from the content-addressed store, hash-verified

14MAX_REPLACEMENT_LIMIT = 100
15
16def txToHex(tx):
17 return bytes_to_hex_str(tx.serialize())
18
19def make_utxo(node, amount, confirmed=True, scriptPubKey=CScript([1])):
20 """Create a txout with a given amount and scriptPubKey

Callers 11

make_utxoFunction · 0.85
branchMethod · 0.85
test_doublespend_treeMethod · 0.85
test_opt_inMethod · 0.85

Calls 2

bytes_to_hex_strFunction · 0.90
serializeMethod · 0.45