BlockNum class

For operations that are reading data from the blockchain without making a transaction that would modify it, the Ethereum client can read that data from previous states of the blockchain as well. This class specifies which state to use.

Constructors

BlockNum.current()
Use the state of the blockchain as of the latest mined block.
const
BlockNum.exact(int blockNum)
Use the state of the blockchain at the block specified.
const
BlockNum.genesis()
Use the state of the blockchain with the first block
const
BlockNum.pending()
Use the current state of the blockchain, including pending transactions that have not yet been mined.
const

Properties

blockNum int
final
hashCode int
The hash code for this object.
no setteroverride
isPending bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useAbsolute bool
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toBlockParam() String
Generates the block parameter as it is accepted by the Ethereum client.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override