OSDN Git Service
(root)
/
bytom
/
Bytom-JS-SDK.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b65da3
)
update doc
author
xuhongxin
<xuhongxin@luojilab.com>
Sat, 13 Oct 2018 09:00:45 +0000
(17:00 +0800)
committer
xuhongxin
<xuhongxin@luojilab.com>
Sat, 13 Oct 2018 09:00:45 +0000
(17:00 +0800)
src/sdk/accounts.js
patch
|
blob
|
history
diff --git
a/src/sdk/accounts.js
b/src/sdk/accounts.js
index
31a66b7
..
f870af9
100644
(file)
--- a/
src/sdk/accounts.js
+++ b/
src/sdk/accounts.js
@@
-36,6
+36,14
@@
accountsSDK.prototype.ListAccountUseServer = function() {
return retPromise;
};
+
+/**
+ * List all addresses and the corresponding balances of a wallet.
+ *
+ * @see https://gist.github.com/HAOYUatHZ/0c7446b8f33e7cddd590256b3824b08f#apiv1btmaccountlist-addresses
+ * @param {String} guid
+ * @returns
+ */
accountsSDK.prototype.ListAddressUseServer = function(guid) {
let retPromise = new Promise((resolve, reject) => {
this.http.request('account/list-addresses', {guid:guid}).then(resp => {