Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sweatpotato13/etherscan-ts

Npm module for etherscan api
https://github.com/sweatpotato13/etherscan-ts

etherscan npm typescript-library yarn

Last synced: 3 months ago
JSON representation

Npm module for etherscan api

Awesome Lists containing this project

README

        

Welcome to etherscan-ts 👋

[![npm version](https://badge.fury.io/js/etherscan-ts.svg)](https://badge.fury.io/js/etherscan-ts) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![npm](https://img.shields.io/npm/dw/etherscan-ts.svg)

> Ethersdcan API library with typescript

### 🏠 [Homepage](https://github.com/sweatpotato13/etherscan-ts)

## Install

```sh
npm i etherscan-ts
yarn add etherscan-ts
```

## Run tests

```sh
yarn test
```

## Usage
```
const eth = new Etherscan("apiKey");
```

You need API key from etherscan

### Functions
* getSingleEtherBalance
* getMultipleEtherBalance
* getTrxList
* getInternalTrxListByAddress
* getInternalTrxListByHash
* getInternalTrxListByBlockRange
* getERC20TokenTransferEventList
* getERC721TokenTransferEventList
* getMinedBlocksByAddress
* getContractAbi
* checkContractExecutionStatus
* checkTransactionReceiptStatus
* getBlockandUncleReward
* getEstimatedBlockCountdownTime
* getBlockNumberByTimestamp
* getRecentBlockNumber
* getBlockbyNumber
* getUncleByBlockNumberAndIndex
* getBlockTransactionCountByNumber
* getTransactionByHash
* getTransactionByBlockNumberAndIndex
* getTransactionCount
* sendRawTransaction
* getTransactionReceipt
* getCode
* getStorageAt
* gasPrice
* getERC20TokenTotalSupply
* getERC20TokenBalance
* estimateConfirmationTime
* getGasOracle
* getTotalEther
* getEtherLastPrice

## Author

👤 **CuteWisp **

* Website: Cutewisp.com
* Github: [@sweatpotato13](https://github.com/sweatpotato13)

## 🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/sweatpotato13/etherscan-ts/issues).

## Show your support

Give a ⭐️ if this project helped you!

***
_This README was generated with ❤️ by [readme-md-generator](https://github.com/kefranabg/readme-md-generator)_