hoodkit
    Preparing search index...

    Function plan

    • Execute many contract reads in the fewest possible Multicall3 round-trips. Reads are chunked to maxBatchSize and the chunks run concurrently; results come back in the exact input order.

      Unlike client.public.multicall, plan never rejects on a single failing read — every result carries a status, so one reverting call can't sink the whole batch.

      Type Parameters

      • T = unknown

      Parameters

      Returns Promise<BatchResult<T>[]>

      const results = await plan(hood, [
      { address: usdg, abi: erc20Abi, functionName: 'balanceOf', args: [me] },
      { address: weth, abi: erc20Abi, functionName: 'totalSupply' },
      ])
      if (results[0].status === 'success') console.log(results[0].result)