Skip to content

Commit

Permalink
Merge pull request #119 from peterVG/patch-2
Browse files Browse the repository at this point in the history
provide examples for adding transaction properties
  • Loading branch information
cffls committed Oct 30, 2022
2 parents 5a922e0 + 16ec42a commit 7d1cbc4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/guides/transaction.rst
Expand Up @@ -142,6 +142,13 @@ Specify output amount::

Step 6

Add additional transaction information as needed:

>>> builder.ttl = 3600
>>> builder.reference_inputs.add(tx_in)

Step 7

Create a signed transaction using transaction builder. Unlike building a raw transaction, where we need to manually
sign a transaction and build a transaction witness set, transaction builder can build and sign a transaction directly
with its `build_and_sign` method. The code below tells the builder to build a transaction and sign the transaction
Expand Down

0 comments on commit 7d1cbc4

Please sign in to comment.