referrerpolicy=no-referrer-when-downgrade

Module BlockInfo

Source
Expand description

Module containing a contract’s types and functions.

contract BlockInfo {
    function blockNumber() public view returns (uint) { <stmts> }
    function coinbase() public view returns (address) { <stmts> }
    function timestamp() public view returns (uint) { <stmts> }
    function difficulty() public view returns (uint) { <stmts> }
    function gaslimit() public view returns (uint) { <stmts> }
    function chainid() public view returns (uint) { <stmts> }
    function basefee() public view returns (uint) { <stmts> }
}

Structs§

basefeeCall
Function with signature basefee() and selector 0x5cf24969.
basefeeReturn
Container type for the return parameters of the basefee() function.
blockNumberCall
Function with signature blockNumber() and selector 0x57e871e7.
blockNumberReturn
Container type for the return parameters of the blockNumber() function.
chainidCall
Function with signature chainid() and selector 0xcd84980e.
chainidReturn
Container type for the return parameters of the chainid() function.
coinbaseCall
Function with signature coinbase() and selector 0xa6ae0aac.
coinbaseReturn
Container type for the return parameters of the coinbase() function.
difficultyCall
Function with signature difficulty() and selector 0x19cae462.
difficultyReturn
Container type for the return parameters of the difficulty() function.
gaslimitCall
Function with signature gaslimit() and selector 0x2a722839.
gaslimitReturn
Container type for the return parameters of the gaslimit() function.
timestampCall
Function with signature timestamp() and selector 0xb80777ea.
timestampReturn
Container type for the return parameters of the timestamp() function.

Enums§

BlockInfoCalls
Container for all the BlockInfo function calls.