Skip to content

Instantly share code, notes, and snippets.

@toschdev
Last active June 4, 2020 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save toschdev/bf3289fd3f800b1eb7d842537d79eb9e to your computer and use it in GitHub Desktop.
Save toschdev/bf3289fd3f800b1eb7d842537d79eb9e to your computer and use it in GitHub Desktop.
getAccount ardor npm
const loader = require("ardor");
loader.init({
url: "http://localhost:27876",
chain: 2,
secretPhrase: "hope peace happen touch easy pretend worthless talk them indeed wheel state",
isTestNet: false
});
loader.load(async function(NRS) {
const data = {
account: "ARDOR-3GV8-8347-UD38-FNU2U",
};
NRS.sendRequest("getAccount", data, function (response, account, data) {
console.log(response);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment