SolanaRequest<RESULT, SERVICERESPONSE> class abstract

An abstract class representing Solana JSON-RPC requests with generic response types.

Inheritance
Implementers

Constructors

SolanaRequest.new({MinContextSlot? minContextSlot, Commitment? commitment, SolanaRequestEncoding? encoding})
const

Properties

commitment Commitment?
The desired commitment level for the request.
final
encoding SolanaRequestEncoding?
The encoding format of the data.
final
hashCode int
The hash code for this object.
no setterinherited
method String
The Solana method associated with the request.
final
minContextSlot MinContextSlot?
The minimum context slot for the request.
final
requestType → RequestServiceType
no setteroverride
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(SERVICERESPONSE result) → RESULT
inherited
toJson() List
Converts the request parameters to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

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