@reddotlabs/multicall-react
v1.0.1
Published
React hook to interact with multicall contract. All calls will be queued and merged to a number of aggregation call to reduce more traffic.
Downloads
2
Readme
@reddotlabs/multicall-react
React hook to interact with multicall contract. All calls will be queued and merged to a number of aggregation call to reduce more traffic.
Usage
<QueuedMulticallProvider rpcProvider={} multicallAddress={}>
{/*App content*/}
</QueuedMulticallProvider>
const multicall = useMulticall()
useEffect(() => {
multicall.enqueue([
{
target: '',
signature: 'balanceOf(address) returns(uint256)',
params: []
}
])
}, [])