etherscan-api-cn
所属分类:以太坊
开发工具:JavaScript
文件大小:117KB
下载次数:0
上传日期:2023-01-04 13:52:36
上 传 者:
sh-1993
说明: 从API到cn.etherscan的简单接口
(API to cn.etherscan with a simple interface)
文件列表:
.jshintrc (379, 2020-12-28)
.npmignore (22, 2020-12-28)
.travis.yml (166, 2020-12-28)
LICENSE.md (1079, 2020-12-28)
dist (0, 2020-12-28)
dist\bundle.js (76743, 2020-12-28)
docs (0, 2020-12-28)
docs\CHANGELOG.md (4960, 2020-12-28)
docs\tutorial.md (354, 2020-12-28)
index.js (80, 2020-12-28)
jsdoc.json (634, 2020-12-28)
lib (0, 2020-12-28)
lib\account.js (6059, 2020-12-28)
lib\block.js (619, 2020-12-28)
lib\contract.js (730, 2020-12-28)
lib\get-request.js (1643, 2020-12-28)
lib\init.js (1339, 2020-12-28)
lib\log.js (2214, 2020-12-28)
lib\proxy.js (7963, 2020-12-28)
lib\stats.js (1538, 2020-12-28)
lib\transaction.js (491, 2020-12-28)
package-lock.json (304781, 2020-12-28)
package.json (1540, 2020-12-28)
scripts (0, 2020-12-28)
scripts\publish-gh.js (151, 2020-12-28)
test-do.md (270, 2020-12-28)
test (0, 2020-12-28)
test\balance-test.js (740, 2020-12-28)
test\error-test.js (319, 2020-12-28)
test\eth-test.js (360, 2020-12-28)
test\fixtures (0, 2020-12-28)
test\fixtures\compile.manifest.json (26729, 2020-12-28)
test\fixtures\migrate.manifest.json (94, 2020-12-28)
test\index-test.js (368, 2020-12-28)
test\methods-test.js (8397, 2020-12-28)
test\proxy-test.js (0, 2020-12-28)
test\testnet-balance-test.js (829, 2020-12-28)
... ...
# Etherscan API 中国镜像
目前只有主网的Etherscan中国镜像,还没找到Ropsten、Rinkeby测试网浏览器的镜像,如果你知道,希望你能告诉我,加微信:cuijin
## Development of a NEXTGEN Version has started - please stand by
[![npm](https://img.shields.io/npm/dt/etherscan-api.svg)](https://www.npmjs.com/package/etherscan-api)
[![license](https://img.shields.io/github/license/sebs/etherscan-api.svg)](https://github.com/sebs/etherscan-api/blob/master/LICENSE.md)
[![GitHub tag](https://img.shields.io/github/tag/sebs/etherscan-api.svg)](https://github.com/sebs/etherscan-api)
[![Travis](https://img.shields.io/travis/sebs/etherscan-api.svg)](https://travis-ci.org/sebs/etherscan-api)
[![GitHub issues](https://img.shields.io/github/issues/sebs/etherscan-api.svg)](https://github.com/sebs/etherscan-api/issues)
A way to access the [etherscan.io api](https://etherscan.io/apis) using promises. Fetch a diverse set of information about the blockchain.
Mainnet
```javascript
var api = require('etherscan-api-cn').init('YourApiKey');
var balance = api.account.balance('0xde0b295669a9fd93d5f28d9ec85e40f4cb697bae');
balance.then(function(balanceData){
console.log(balanceData);
});
```
## Example in the wild
* [Polymer3 based example](https://github.com/hiherto-elements/test-app)
## For testnet usage
Supported:
* morden
* ropsten
* rinkeby
Latest
```javascript
// apikey, network, timeout
var api = require('etherscan-api-cn').init('YourApiKey','rinkeby'. '3000');
```
## Install
```bash
yarn add etherscan-api-cn
```
## API Documentation
[Full Api Docs](https://sebs.github.io/etherscan-api/)
## Development workflow
* npm test - runs tests
* npm run posttest - starts the linter
* npm run lint - preconfigured linter
* npm run docs - generates the apidocs
* npm run bundle - builds a new bundle
* npm run preversion - Steps before we create a new Tag
* lint
* changelog
* npm run pages - pushes generated apidocs to the server
* postversion - after generating a new version, push the tag to the server
* npm run changelog - generates a changelog and pushes it
近期下载者:
相关文件:
收藏者: