uniswap-v2-dump
v3.0.595
Published
Static set of addresses (uniswap-v2)
Readme
uniswap-v2-dump
Static set of addresses (uniswap-v2). New pairs updates happen every hour at GitHub Action update.yml via uniswap-v2-loader
Data:
dump_pairs.bin10 Mb+dump_tokens.bin10 Mb+dump_p2tt.bin3 Mb+
Output format
load and subscribe` methods return collection of pools/pairs.
[
...
{
id: 489817,
pair: '0xf8ee0dee743f3587a3b6d9cf0da666b7bf1999b9',
token0: '0x489f27ede258d4c39b591e6188e95d2c90201cbb',
token1: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
},
...
]where:
489817- pair/pool index at factory contract
0xf8ee0dee743f3587a3b6d9cf0da666b7bf1999b9- VLBC/WETH AMM contract address
0x489f27ede258d4c39b591e6188e95d2c90201cbb- VLBC ERC-20 token contract address
0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2- WETH ERC-20 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().then(pairs => console.log(pairs.length))"
> 489817