Skip to main content

Reference

Interfaces, signatures, parameters, and generated references.

Lookup friendly
TOC available

IMulticall_v4

Git Source - Generated with forge doc

Interface for the Multicall_v4 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

On this page

Tools