Multicall2
Michael Elliot <[email protected]>Joshua Levine <[email protected]>Nick Johnson <[email protected]>
Multicall2 - Aggregate results from multiple read-only function calls
Methods
aggregate
function aggregate(Multicall2.Call[] calls) external nonpayable returns (uint256 blockNumber, bytes[] returnData)Parameters
calls
Multicall2.Call[]
undefined
Returns
blockNumber
uint256
undefined
returnData
bytes[]
undefined
blockAndAggregate
function blockAndAggregate(Multicall2.Call[] calls) external nonpayable returns (uint256 blockNumber, bytes32 blockHash, struct Multicall2.Result[] returnData)Parameters
calls
Multicall2.Call[]
undefined
Returns
blockNumber
uint256
undefined
blockHash
bytes32
undefined
returnData
Multicall2.Result[]
undefined
getBlockHash
Parameters
blockNumber
uint256
undefined
Returns
blockHash
bytes32
undefined
getBlockNumber
Returns
blockNumber
uint256
undefined
getCurrentBlockCoinbase
Returns
coinbase
address
undefined
getCurrentBlockDifficulty
Returns
difficulty
uint256
undefined
getCurrentBlockGasLimit
Returns
gaslimit
uint256
undefined
getCurrentBlockTimestamp
Returns
timestamp
uint256
undefined
getEthBalance
Parameters
addr
address
undefined
Returns
balance
uint256
undefined
getLastBlockHash
Returns
blockHash
bytes32
undefined
tryAggregate
Parameters
requireSuccess
bool
undefined
calls
Multicall2.Call[]
undefined
Returns
returnData
Multicall2.Result[]
undefined
tryBlockAndAggregate
Parameters
requireSuccess
bool
undefined
calls
Multicall2.Call[]
undefined
Returns
blockNumber
uint256
undefined
blockHash
bytes32
undefined
returnData
Multicall2.Result[]
undefined
Last updated
Was this helpful?