Skip to main content
Helpful?

IMulticall_v4

Git Source | Generated with forge doc

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 is passed onto all subcalls, even if a previous subcall has consumed the ether. Subcalls can instead use address(this).value to see the available ETH, and consume it using {value: x}.

function multicall(bytes[] calldata data) external payable returns (bytes[] memory results);

Parameters

NameTypeDescription
databytes[]The encoded function data for each of the calls to make to this contract

Returns

NameTypeDescription
resultsbytes[]The results from each of the calls passed in via data
Helpful?