{"_id":"@0xkyng/etherscan-api","name":"@0xkyng/etherscan-api","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@0xkyng/etherscan-api","version":"0.0.1","description":"API to etherscan with a simple interface","main":"index.js","scripts":{"test":"mocha -t 20000","posttest":"npm run lint","lint":"jshint lib test","docs":"npx documentation build ./lib/init.js -f html -o out","preversion":"npm run lint && npm run changelog","postversion":"git push && git push --tags","changelog":"rm ./docs/CHANGELOG.md && npx changelog https://github.com/sebs/etherscan-api all > ./docs/CHANGELOG.md && git add ./docs/CHANGELOG.md && git commit ./docs/CHANGELOG.md -m changelog","build":"npm run test && npm run docs"},"keywords":["arbiscan","ethereum","EtherScan.io","etherscan","blockchain","api","transaction","rest"],"repository":{"type":"git","url":"git+https://github.com/sebs/etherscan-api.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/sebs/etherscan-api/issues"},"homepage":"https://github.com/sebs/etherscan-api#readme","devDependencies":{"chai":"4.3.7","jshint":"2.13.6","mocha":"10.2.0","watch":"1.0.2"},"dependencies":{"axios":"1.2.2","gh-pages":"5.0.0","querystring":"0.2.1"},"gitHead":"9388740c32b19997a8570596120029d187d62ae9","_id":"@0xkyng/etherscan-api@0.0.1","_nodeVersion":"18.17.0","_npmVersion":"9.6.7","dist":{"integrity":"sha512-+yfRgPMQow3WsxjzXRdVFr8QhCWC1m0WLJvcj8r0bmvZwE1pHnST8zy3HhC8Q4mfRkpZ5vky8oVY938EHardJw==","shasum":"53bb7b11f0194e2432dc7f75713062af8afdde10","tarball":"https://registry.npmjs.org/@0xkyng/etherscan-api/-/etherscan-api-0.0.1.tgz","fileCount":15,"unpackedSize":31335,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEyqn2NVwx3HJBAjrE7E2wEbUQoEZG8tAX5TyOAKAuBkAiEAzI56m2Oz6xn6RbI/iz5w4NpLPRhyjzTdbuiOX/tWTyE="}]},"_npmUser":{"name":"blocklyn","email":"all-degen@hotmail.com"},"directories":{},"maintainers":[{"name":"blocklyn","email":"all-degen@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/etherscan-api_0.0.1_1710016189828_0.7482432373692383"},"_hasShrinkwrap":false}},"time":{"created":"2024-03-09T20:29:49.748Z","0.0.1":"2024-03-09T20:29:49.984Z","modified":"2024-03-09T20:29:50.728Z"},"maintainers":[{"name":"blocklyn","email":"all-degen@hotmail.com"}],"description":"API to etherscan with a simple interface","homepage":"https://github.com/sebs/etherscan-api#readme","keywords":["arbiscan","ethereum","EtherScan.io","etherscan","blockchain","api","transaction","rest"],"repository":{"type":"git","url":"git+https://github.com/sebs/etherscan-api.git"},"bugs":{"url":"https://github.com/sebs/etherscan-api/issues"},"license":"ISC","readme":"# Etherscan API\n\n## Development of a NEXTGEN Version has started - please stand by\n\n[![npm](https://img.shields.io/npm/dt/etherscan-api.svg)](https://www.npmjs.com/package/etherscan-api)\n[![license](https://img.shields.io/github/license/sebs/etherscan-api.svg)](https://github.com/sebs/etherscan-api/blob/master/LICENSE.md)\n[![GitHub tag](https://img.shields.io/github/tag/sebs/etherscan-api.svg)](https://github.com/sebs/etherscan-api)\n[![GitHub issues](https://img.shields.io/github/issues/sebs/etherscan-api.svg)](https://github.com/sebs/etherscan-api/issues)\n\nA way to access the [etherscan.io api](https://etherscan.io/apis) using promises. Fetch a diverse set of information about the blockchain.\n\nMainnet\n\n\n```javascript\nvar api = require('etherscan-api').init('YourApiKey');\nvar balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');\nbalance.then(function(balanceData){\n  console.log(balanceData);\n});\n```\n\n## Example in the wild\n\n* [Polymer3 based example](https://github.com/hiherto-elements/test-app)\n\n\n## use a own instance of axios\n\n```js\nconst axios = require('axios');\nconst {\n  init,\n  pickChainUrl\n} = require('..');\n\n\nconst chain = pickChainUrl(null);\nconst client = axios.create({\n  baseURL: chain,\n  timeout: 10000\n});\n\nvar api = init('apikey', null, 10000, client);\n```\n\n## For testnet and L2s usage\n\nSupported Chain Explorers\n\n* [Etherscan](https://etherscan.io)\n  * ropsten: 'https://api-ropsten.etherscan.io'\n  * kovan: 'https://api-kovan.etherscan.io'\n  * rinkeby: 'https://api-rinkeby.etherscan.io'\n  * goerli: 'https://api-goerli.etherscan.io'\n  * sepolia: 'https://api-sepolia.etherscan.io'\n  * homestead: 'https://api.etherscan.io'\n* [Arbiscan](https://arbiscan.io) (Experimental)\n  * arbitrum: 'https://api.arbiscan.io'\n  * arbitrum_rinkeby: 'https://api-testnet.arbiscan.io'\n* [Snowtrace](https://snowtrace.io) (Experimental)\n  * avalanche:'https://api.snowtrace.io',\n  * avalanche_fuji: 'https://api-testnet.snowtrace.io'\n\nLatest\n\n```javascript\n// apikey, network, timeout\nvar api = require('etherscan-api').init('YourApiKey','rinkeby'. '3000');\n```\n\n## Install\n\n ```bash\n npm install etherscan-api --save\n ```\n\n\n## API Documentation\n\n[Full Api Docs](https://sebs.github.io/etherscan-api/)\n\n\n## Development workflow\n\n* npm test  - runs tests\n  * npm run posttest - starts the linter\n* npm run lint - preconfigured linter\n* npm run docs - generates the apidocs\n* npm run bundle - builds a new bundle\n* npm run preversion - Steps before we create a new Tag\n  * lint\n  * changelog\n* npm run pages - pushes generated apidocs to the server\n* postversion - after generating a new version, push the tag to the server\n* npm run changelog - generates a changelog and pushes it\n","readmeFilename":"Readme.md"}