Created
January 18, 2023 03:58
-
-
Save shortthefomo/f075d55e079fe8a522eeac7635691718 to your computer and use it in GitHub Desktop.
Get account info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { XrplClient } from "xrpl-client" | |
const client = new XrplClient("wss://xrplcluster.com") // add node ws here you want to connect to | |
const res = await client.send({ | |
"id": 2, | |
"command": "account_info", | |
"account": "rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn", | |
"strict": true, | |
"ledger_index": "current", | |
"queue": true | |
}) | |
console.log("result", result) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment