uniswap-v2-dump
v3.0.1661
Published
Static set of addresses (uniswap-v2)
Readme
uniswap-v2-dump
Preloaded dump of addresses (uniswap-v2). Zero RPC calls! Offline mode!
Data update every hour at GitHub Action update.yml via uniswap-v2-loader
Data:
dump_pairs.bin10.4 Mbdump_tokens.bin10.2 Mbdump_p2tt.bin3.1 Mb
Output format
load and subscribe methods return collection of pools/pairs.
[
...
{
id: 519406,
pair: '0x5761a547a659c46f9aabad0f58ca2498d70c3f20',
token0: '0xaf1bb9fa12769232866a336fd3e17e8f820de166',
token1: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
},
...
]where:
519406- pair/pool index at factory contract
0xf8ee0dee743f3587a3b6d9cf0da666b7bf1999b9- Uniswap V2 pool to exchange between YOMOGI and WETH contract address
0xaf1bb9fa12769232866a336fd3e17e8f820de166- Yomogi Coin (YOMOGI) token contract address
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2- WETH token contract address
API
Same implementation as other Uniswap v2 based protocols. Base API reference: uniswap-v2-loader. Predefined:
filename: "dump"csv: false(binary mode)factory: "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f"(Uniswap v2 factory)
Usage CLI/API
> node -e "require('uniswap-v2-dump').load({workers:0}).then(pairs => console.log(pairs.length))"
> 519407