update readme
This commit is contained in:
parent
efd3cb3c7c
commit
32c256bc4e
11
README.md
11
README.md
@ -2,6 +2,10 @@
|
||||
|
||||
A library that has a collection of onchain and offchain gas price oracle URLs
|
||||
|
||||
## Supported networks
|
||||
|
||||
### Ethereum Mainnet
|
||||
|
||||
Current offchain list:
|
||||
|
||||
- https://ethgasstation.info/json/ethgasAPI.json
|
||||
@ -14,6 +18,12 @@ Current onchain list:
|
||||
|
||||
- [chainlink](https://etherscan.io/address/0x169e633a2d1e6c10dd91238ba11c4a708dfef37c#readContract)
|
||||
|
||||
### Binance Smart Chain
|
||||
|
||||
Current offchain list:
|
||||
|
||||
- https://bscgas.info/
|
||||
|
||||
## Installation
|
||||
|
||||
`npm i gas-price-oracle`
|
||||
@ -30,6 +40,7 @@ const { GasPriceOracle } = require('gas-price-oracle');
|
||||
|
||||
```js
|
||||
const options = {
|
||||
chainId: 1,
|
||||
defaultRpc: 'https://api.mycryptoapi.com/eth',
|
||||
timeout: 10000,
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user