From 47397d96a9b34a021d0eaafe252bf55fd7e92e97 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Thu, 18 Nov 2021 00:19:54 -0800 Subject: [PATCH] feat(index): 1inch v1.2 update to include 1inch v1.2 gas api --- README.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 64a9d0e..c9ff6e4 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ + [Gnosis](#gnosis) + [MetaMask](#metamask) - [Consensys CoDeFi](#consensys-codefi) - - [1inch](#1inch) + + [1inch](#1inch) + [ethGasStation](#ethgasstation) + [etherchain.org](#etherchainorg) + [poanetwork](#poanetwork) @@ -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 @@ -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)