Skip to content

Instantly share code, notes, and snippets.

@hm0429
Created January 1, 2018 15:22
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 hm0429/2cce37f1ef9b3956d651e2dd9402cec5 to your computer and use it in GitHub Desktop.
Save hm0429/2cce37f1ef9b3956d651e2dd9402cec5 to your computer and use it in GitHub Desktop.
Ripple の残高を取得
var api = new ripple.RippleAPI({server:'wss://s1.ripple.com/'});
api.connect().then(function() {
return api.getAccountInfo("r39wDgtwjJkF5NAnXQhy3Z68dDboGebNJv");
}).then(function(account_info) {
console.log(account_info.xrpBalance);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment