Jump to content

Report XRP Trust-line Balance using NodeJS


Recommended Posts

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"






Edited by GreenGrass
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...