Skip to content
This repository was archived by the owner on Dec 26, 2024. It is now read-only.

Commit 94c1ec1

Browse files
author
luckyCoco3418
committed
MATIC added
1 parent 9162781 commit 94c1ec1

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

Readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Supported:
3838
* heco_testnet
3939
* bsc_mainnet
4040
* bsc_testnet
41+
* matic_mainnet
42+
* matic_mumbai
4143

4244
Latest
4345

dist/bundle.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,8 @@ const TESTNET_API_URL_MAP = {
300300
heco_testnet: 'https://api-testnet.hecoinfo.com',
301301
bsc_mainnet: 'https://api.bscscan.com',
302302
bsc_testnet: 'https://api-testnet.bscscan.com',
303+
matic_mainnet: 'https://api.polygonscan.com',
304+
matic_mumbai: 'https://api-testnet.polygonscan.com',
303305
};
304306

305307
module.exports = function(chain, timeout, proxyUrl, headers) {

lib/get-request.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ const TESTNET_API_URL_MAP = {
2323
heco_testnet: 'https://api-testnet.hecoinfo.com',
2424
bsc_mainnet: 'https://api.bscscan.com',
2525
bsc_testnet: 'https://api-testnet.bscscan.com',
26+
matic_mainnet: 'https://api.polygonscan.com',
27+
matic_mumbai: 'https://api-testnet.polygonscan.com',
2628
};
2729

2830
module.exports = function(chain, timeout, proxyUrl, headers) {

package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "etherscan-api-e",
3-
"version": "10.0.6",
3+
"version": "10.0.6-e1",
44
"description": "API to etherscan with a simple interface",
55
"main": "index.js",
66
"scripts": {
@@ -23,11 +23,8 @@
2323
"transaction",
2424
"rest"
2525
],
26-
"repository": {
27-
"type": "git",
28-
"url": "git+https://github.com/luckyCoco3418/etherscan-api.git"
29-
},
3026
"author": "luckycoco3418",
27+
"repository": "https://github.com/luckyCoco3418/etherscan-api.git",
3128
"license": "ISC",
3229
"devDependencies": {
3330
"browserify": "^16.5.0",

0 commit comments

Comments
 (0)