Extract Uniswap V2 Reserves supplying a list of pools. ro
and r1
represent balanceOf
of tokens t0
and t1
correspondingly.
Up to 100,000 pools per request can be extracted. The reserves state is always bound to latest Ethereum block (always fresh).
curl --location 'https://api.invisium.com/extract-v2-pools' \
--header 'Content-Type: application/json' \
--data '[
"0xA76A9bAa3cC9DAcd86852bea6C4aE8C63E70C4A4",
"0x3885fbe4CD8aeD7b7e9625923927Fa1CE30662A3",
"0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852"
]'
[
{
"pool_addr": "0xa76a9baa3cc9dacd86852bea6c4ae8c63e70c4a4",
"r0": "54074576583112057058",
"r1": "1633180149092520560561",
"t0": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"t1": "0xd555498a524612c67f286df0e0a9a64a73a7cdc7"
},
{
"pool_addr": "0x3885fbe4cd8aed7b7e9625923927fa1ce30662a3",
"r0": "357764429975839288350",
"r1": "10667207088607431",
"t0": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"t1": "0xee2a03aa6dacf51c18679c516ad5283d8e7c2637"
},
{
"pool_addr": "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852",
"r0": "26934266390055623275757",
"r1": "62180123406483",
"t0": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"t1": "0xdac17f958d2ee523a2206206994597c13d831ec7"
}
]