Created
January 1, 2018 15:22
-
-
Save hm0429/2cce37f1ef9b3956d651e2dd9402cec5 to your computer and use it in GitHub Desktop.
Ripple の残高を取得
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
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