Skip to content
LogoLogo

ContextHelper

Git Source

Functions

blockTimestamp

Returns the current block timestamp.

function blockTimestamp() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256

blockNumber

Returns the current block number.

function blockNumber() external view returns (uint256);

Returns

NameTypeDescription
<none>uint256

msgSender

Returns the msg.sender.

function msgSender() external view returns (address);

Returns

NameTypeDescription
<none>address

balance

Returns the balance of an account.

function balance(address account) external view returns (uint256);

Parameters

NameTypeDescription
accountaddress

Returns

NameTypeDescription
<none>uint256