mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-20 03:35:51 +00:00
Update enable_no_freeze.py
This commit is contained in:
@@ -10,15 +10,20 @@ client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # connect to tes
|
||||
# generate wallet
|
||||
sender_wallet = generate_faucet_wallet(client=client)
|
||||
|
||||
print("Successfully generated test wallet")
|
||||
|
||||
# build accountset transaction to disable freezing
|
||||
accountset = AccountSet(account=sender_wallet.classic_address, set_flag=AccountSetFlag.ASF_NO_FREEZE)
|
||||
|
||||
# sign transaction
|
||||
stxn = safe_sign_and_autofill_transaction(accountset, sender_wallet, client)
|
||||
|
||||
print("Now sending an AccountSet transaction to set the ASF_NO_FREEZE flag...")
|
||||
|
||||
# submit transaction and wait for result
|
||||
stxn_response = send_reliable_submission(stxn, client)
|
||||
|
||||
|
||||
# parse response for result
|
||||
stxn_result = stxn_response.result
|
||||
|
||||
|
||||
Reference in New Issue
Block a user