mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-24 21:55:52 +00:00
send_reliable_submission -> submit_and_wait
This commit is contained in:
@@ -32,18 +32,10 @@ my_tx_payment = Payment(
|
||||
# print prepared payment
|
||||
print(my_tx_payment)
|
||||
|
||||
# Sign the transaction
|
||||
from xrpl.transaction import safe_sign_and_autofill_transaction
|
||||
# Sign and submit the transaction
|
||||
from xrpl.transaction import submit_and_wait
|
||||
|
||||
my_tx_payment_signed = safe_sign_and_autofill_transaction(my_tx_payment, test_wallet, client)
|
||||
|
||||
# Print signed tx
|
||||
print("Signed tx:", my_tx_payment_signed)
|
||||
|
||||
# Submit and send the transaction
|
||||
from xrpl.transaction import send_reliable_submission
|
||||
|
||||
tx_response = send_reliable_submission(my_tx_payment_signed, client)
|
||||
tx_response = submit_and_wait(my_tx_payment, client, test_wallet)
|
||||
|
||||
# Print tx response
|
||||
print("Tx response:", tx_response)
|
||||
|
||||
Reference in New Issue
Block a user