Skip to content

Commit

Permalink
feat(index): 1inch v1.2
Browse files Browse the repository at this point in the history
update to include 1inch v1.2 gas api
  • Loading branch information
sambacha authored Nov 18, 2021
1 parent 2063d0d commit 47397d9
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
+ [Gnosis](#gnosis)
+ [MetaMask](#metamask)
- [Consensys CoDeFi](#consensys-codefi)
- [1inch](#1inch)
+ [1inch](#1inch)
+ [ethGasStation](#ethgasstation)
+ [etherchain.org](#etherchainorg)
+ [poanetwork](#poanetwork)
Expand Down Expand Up @@ -596,10 +596,12 @@ wss://www.gasnow.org/ws
}
```

#### 1inch
### 1inch

[https://gas-price-api.1inch.exchange/v1.0](https://gas-price-api.1inch.exchange/v1.0)

### v1.0

```http
GET https://gas-price-api.1inch.exchange/v1.0 HTTP/1.1
Host:gas-price-api.1inch.exchange
Expand All @@ -623,6 +625,32 @@ Content-Type:text/plain
}
```

### v1.2

> gas-price-api.1inch.io/v.1.2
```json
{
"baseFee": "93731028208",
"low": {
"maxPriorityFeePerGas": "1170000000",
"maxFeePerGas": "94901028208"
},
"medium": {
"maxPriorityFeePerGas": "2340000000",
"maxFeePerGas": "96071028208"
},
"high": {
"maxPriorityFeePerGas": "5850000000",
"maxFeePerGas": "99581028208"
},
"instant": {
"maxPriorityFeePerGas": "5850000000",
"maxFeePerGas": "129455336670"
}
}
```

### ethGasStation

[endpoint url](https://ethgasstation.info/json/ethgasAPI.json)
Expand Down

0 comments on commit 47397d9

Please sign in to comment.