mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-21 04:05:49 +00:00
xrpl-py-tutorial: Fix account_info invalid params, add faucet debug
This commit is contained in:
@@ -4,10 +4,10 @@ JSON_RPC_URL = "https://s.altnet.rippletest.net:51234/"
|
||||
client = JsonRpcClient(JSON_RPC_URL)
|
||||
|
||||
|
||||
# Create a wallet using the testnet faucet:
|
||||
# Create a wallet using the testnet faucet:
|
||||
# https://xrpl.org/xrp-testnet-faucet.html
|
||||
from xrpl.wallet import generate_faucet_wallet
|
||||
test_wallet = generate_faucet_wallet(client)
|
||||
test_wallet = generate_faucet_wallet(client, debug=True)
|
||||
|
||||
# Create an account str from the wallet
|
||||
test_account = test_wallet.classic_address
|
||||
@@ -24,8 +24,7 @@ print("X-address:\n\n", test_xaddress)
|
||||
from xrpl.models.requests.account_info import AccountInfo
|
||||
acct_info = AccountInfo(
|
||||
account=test_account,
|
||||
ledger_index="current",
|
||||
queue=True,
|
||||
ledger_index="validated",
|
||||
strict=True,
|
||||
)
|
||||
response = client.request(acct_info)
|
||||
|
||||
Reference in New Issue
Block a user