Expand description
Generated by the following Solidity interface…
interface Multicall {
struct Call {
address target;
bytes callData;
}
function aggregate(Call[] memory calls) external returns (uint256 blockNumber, bytes[] memory returnData);
function getBlockHash(uint256 blockNumber) external view returns (bytes32 blockHash);
function getCurrentBlockCoinbase() external view returns (address coinbase);
function getCurrentBlockDifficulty() external view returns (uint256 difficulty);
function getCurrentBlockGasLimit() external view returns (uint256 gaslimit);
function getCurrentBlockTimestamp() external view returns (uint256 timestamp);
function getEthBalance(address addr) external view returns (uint256 balance);
function getLastBlockHash() external view returns (bytes32 blockHash);
}…which was generated by the following JSON ABI:
[
{
"type": "function",
"name": "aggregate",
"inputs": [
{
"name": "calls",
"type": "tuple[]",
"internalType": "struct Multicall.Call[]",
"components": [
{
"name": "target",
"type": "address",
"internalType": "address"
},
{
"name": "callData",
"type": "bytes",
"internalType": "bytes"
}
]
}
],
"outputs": [
{
"name": "blockNumber",
"type": "uint256",
"internalType": "uint256"
},
{
"name": "returnData",
"type": "bytes[]",
"internalType": "bytes[]"
}
],
"stateMutability": "nonpayable"
},
{
"type": "function",
"name": "getBlockHash",
"inputs": [
{
"name": "blockNumber",
"type": "uint256",
"internalType": "uint256"
}
],
"outputs": [
{
"name": "blockHash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getCurrentBlockCoinbase",
"inputs": [],
"outputs": [
{
"name": "coinbase",
"type": "address",
"internalType": "address"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getCurrentBlockDifficulty",
"inputs": [],
"outputs": [
{
"name": "difficulty",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getCurrentBlockGasLimit",
"inputs": [],
"outputs": [
{
"name": "gaslimit",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getCurrentBlockTimestamp",
"inputs": [],
"outputs": [
{
"name": "timestamp",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getEthBalance",
"inputs": [
{
"name": "addr",
"type": "address",
"internalType": "address"
}
],
"outputs": [
{
"name": "balance",
"type": "uint256",
"internalType": "uint256"
}
],
"stateMutability": "view"
},
{
"type": "function",
"name": "getLastBlockHash",
"inputs": [],
"outputs": [
{
"name": "blockHash",
"type": "bytes32",
"internalType": "bytes32"
}
],
"stateMutability": "view"
}
]Structs§
- Call
- Multicall
Instance - A
Multicallinstance. - aggregate
Call - Function with signature
aggregate((address,bytes)[])and selector0x252dba42. - aggregate
Return - Container type for the return parameters of the
aggregate((address,bytes)[])function. - getBlock
Hash Call - Function with signature
getBlockHash(uint256)and selector0xee82ac5e. - getBlock
Hash Return - Container type for the return parameters of the
getBlockHash(uint256)function. - getCurrent
Block Coinbase Call - Function with signature
getCurrentBlockCoinbase()and selector0xa8b0574e. - getCurrent
Block Coinbase Return - Container type for the return parameters of the
getCurrentBlockCoinbase()function. - getCurrent
Block Difficulty Call - Function with signature
getCurrentBlockDifficulty()and selector0x72425d9d. - getCurrent
Block Difficulty Return - Container type for the return parameters of the
getCurrentBlockDifficulty()function. - getCurrent
Block GasLimit Call - Function with signature
getCurrentBlockGasLimit()and selector0x86d516e8. - getCurrent
Block GasLimit Return - Container type for the return parameters of the
getCurrentBlockGasLimit()function. - getCurrent
Block Timestamp Call - Function with signature
getCurrentBlockTimestamp()and selector0x0f28c97d. - getCurrent
Block Timestamp Return - Container type for the return parameters of the
getCurrentBlockTimestamp()function. - getEth
Balance Call - Function with signature
getEthBalance(address)and selector0x4d2301cc. - getEth
Balance Return - Container type for the return parameters of the
getEthBalance(address)function. - getLast
Block Hash Call - Function with signature
getLastBlockHash()and selector0x27e86d6e. - getLast
Block Hash Return - Container type for the return parameters of the
getLastBlockHash()function.
Enums§
- Multicall
Calls - Container for all the
Multicallfunction calls.
Statics§
- BYTECODE
- The creation / init bytecode of the contract.
- DEPLOYED_
BYTECODE - The runtime bytecode of the contract, as deployed on the network.
Functions§
- deploy
- Deploys this contract using the given
providerand constructor arguments, if any. - deploy_
builder - Creates a
RawCallBuilderfor deploying this contract using the givenproviderand constructor arguments, if any. - new
- Creates a new wrapper around an on-chain
Multicallcontract instance.