tryAggregate

Prepares a transaction to call the "tryAggregate" function on the contract.

Example

import { tryAggregate } from "thirdweb/extensions/multicall3";
const transaction = tryAggregate({
contract,
requireSuccess: ...,
calls: ...,
overrides: {
...
}
});
// Send the transaction
...

Parameters

Returns

A prepared transaction object.