Skip to content

Commit 7d1cbc4

Browse files
authored
Merge pull request #119 from peterVG/patch-2
provide examples for adding transaction properties
2 parents 5a922e0 + 16ec42a commit 7d1cbc4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/source/guides/transaction.rst

+7
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,13 @@ Specify output amount::
142142

143143
Step 6
144144

145+
Add additional transaction information as needed:
146+
147+
>>> builder.ttl = 3600
148+
>>> builder.reference_inputs.add(tx_in)
149+
150+
Step 7
151+
145152
Create a signed transaction using transaction builder. Unlike building a raw transaction, where we need to manually
146153
sign a transaction and build a transaction witness set, transaction builder can build and sign a transaction directly
147154
with its `build_and_sign` method. The code below tells the builder to build a transaction and sign the transaction

0 commit comments

Comments
 (0)