Closed ajohnson1031 closed 2 years ago
The account has technically not been created yet - it needs to be funded with some XRP (see https://xrpl.org/accounts.html#creating-accounts). There are some XRP faucets on the testnet that you can use, and a function in ripple-lib v1.10.0 that calls the faucets (api.generateFaucetWallet
).
generateXAddress
does create a keypair and address, but these are local to your machine. No one else knows about the address/account until it is created on the ledger by receiving a payment of at least the account reserve. getAccountInfo
retrieves information from the global ledger, so it will only return account details for addresses that have been created (funded).
Thanks @mvadari and @intelliot. This is very helpful information. Reading up on the topic now.
Going to assume that this has been resolved. If it hasn't, please reopen the issue.
Hi,
I'm attempting to generate an xAddress and then immediately grab the accountInfo for it like so:
However it returns an account not found error:
Is this expected behaviour for the testnet and will it be resolved in production, or is my expectation flawed, specifically, that I should be able to grab the details of the account upon creation.
Many thanks for any advice.