mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 19:55:54 +00:00
Update return_escrow_sequence.py
This commit is contained in:
@@ -3,8 +3,11 @@ from xrpl.models import Tx
|
|||||||
|
|
||||||
client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # Connect to the testnetwork
|
client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # Connect to the testnetwork
|
||||||
|
|
||||||
prev_txn_id = ""
|
|
||||||
|
prev_txn_id = "" # should look like this '84503EA84ADC4A65530C6CC91C904FCEE64CFE2BB973C023476184288698991F'
|
||||||
# Return escrow seq from `PreviousTxnID` for finishing or cancelling escrows
|
# Return escrow seq from `PreviousTxnID` for finishing or cancelling escrows
|
||||||
|
if prev_txn_id == "":
|
||||||
|
print("No transaction id provided. Use create_escrow.py to generate an escrow transaction, then you can look it up by modifying prev_txn_id to use that transaction's id.")
|
||||||
|
|
||||||
# Build and send query for PreviousTxnID
|
# Build and send query for PreviousTxnID
|
||||||
req = Tx(transaction=prev_txn_id)
|
req = Tx(transaction=prev_txn_id)
|
||||||
|
|||||||
Reference in New Issue
Block a user