gas-price-oracle-v2
v0.5.0
Published
Gas Price Oracle for Ethereum dApps — maintained fork with updated endpoints, proxy support, and multi-format oracle adapters.
Maintainers
Readme
gas-price-oracle-v2
Maintained fork of gas-price-oracle — updated endpoints, proxy support, transform adapters.
Why
Original v0.4.4 unmaintained since 2021. 3/4 off-chain oracles dead, Chainlink feed deprecated. Blockscout (only survivor) returns inflated gas — 75th percentile priority as "fast" (~5x above median), single-oracle fingerprinting risk. All removed.
Changes
- Proxy:
proxyAgentoption — SOCKS5/Tor for all requests - RPC:
rpc.flashbots.net(privacy-focused, no TX logging) - Mainnet only, Chainlink removed, transform adapters for nested APIs
Usage
const { GasPriceOracle } = require('gas-price-oracle-v2');
const oracle = new GasPriceOracle({ chainId: 1 });
const gas = await oracle.gasPrices();
// { instant: 1.5, fast: 1.2, standard: 0.8, low: 0.5 }
// With Tor proxy:
const SocksProxyAgent = require('socks-proxy-agent');
const oracle = new GasPriceOracle({
chainId: 1,
proxyAgent: new SocksProxyAgent('socks5h://127.0.0.1:9050'),
});API fully backward-compatible with v0.4.4.
License
MIT
