Get account info
account_info
command can be used to get account information (AccountRoot
object).
This command allows you to get account balances, account settings, and the number of objects on which the account's reserves are based.
Loading...
Result:
Example
const { Client } = require('xrpl')
const client = new Client('wss://testnet.xrpl-labs.com')
client.connect().then(() => {
client
.request({
command: 'account_info',
account: 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59',
validated: true,
})
.then((response) => {
console.log(response)
})
})