Multicall2
Michael Elliot <mike@makerdao.com>Joshua Levine <joshua@makerdao.com>Nick Johnson <arachnid@notdot.net>
Multicall2 - Aggregate results from multiple read-only function calls
Methods
aggregate
Parameters
calls
Multicall2.Call[]
undefined
Returns
blockNumber
uint256
undefined
returnData
bytes[]
undefined
blockAndAggregate
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