BlockTagOrNumber class
Represents a block number or tag in Ethereum JSON-RPC requests.
Constructors
- BlockTagOrNumber.fromBlockNumber(int _blockNumber)
-
an integer block number
const
- BlockTagOrNumber.fromTag(BlockTag _tag)
-
from tags
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - Converts the block number or tag to its JSON representation.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- earliest → const BlockTagOrNumber
- for the earliest/genesis block.
- finalized → const BlockTagOrNumber
- for the latest finalized block.
- latest → const BlockTagOrNumber
- for the latest mined block.
- pending → const BlockTagOrNumber
- Represents the 'pending' block number or tag.
- safe → const BlockTagOrNumber
- for the latest safe head block.