Skip to content

Commit cc42df9

Browse files
committed
Updates examples
1 parent 332d519 commit cc42df9

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

examples/advanced_raw_tx_creation.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@
1616
# - Then the fees will be set.
1717
# - Once all the data is defined, we will be ready to build the transaction. We can use the input/output constructor to
1818
# do so.
19-
# - Finally, we should sign the transaction using all m-out of-n required private keys. Notice that the order of the in
20-
# which the keys are provided must match with the order in which the public keys where defined in the previous tx output
19+
# - Finally, we should sign the transaction using all m-out of-n required private keys. Notice that the order in which
20+
# the keys are provided must match with the order in which the public keys where defined in the previous tx output
2121
# script.
2222
# - Finally we wil serialize the transaction and display it to check that all worked!
2323
# ---------------------------------------------------------------------------------------------------------------------
2424

2525
# Loads the UTXO data from a json file. You can create your own file based on the provided example with UTXOs from keys
26-
# own. It won't work if you don't update it.
26+
# you own. It won't work if you don't update it.
2727
utxo = load(open('example_utxos/P2MS_utxo.json', 'r'))
2828

2929
# Get the previous transaction id and index, as well as the source bitcoin address.

examples/basic_raw_tx_creation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# - You should change prev_tx_id, prev_out_index and value for the ones who match with an unspent transaction output
2525
# from your recently generated address.
2626
# - Choose a fee big enough to pay for the transaction inclusion into a block. You can use https://bitcoinfees.21.co/ to
27-
# figure out the current fee-per-byte ratio.
27+
# figure out the current fee-per-byte rate.
2828
# - Choose the transaction destination address.
2929
# - Build the transaction using the basic constructor.
3030
# - Sign and broadcast the transaction.

examples/key_management.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Key management and Bitcoin address generation #
66
#################################################
77
# ---------------------------------------------------------------------------------------------------------------------
8-
# The following piece of code generates fresh keys and Bitcoin address.
8+
# The following piece of code generates a fresh pair of keys and a Bitcoin address.
99
# - Both mainnet and testnet addresses can be generated. Tesnet are generated by default.
1010
# - Keys are stored in the folder defined in conf.py.
1111
# - WIF can be stored as a qr image or text. Image is set by default.

examples/tx_analysis.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
#################################################
66

77
# ---------------------------------------------------------------------------------------------------------------------
8-
# The following piece of code parses a serialized transaction (hex encoded) transaction and displays all the information
9-
# related to it.
8+
# The following piece of code parses a serialized transaction (hex encoded) and displays all the information related
9+
# to it.
1010
# - Leftmost displayed transaction shows data as should be interpreted (human-readable), while rightmost
1111
# (surrounded by parenthesis) shows it as it is in the serialize transaction (can be used to identify it inside the
1212
# transaction)
13-
# - You should change the hex_tx for the one you'd like to deserialize. Serialized transaction can be obtain though
14-
# block explorers such as blockchyper or blockr.io, or by building a transaction using some of the library tools.
13+
# - You should change the hex_tx for the one you'd like to deserialize. Serialized transaction can be obtain from block
14+
# explorers such as blockcypher.com or blockchain.info, or by building a transaction using some of the library tools.
1515
# ---------------------------------------------------------------------------------------------------------------------
1616

1717
# First a transaction object is created (through the deserialize constructor) by deserializing the hex transaction we

0 commit comments

Comments
 (0)