MulticallExtended

Enables calling multiple methods in a single call to the contract

Functions

multicall

Call multiple functions in the current contract and return the data from all of them if they all succeed

The msg.value should not be trusted for any method callable from multicall.

function multicall(uint256 deadline, bytes[] calldata data)
    external
    payable
    override
    checkDeadline(deadline)
    returns (bytes[] memory);

Parameters

NameTypeDescription

deadline

uint256

The time by which this function must be called before failing

data

bytes[]

The encoded function data for each of the calls to make to this contract

Returns

NameTypeDescription

<none>

bytes[]

results The results from each of the calls passed in via data

multicall

Call multiple functions in the current contract and return the data from all of them if they all succeed

The msg.value should not be trusted for any method callable from multicall.

function multicall(bytes32 previousBlockhash, bytes[] calldata data)
    external
    payable
    override
    checkPreviousBlockhash(previousBlockhash)
    returns (bytes[] memory);

Parameters

NameTypeDescription

previousBlockhash

bytes32

data

bytes[]

The encoded function data for each of the calls to make to this contract

Returns

NameTypeDescription

<none>

bytes[]

results The results from each of the calls passed in via data

Last updated