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:
@@ -7,7 +7,7 @@ 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
|
# https://xrpl.org/xrp-testnet-faucet.html
|
||||||
from xrpl.wallet import generate_faucet_wallet
|
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
|
# Create an account str from the wallet
|
||||||
test_account = test_wallet.classic_address
|
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
|
from xrpl.models.requests.account_info import AccountInfo
|
||||||
acct_info = AccountInfo(
|
acct_info = AccountInfo(
|
||||||
account=test_account,
|
account=test_account,
|
||||||
ledger_index="current",
|
ledger_index="validated",
|
||||||
queue=True,
|
|
||||||
strict=True,
|
strict=True,
|
||||||
)
|
)
|
||||||
response = client.request(acct_info)
|
response = client.request(acct_info)
|
||||||
|
|||||||
Reference in New Issue
Block a user