This extension uses Wonderland's multicall strategy to fetch Uniswap's ERC20
balance in the range [{{offset}}, {{offset}}+{{limit}}]
of all pairs. Multicall optimizes eth_call
performance and
lower the consumption of the node RPC.
Go to the Extensions Library and search for "Multicall ERC20 Uniswap Balance". Click on the extension and click "Activate".
Go to JSON-RPC Request Builder and select "Multicall ERC20 Uniswap Balance" from the dropdown menu. You can then enter the JSON payload and click "Send Request".
Parameters
- QUANTITY, offset of the query.
- QUANTITY, limit of the query.
Example:
{
"id": 0,
"jsonrpc": "2.0",
"method": "extension_multicallERC20UniswapBalance",
"params": [
"0x0",
"0x100"
]
}
Example:
{
"id": 0,
"jsonrpc": "2.0",
"result": [
"0x0", "0x0", "0x0", "0x0", "0x0",
"0x0", "0x0", "0x0", "0x0", "0x0",
"0x0", "0x0", "0x0", "0x0", "0x0",
"..."
]
}