thirdweb

Multicall3

OP
etherscanblockscout

Aggregate

(aggregate)

payable

calls

Input should be passed in JSON format - Ex: [{ "target": "0x...", "callData": "0" }]

The native currency value (in Ether) to send with this transaction (ex: 0.01 to send 0.01 native currency).

Sign in

Use this function in your app


import { prepareContractCall, sendTransaction } from "thirdweb"; const transaction = await prepareContractCall({ contract, method: "function aggregate((address target, bytes callData)[] calls) payable returns (uint256 blockNumber, bytes[] returnData)", params: [calls] }); const { transactionHash } = await sendTransaction({ transaction, account });