diff --git a/content/_code-samples/build-a-wallet/py/3_account.py b/content/_code-samples/build-a-wallet/py/3_account.py index 875cbacbe2..ae5a6e0935 100644 --- a/content/_code-samples/build-a-wallet/py/3_account.py +++ b/content/_code-samples/build-a-wallet/py/3_account.py @@ -233,7 +233,7 @@ class TWaXLFrame(wx.Frame): try: # Check if it's a valid seed seed_bytes, alg = xrpl.core.addresscodec.decode_seed(value) - wallet = xrpl.wallet.Wallet(seed=value, sequence=0) + wallet = xrpl.wallet.Wallet.from_seed(seed=value) x_address = wallet.get_xaddress(is_test=self.test_network) classic_address = wallet.classic_address except Exception as e: diff --git a/content/_code-samples/build-a-wallet/py/4_tx_history.py b/content/_code-samples/build-a-wallet/py/4_tx_history.py index 1e80e65da6..a8e4bcc7e2 100644 --- a/content/_code-samples/build-a-wallet/py/4_tx_history.py +++ b/content/_code-samples/build-a-wallet/py/4_tx_history.py @@ -264,7 +264,7 @@ class TWaXLFrame(wx.Frame): try: # Check if it's a valid seed seed_bytes, alg = xrpl.core.addresscodec.decode_seed(value) - wallet = xrpl.wallet.Wallet(seed=value, sequence=0) + wallet = xrpl.wallet.Wallet.from_seed(seed=value) x_address = wallet.get_xaddress(is_test=self.test_network) classic_address = wallet.classic_address except Exception as e: diff --git a/content/_code-samples/build-a-wallet/py/5_send_xrp.py b/content/_code-samples/build-a-wallet/py/5_send_xrp.py index 5b510b08cc..91259008b6 100644 --- a/content/_code-samples/build-a-wallet/py/5_send_xrp.py +++ b/content/_code-samples/build-a-wallet/py/5_send_xrp.py @@ -380,7 +380,7 @@ class TWaXLFrame(wx.Frame): try: # Check if it's a valid seed seed_bytes, alg = xrpl.core.addresscodec.decode_seed(value) - wallet = xrpl.wallet.Wallet(seed=value, sequence=0) + wallet = xrpl.wallet.Wallet.from_seed(seed=value) x_address = wallet.get_xaddress(is_test=self.test_network) classic_address = wallet.classic_address except Exception as e: diff --git a/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py b/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py index bff66401b2..9d336e94c9 100644 --- a/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py +++ b/content/_code-samples/build-a-wallet/py/6_verification_and_polish.py @@ -541,7 +541,7 @@ class TWaXLFrame(wx.Frame): try: # Check if it's a valid seed seed_bytes, alg = xrpl.core.addresscodec.decode_seed(value) - wallet = xrpl.wallet.Wallet(seed=value, sequence=0) + wallet = xrpl.wallet.Wallet.from_seed(seed=value) x_address = wallet.get_xaddress(is_test=self.test_network) classic_address = wallet.classic_address except Exception as e: diff --git a/content/_code-samples/build-a-wallet/py/7_owned_objects.py b/content/_code-samples/build-a-wallet/py/7_owned_objects.py index 1dfd32e6e4..e892f4f88d 100644 --- a/content/_code-samples/build-a-wallet/py/7_owned_objects.py +++ b/content/_code-samples/build-a-wallet/py/7_owned_objects.py @@ -588,7 +588,7 @@ class TWaXLFrame(wx.Frame): try: # Check if it's a valid seed seed_bytes, alg = xrpl.core.addresscodec.decode_seed(value) - wallet = xrpl.wallet.Wallet(seed=value, sequence=0) + wallet = xrpl.wallet.Wallet.from_seed(seed=value) x_address = wallet.get_xaddress(is_test=self.test_network) classic_address = wallet.classic_address except Exception as e: diff --git a/content/_code-samples/build-a-wallet/py/8_regular_key.py b/content/_code-samples/build-a-wallet/py/8_regular_key.py index 7234efc194..c23048620b 100755 --- a/content/_code-samples/build-a-wallet/py/8_regular_key.py +++ b/content/_code-samples/build-a-wallet/py/8_regular_key.py @@ -638,7 +638,7 @@ class TWaXLFrame(wx.Frame): try: # Check if it's a valid seed seed_bytes, alg = xrpl.core.addresscodec.decode_seed(value) - wallet = xrpl.wallet.Wallet(seed=value, sequence=0) + wallet = xrpl.wallet.Wallet.from_seed(seed=value) x_address = wallet.get_xaddress(is_test=self.test_network) classic_address = wallet.classic_address except Exception as e: diff --git a/content/_code-samples/non-fungible-token/py/authorize-minter.py b/content/_code-samples/non-fungible-token/py/authorize-minter.py index 8188029cb8..5e0ec30f56 100644 --- a/content/_code-samples/non-fungible-token/py/authorize-minter.py +++ b/content/_code-samples/non-fungible-token/py/authorize-minter.py @@ -14,7 +14,7 @@ seed = "" custom_wallet = None if seed: - custom_wallet = Wallet(seed=seed, sequence=0) + custom_wallet = Wallet.from_seed(seed=seed) # Connect to a testnet node print("Connecting to Testnet...") diff --git a/content/_code-samples/non-fungible-token/py/burn-nft.py b/content/_code-samples/non-fungible-token/py/burn-nft.py index 4f3f25c2f6..4284f95410 100644 --- a/content/_code-samples/non-fungible-token/py/burn-nft.py +++ b/content/_code-samples/non-fungible-token/py/burn-nft.py @@ -22,7 +22,7 @@ else: client = JsonRpcClient(JSON_RPC_URL) # Initialize wallet from seed - issuer_wallet = Wallet(seed=seed, sequence=0) + issuer_wallet = Wallet.from_seed(seed=seed) issuerAddr = issuer_wallet.classic_address print(f"\nIssuer Account: {issuerAddr}") diff --git a/content/_code-samples/non-fungible-token/py/cancel-offer-nft.py b/content/_code-samples/non-fungible-token/py/cancel-offer-nft.py index d8609bb83a..804233d939 100644 --- a/content/_code-samples/non-fungible-token/py/cancel-offer-nft.py +++ b/content/_code-samples/non-fungible-token/py/cancel-offer-nft.py @@ -22,7 +22,7 @@ else: client = JsonRpcClient(JSON_RPC_URL) # Initialize wallet from seed - wallet = Wallet(seed=seed, sequence=0) + wallet = Wallet.from_seed(seed=seed) Addr = wallet.classic_address print(f"\n Account: {Addr}") diff --git a/content/_code-samples/non-fungible-token/py/create-buy-offer-nft.py b/content/_code-samples/non-fungible-token/py/create-buy-offer-nft.py index ada57f1d57..a5b9f22ef8 100644 --- a/content/_code-samples/non-fungible-token/py/create-buy-offer-nft.py +++ b/content/_code-samples/non-fungible-token/py/create-buy-offer-nft.py @@ -24,7 +24,7 @@ else: client = JsonRpcClient(JSON_RPC_URL) # Initialize wallet from seed - issuer_wallet = Wallet(seed=seed, sequence=0) + issuer_wallet = Wallet.from_seed(seed=seed) issuerAddr = issuer_wallet.classic_address # Get buyer account credentials from the testnet faucet diff --git a/content/_code-samples/non-fungible-token/py/create-sell-offer-nft.py b/content/_code-samples/non-fungible-token/py/create-sell-offer-nft.py index acbc98325d..568b40b79e 100644 --- a/content/_code-samples/non-fungible-token/py/create-sell-offer-nft.py +++ b/content/_code-samples/non-fungible-token/py/create-sell-offer-nft.py @@ -23,7 +23,7 @@ else: client = JsonRpcClient(JSON_RPC_URL) # Initialize wallet from seed - issuer_wallet = Wallet(seed=seed, sequence=0) + issuer_wallet = Wallet.from_seed(seed=seed) issuerAddr = issuer_wallet.classic_address print(f"\nIssuer Account: {issuerAddr}") diff --git a/content/_code-samples/non-fungible-token/py/mint-nft.py b/content/_code-samples/non-fungible-token/py/mint-nft.py index 8d396a7e3b..67db46d198 100644 --- a/content/_code-samples/non-fungible-token/py/mint-nft.py +++ b/content/_code-samples/non-fungible-token/py/mint-nft.py @@ -24,7 +24,7 @@ if seed == "": issuer_wallet = generate_faucet_wallet(client=client) issuerAddr = issuer_wallet.classic_address else: - issuer_wallet = Wallet(seed=seed, sequence=0) + issuer_wallet = Wallet.from_seed(seed=seed) issuerAddr = issuer_wallet.classic_address print(f"\nIssuer Account: {issuerAddr}") diff --git a/content/_code-samples/send-xrp/py/send-xrp.py b/content/_code-samples/send-xrp/py/send-xrp.py index 64c02b1da6..13ee43730d 100644 --- a/content/_code-samples/send-xrp/py/send-xrp.py +++ b/content/_code-samples/send-xrp/py/send-xrp.py @@ -1,6 +1,6 @@ # Example Credentials ---------------------------------------------------------- from xrpl.wallet import Wallet -test_wallet = Wallet(seed="sn3nxiW7v8KXzPzAqzyHXbSSKNuN9", sequence=16237283) +test_wallet = Wallet.from_seed(seed="sn3nxiW7v8KXzPzAqzyHXbSSKNuN9") print(test_wallet.classic_address) # "rMCcNuTcajgw7YTgBy1sys3b89QqjUrMpH" # Connect ----------------------------------------------------------------------