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
});