ChainApi<P extends Provider> class

Substrate chain API

Constructors

ChainApi(P _provider)

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

getBlockHash({int? blockNumber}) Future<BlockHash>
Returns the BlockHash for the given block number.
getChainHeader({BlockHash? at}) Future<int>
Get the latest block number or specific block number by BlockHash.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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