tryBlockAndAggregate

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

Example

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

Parameters

Returns

A prepared transaction object.