Skip to content
Permalink
Browse files

Add additional getBalance methods

  • Loading branch information...
pxgamer committed Nov 5, 2018
1 parent 162bd37 commit 1afd3958ee2ee9a939acac1fbcd807fd50232e0f
Showing with 28 additions and 0 deletions.
  1. +28 −0 src/Arionum.js
@@ -57,6 +57,34 @@ class Arionum {
})
}

/**
* Retrieve the balance of a specified alias.
*
* @param {string} alias
* @return Promise
*/
getBalanceByAlias (alias) {
return this
.getJson({
q: 'getBalance',
alias: alias
})
}

/**
* Retrieve the balance of a specified public key.
*
* @param {string} publicKey
* @return Promise
*/
getBalanceByPublicKey (publicKey) {
return this
.getJson({
q: 'getBalance',
public_key: publicKey
})
}

/**
* Retrieve the pending balance of a specified address (includes pending transactions).
*

0 comments on commit 1afd395

Please sign in to comment.
You can’t perform that action at this time.