update readme

This commit is contained in:
Danil Kovtonyuk 2021-06-03 13:01:25 +03:00
parent efd3cb3c7c
commit 32c256bc4e

@ -2,6 +2,10 @@
A library that has a collection of onchain and offchain gas price oracle URLs A library that has a collection of onchain and offchain gas price oracle URLs
## Supported networks
### Ethereum Mainnet
Current offchain list: Current offchain list:
- https://ethgasstation.info/json/ethgasAPI.json - https://ethgasstation.info/json/ethgasAPI.json
@ -14,6 +18,12 @@ Current onchain list:
- [chainlink](https://etherscan.io/address/0x169e633a2d1e6c10dd91238ba11c4a708dfef37c#readContract) - [chainlink](https://etherscan.io/address/0x169e633a2d1e6c10dd91238ba11c4a708dfef37c#readContract)
### Binance Smart Chain
Current offchain list:
- https://bscgas.info/
## Installation ## Installation
`npm i gas-price-oracle` `npm i gas-price-oracle`
@ -30,6 +40,7 @@ const { GasPriceOracle } = require('gas-price-oracle');
```js ```js
const options = { const options = {
chainId: 1,
defaultRpc: 'https://api.mycryptoapi.com/eth', defaultRpc: 'https://api.mycryptoapi.com/eth',
timeout: 10000, timeout: 10000,
}; };