mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
send_reliable_submission -> submit_and_wait
This commit is contained in:
@@ -3,7 +3,7 @@ from xrpl.account import get_balance
|
||||
from xrpl.clients import JsonRpcClient
|
||||
from xrpl.models.requests import Tx
|
||||
from xrpl.models.transactions import Payment
|
||||
from xrpl.transaction import autofill_and_sign, send_reliable_submission
|
||||
from xrpl.transaction import submit_and_wait
|
||||
from xrpl.wallet import generate_faucet_wallet
|
||||
|
||||
# References:
|
||||
@@ -30,11 +30,8 @@ payment_tx = Payment(
|
||||
destination=wallet2.classic_address,
|
||||
)
|
||||
|
||||
# Sign and autofill the transaction (prepares it to be ready to submit)
|
||||
signed_payment_tx = autofill_and_sign(payment_tx, wallet1, client)
|
||||
|
||||
# Submits transaction and waits for response (validated or rejected)
|
||||
payment_response = send_reliable_submission(signed_payment_tx, client)
|
||||
# Autofill, sign, and submit the transaction
|
||||
payment_response = submit_and_wait(payment_tx, client, wallet1)
|
||||
print("Transaction was submitted")
|
||||
|
||||
# Create a Transaction request to see transaction
|
||||
|
||||
Reference in New Issue
Block a user