Ethereum Adapter (Feeder TS)
The Ethereum Adapter uses the Charli3 Feeder service to fetch price data from Uniswap V3 on Ethereum Mainnet.
Network Details
- Chain ID: 1
- DEX: Uniswap V3
- Factory Address:
0x1F98431c8aD98523631AE4a59f267346ea31F984 - RPC Endpoint: e.g.,
https://eth.llamarpc.com
Prerequisites
- Node.js v18+
- npm
Installation
npm install
npm run buildConfiguration
Create a ethereum-config.yml file:
EVMChains:
- chain_id: 1
name: ethereum
rpc_url: https://eth.llamarpc.com
factory_address: "0x1F98431c8aD98523631AE4a59f267346ea31F984"
Rates:
ETH-USD:
general_base_symbol: ETH-USD
base_currency:
dexes:
- adapter: uniswap-v3
chain_id: 1
asset_a: "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2" # WETH
asset_b: "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48" # USDC
sources: [500, 3000]Running
# Run with Ethereum config
npm run cli:config -- ethereum-config.yml