Module Multicall3

Module Multicall3 

Source
Expand description

Module containing a contract’s types and functions.

contract Multicall3 {
    struct Call { address target; bytes callData; }
    struct Call3 { address target; bool allowFailure; bytes callData; }
    struct Result { bool success; bytes returnData; }
    function aggregate3(Call3[] calldata calls) external payable returns (Result[] memory returnData);
    function tryAggregate(bool requireSuccess, Call[] calldata calls) external payable returns (Result[] memory returnData);
}

Structs§

Call
Call3
Multicall3Instance
A Multicall3 instance.
Result
aggregate3Call
Function with signature aggregate3((address,bool,bytes)[]) and selector 0x82ad56cb.
aggregate3Return
Container type for the return parameters of the aggregate3((address,bool,bytes)[]) function.
tryAggregateCall
Function with signature tryAggregate(bool,(address,bytes)[]) and selector 0xbce38bd7.
tryAggregateReturn
Container type for the return parameters of the tryAggregate(bool,(address,bytes)[]) function.

Enums§

Multicall3Calls
Container for all the Multicall3 function calls.

Functions§

new
Creates a new wrapper around an on-chain Multicall3 contract instance.