1.0.1 • Published 2 years ago
@reddotlabs/multicall-react v1.0.1
@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: []
}
])
}, [])