GreenGrass Posted December 3, 2021 Share Posted December 3, 2021 (edited) Hey guys! I've been working on interacting with the XRPL through NodeJS (figured its time to utilise the tech and not just invest in it). I've made some strides and managed to solve most queries, however I have one more if anyone can provide some help I would appreciate it! I'm looking to report specific trust-line balances. So far I can get it to report all balances (see code below), but am having issues reporting single balances. Ideally I would like to have the code to report the balance of a specific trust-line, so I can then place an order for the full amount (got the second part sorted). Heres the code that reports all balances, Cheers for the help! const wallet_balances = await client.request({ command: "account_lines", account: 'accountaddress', ledger_index: "validated" }) console.log(wallet_balances.result) Edited December 3, 2021 by GreenGrass Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now