Skip to main content

Multicall.sol

Read code on GitHub

Enables calling multiple methods in a single call to the contract

Methods

multicall

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

Solidity
function multicall(bytes[] data) external payable returns (bytes[] results)
Details

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

Parameters

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

Returns

NameTypeDescription
resultsbytes[]Results from each of the calls passed in via data