mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-04 20:05:50 +00:00
Update set_global_freeze.py
This commit is contained in:
@@ -9,10 +9,14 @@ client = JsonRpcClient("https://s.altnet.rippletest.net:51234") # Connect to tes
|
||||
# Sender wallet object
|
||||
sender_wallet = generate_faucet_wallet(client)
|
||||
|
||||
print("Successfully generated test wallet")
|
||||
|
||||
# Build accountset transaction to enable global freeze
|
||||
accountset = AccountSet(account=sender_wallet.classic_address,
|
||||
set_flag=AccountSetFlag.ASF_GLOBAL_FREEZE)
|
||||
|
||||
print("Submitting prepared transaction...")
|
||||
|
||||
# Sign and submit transaction
|
||||
stxn = safe_sign_and_autofill_transaction(accountset, sender_wallet, client)
|
||||
stxn_response = send_reliable_submission(stxn, client)
|
||||
|
||||
Reference in New Issue
Block a user