diff --git a/Readme.md b/Readme.md
index 41f58999..85ad2791 100644
--- a/Readme.md
+++ b/Readme.md
@@ -1,5 +1,8 @@
# Etherscan API
+It forked from [etherscan-api 10.0.5](https://github.com/sebs/etherscan-api/tree/v10.0.5)
+The proxy URL and header have been added to avoid CORS.
+
## Development of a NEXTGEN Version has started - please stand by
[](https://www.npmjs.com/package/etherscan-api)
@@ -31,19 +34,25 @@ Supported:
* morden
* ropsten
* rinkeby
+* heco_mainnet
+* heco_testnet
+* bsc_mainnet
+* bsc_testnet
Latest
```javascript
-// apikey, network, timeout
-var api = require('etherscan-api').init('YourApiKey','rinkeby'. '3000');
+// apikey, network, timeout, proxyUrl, headers
+var api = require('etherscan-api').init('YourApiKey','rinkeby'. '3000', 'https://cors-anywhere.herokuapp.com/', {
+ 'x-requested-with': 'me'
+});
```
## Install
```bash
- npm install etherscan-api --save
+ npm install https://github.com/luckyCoco3418/etherscan-api.git
```
diff --git a/dist/bundle.js b/dist/bundle.js
index 062e6482..c1d28602 100644
--- a/dist/bundle.js
+++ b/dist/bundle.js
@@ -94,14 +94,17 @@ module.exports = function(getRequest, apiKey) {
if (!startblock) {
startblock = 0;
}
+ queryObject.startblock = startblock;
if (!endblock) {
endblock = 'latest';
}
+ queryObject.endblock = endblock;
if (!sort) {
sort = 'asc';
}
+ queryObject.sort = sort;
if (txhash) {
queryObject.txhash = txhash;
@@ -174,13 +177,15 @@ module.exports = function(getRequest, apiKey) {
* @param {string} address - Account address
* @param {string} startblock - start looking here
* @param {string} endblock - end looking there
- * @param {string} sort - Sort asc/desc
+ * @param {number} page - Page number
+ * @param {number} offset - Max records to return
+ * @param {string} sort - Sort asc/desc
* @param {string} contractaddress - Address of ERC20 token contract (if not specified lists transfers for all tokens)
* @example
* var txlist = api.account.tokentx('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae', '0x5F988D968cb76c34C87e6924Cc1Ef1dCd4dE75da', 1, 'latest', 'asc');
* @returns {Promise.