diff --git a/content/_code-samples/build-a-wallet/py/5_send_xrp.py b/content/_code-samples/build-a-wallet/py/5_send_xrp.py index 16d5f6374c..ccd4366987 100644 --- a/content/_code-samples/build-a-wallet/py/5_send_xrp.py +++ b/content/_code-samples/build-a-wallet/py/5_send_xrp.py @@ -131,7 +131,7 @@ class XRPLMonitorThread(Thread): # send too many transactions too fast. You can send transactions more # rapidly if you track the sequence number more carefully. tx_signed = await xrpl.asyncio.transaction.autofill_and_sign( - tx, self.wallet, self.client) + tx, self.client, self.wallet) await xrpl.asyncio.transaction.submit(tx_signed, self.client) wx.CallAfter(self.gui.add_pending_tx, tx_signed) diff --git a/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py b/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py index 4262f2f58b..f28981853f 100644 --- a/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py +++ b/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py @@ -185,7 +185,7 @@ class XRPLMonitorThread(Thread): # send too many transactions too fast. You can send transactions more # rapidly if you track the sequence number more carefully. tx_signed = await xrpl.asyncio.transaction.autofill_and_sign( - tx, self.wallet, self.client) + tx, self.client, self.wallet) await xrpl.asyncio.transaction.submit(tx_signed, self.client) wx.CallAfter(self.gui.add_pending_tx, tx_signed) diff --git a/content/_code-samples/build-a-wallet/py/7_owned_objects.py b/content/_code-samples/build-a-wallet/py/7_owned_objects.py index 97f68a2d37..e8a4453fc5 100644 --- a/content/_code-samples/build-a-wallet/py/7_owned_objects.py +++ b/content/_code-samples/build-a-wallet/py/7_owned_objects.py @@ -203,7 +203,7 @@ class XRPLMonitorThread(Thread): # send too many transactions too fast. You can send transactions more # rapidly if you track the sequence number more carefully. tx_signed = await xrpl.asyncio.transaction.autofill_and_sign( - tx, self.wallet, self.client) + tx, self.client, self.wallet) await xrpl.asyncio.transaction.submit(tx_signed, self.client) wx.CallAfter(self.gui.add_pending_tx, tx_signed) diff --git a/content/_code-samples/build-a-wallet/py/8_regular_key.py b/content/_code-samples/build-a-wallet/py/8_regular_key.py index e33ac15526..257cb159ed 100755 --- a/content/_code-samples/build-a-wallet/py/8_regular_key.py +++ b/content/_code-samples/build-a-wallet/py/8_regular_key.py @@ -221,7 +221,7 @@ class XRPLMonitorThread(Thread): # send too many transactions too fast. You can send transactions more # rapidly if you track the sequence number more carefully. tx_signed = await xrpl.asyncio.transaction.autofill_and_sign( - tx, self.wallet, self.client) + tx, self.client, self.wallet) await xrpl.asyncio.transaction.submit(tx_signed, self.client) wx.CallAfter(self.gui.add_pending_tx, tx_signed) diff --git a/content/_code-samples/multisigning/py/multisigning.py b/content/_code-samples/multisigning/py/multisigning.py index 3de7811a28..ba14bc440b 100644 --- a/content/_code-samples/multisigning/py/multisigning.py +++ b/content/_code-samples/multisigning/py/multisigning.py @@ -33,7 +33,7 @@ signer_list_set_tx = SignerListSet( signer_quorum=2, signer_entries=signer_entries, ) -signed_signer_list_set_tx = autofill_and_sign(signer_list_set_tx, master_wallet, client) +signed_signer_list_set_tx = autofill_and_sign(signer_list_set_tx, client, master_wallet) print("Constructed SignerListSet and submitting it to the ledger...") signed_list_set_tx_response = submit_and_wait( diff --git a/content/_code-samples/paths/py/paths.py b/content/_code-samples/paths/py/paths.py index 0fbc84fdf3..f71a5dfac7 100644 --- a/content/_code-samples/paths/py/paths.py +++ b/content/_code-samples/paths/py/paths.py @@ -47,4 +47,4 @@ payment_tx = Payment( paths=paths, ) -print("signed: ", autofill_and_sign(payment_tx, wallet, client)) +print("signed: ", autofill_and_sign(payment_tx, client, wallet)) diff --git a/content/_code-samples/require-destination-tags/py/require-destination-tags.py b/content/_code-samples/require-destination-tags/py/require-destination-tags.py index f66399de45..fac1c816c3 100644 --- a/content/_code-samples/require-destination-tags/py/require-destination-tags.py +++ b/content/_code-samples/require-destination-tags/py/require-destination-tags.py @@ -27,7 +27,7 @@ async def main() -> int: ) # Sign and autofill the transaction (ready to submit) - signed_tx = await autofill_and_sign(tx, wallet, client) + signed_tx = await autofill_and_sign(tx, client, wallet) print("Transaction hash:", signed_tx.get_hash()) # Submit the transaction and wait for response (validated or rejected) diff --git a/content/_code-samples/send-a-memo/py/send-a-memo.py b/content/_code-samples/send-a-memo/py/send-a-memo.py index 9d1dc193d5..adb66fc611 100644 --- a/content/_code-samples/send-a-memo/py/send-a-memo.py +++ b/content/_code-samples/send-a-memo/py/send-a-memo.py @@ -42,7 +42,7 @@ payment_tx = Payment( # Sign the transaction print("Submitting a payment transaction with our memo...") -payment_tx_signed = autofill_and_sign(payment_tx, wallet=test_wallet, client=client) +payment_tx_signed = autofill_and_sign(payment_tx, client=client, wallet=test_wallet) print(f"\n Encoded Transaction MEMO: {payment_tx_signed.memos}") # Send the transaction to the node diff --git a/content/_code-samples/send-xrp/py/send-xrp.py b/content/_code-samples/send-xrp/py/send-xrp.py index 9e75545787..a9786958d5 100644 --- a/content/_code-samples/send-xrp/py/send-xrp.py +++ b/content/_code-samples/send-xrp/py/send-xrp.py @@ -26,7 +26,7 @@ print("Payment object:", my_payment) # Sign transaction ------------------------------------------------------------- signed_tx = xrpl.transaction.autofill_and_sign( - my_payment, test_wallet, client) + my_payment, client, test_wallet) max_ledger = signed_tx.last_ledger_sequence tx_id = signed_tx.get_hash() print("Signed transaction:", signed_tx) diff --git a/content/_code-samples/trade-in-the-decentralized-exchange/py/trade-in-the-dex.py b/content/_code-samples/trade-in-the-decentralized-exchange/py/trade-in-the-dex.py index 076c7b4101..c2d424978f 100644 --- a/content/_code-samples/trade-in-the-decentralized-exchange/py/trade-in-the-dex.py +++ b/content/_code-samples/trade-in-the-decentralized-exchange/py/trade-in-the-dex.py @@ -170,7 +170,7 @@ async def main() -> int: ) # Sign and autofill the transaction (ready to submit) - signed_tx = await autofill_and_sign(tx, wallet, client) + signed_tx = await autofill_and_sign(tx, client, wallet) print("Transaction:", signed_tx) # Submit the transaction and wait for response (validated or rejected) diff --git a/content/_code-samples/use-tickets/py/use-tickets-to-multisign.py b/content/_code-samples/use-tickets/py/use-tickets-to-multisign.py index c78963743d..842f0f8766 100644 --- a/content/_code-samples/use-tickets/py/use-tickets-to-multisign.py +++ b/content/_code-samples/use-tickets/py/use-tickets-to-multisign.py @@ -55,7 +55,7 @@ tx_set_signer_list = SignerListSet( # Sign transaction locally and submit print("Submitting a SignerListSet transaction to update our account to use our new Signers...") -tx_set_signer_list_signed = sign_and_submit(transaction=tx_set_signer_list, wallet=test_wallet, client=client) +tx_set_signer_list_signed = sign_and_submit(transaction=tx_set_signer_list, client=client, wallet=test_wallet) # Construct a TicketCreate transaction, 3 tickets will be created tx_create_ticket = TicketCreate( @@ -65,7 +65,7 @@ tx_create_ticket = TicketCreate( # Sign transaction locally and submit print("Submitting a TicketCreate transaction to get Ticket Sequences for future transactions...") -tx_create_ticket_signed = sign_and_submit(transaction=tx_create_ticket, wallet=test_wallet, client=client) +tx_create_ticket_signed = sign_and_submit(transaction=tx_create_ticket, client=client, wallet=test_wallet) # Get a Ticket Sequence get_ticket_sequence = client.request(AccountObjects( diff --git a/content/_code-samples/use-tickets/py/use-tickets.py b/content/_code-samples/use-tickets/py/use-tickets.py index bc5d045582..e6eab3a539 100644 --- a/content/_code-samples/use-tickets/py/use-tickets.py +++ b/content/_code-samples/use-tickets/py/use-tickets.py @@ -19,7 +19,7 @@ tx = TicketCreate( ) # Sign transaction locally and submit -my_tx_payment_signed = sign_and_submit(transaction=tx, wallet=test_wallet, client=client) +my_tx_payment_signed = sign_and_submit(transaction=tx, client=client, wallet=test_wallet) # Get a Ticket Sequence get_ticket_sequence = AccountObjects(