@zilliqa-js/blockchain
Advanced tools
Comparing version 0.2.1-next.20181113 to 0.2.1-next.20181114
@@ -184,3 +184,12 @@ import { Transaction, Wallet } from '@zilliqa-js/account'; | ||
getNumTxnsDSEpoch(epoch: number): Promise<any>; | ||
/** | ||
* getBalance | ||
* | ||
* Gets the balance of an account by address | ||
* | ||
* @param {string} address | ||
* @returns {Promise<RPCResponse<any, string>>} | ||
*/ | ||
getBalance(address: string): Promise<RPCResponse<any, string>>; | ||
} | ||
//# sourceMappingURL=chain.d.ts.map |
@@ -269,2 +269,13 @@ "use strict"; | ||
}; | ||
/** | ||
* getBalance | ||
* | ||
* Gets the balance of an account by address | ||
* | ||
* @param {string} address | ||
* @returns {Promise<RPCResponse<any, string>>} | ||
*/ | ||
Blockchain.prototype.getBalance = function (address) { | ||
return this.provider.send("GetBalance" /* GetBalance */, address); | ||
}; | ||
tslib_1.__decorate([ | ||
@@ -271,0 +282,0 @@ core_1.sign, |
{ | ||
"name": "@zilliqa-js/blockchain", | ||
"version": "0.2.1-next.20181113", | ||
"version": "0.2.1-next.20181114", | ||
"description": "Class(es) for interacting with the Zilliqa blockchain.", | ||
@@ -22,7 +22,7 @@ "main": "dist/index.umd.js", | ||
"dependencies": { | ||
"@zilliqa-js/account": "0.2.1-next.20181113", | ||
"@zilliqa-js/core": "0.2.1-next.20181113", | ||
"@zilliqa-js/account": "0.2.1-next.20181114", | ||
"@zilliqa-js/core": "0.2.1-next.20181114", | ||
"bn.js": "^4.11.8" | ||
}, | ||
"gitHead": "4c540e6820c698163fef0eafc7a9f98a097792f9" | ||
"gitHead": "f634257991c5857968320ee9f674e011dbe99232" | ||
} |
@@ -292,2 +292,14 @@ import { Transaction, Wallet, util } from '@zilliqa-js/account'; | ||
} | ||
/** | ||
* getBalance | ||
* | ||
* Gets the balance of an account by address | ||
* | ||
* @param {string} address | ||
* @returns {Promise<RPCResponse<any, string>>} | ||
*/ | ||
getBalance(address: string): Promise<RPCResponse<any, string>> { | ||
return this.provider.send(RPCMethod.GetBalance, address); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
810318
49
9002
+ Added@zilliqa-js/account@0.2.1-next.20181114(transitive)
+ Added@zilliqa-js/core@0.2.1-next.20181114(transitive)
+ Added@zilliqa-js/crypto@0.2.1-next.20181114(transitive)
+ Added@zilliqa-js/util@0.2.1-next.20181114(transitive)
- Removed@zilliqa-js/account@0.2.1-next.20181113(transitive)
- Removed@zilliqa-js/core@0.2.1-next.20181113(transitive)
- Removed@zilliqa-js/crypto@0.2.1-next.20181113(transitive)
- Removed@zilliqa-js/util@0.2.1-next.20181113(transitive)