SolanaRequestGetBlockTime class

Returns the estimated production time of a block.

Each validator reports their UTC time to the ledger on a regular interval by intermittently adding a timestamp to a Vote for a particular block. A requested block's time is calculated from the stake-weighted mean of the Vote timestamps in a set of recent blocks recorded on the ledger.

https://solana.com/docs/rpc/http/getblocktime

Inheritance

Constructors

SolanaRequestGetBlockTime.new({required int blockNumber})
const

Properties

blockNumber int
block number, identified by Slot
final
commitment Commitment?
The desired commitment level for the request.
finalinherited
encoding SolanaRequestEncoding?
The encoding format of the data.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
method String
getBlockTime
no setteroverride
minContextSlot MinContextSlot?
The minimum context slot for the request.
finalinherited
requestType → RequestServiceType
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildRequest(int requestID) SolanaRequestDetails
Converts the request parameters to a SolanaRequestDetails object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(int result) int
inherited
toJson() List
Converts the request parameters to a JSON representation.
override
toString() String
A string representation of this object.
inherited

Operators

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