SolanaProvider class
Represents an interface to interact with Solana nodes using JSON-RPC requests.
- Inheritance
-
- Object
- BaseProvider<
SolanaRequestDetails> - SolanaProvider
Constructors
- SolanaProvider.new(SolanaServiceProvider rpc)
-
Creates a new instance of the SolanaProvider class with the specified
rpc
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rpc → SolanaServiceProvider
-
The JSON-RPC service used for communication with the solana node.
final
- 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
-
request<
RESULT, SERVICERESPONSE> (BaseServiceRequest< RESULT, SERVICERESPONSE, SolanaRequestDetails> request, {Duration? timeout}) → Future<RESULT> -
Sends a JSON-RPC request to the solana node and returns the result after
processing the response.
override
-
requestDynamic<
RESULT, SERVICERESPONSE> (BaseServiceRequest< RESULT, SERVICERESPONSE, SolanaRequestDetails> request, {Duration? timeout}) → Future<SERVICERESPONSE> -
override
-
requestDynamicWithContext<
RESULT, SERVICERESPONSE> (BaseServiceRequest< RESULT, SERVICERESPONSE, SolanaRequestDetails> request, [Duration? timeout]) → Future<ResultWithContext< SERVICERESPONSE> > - Sends a JSON-RPC request to the solana node and returns the result after processing the response.
-
requestWithContext<
RESULT, SERVICERESPONSE> (BaseServiceRequest< RESULT, SERVICERESPONSE, SolanaRequestDetails> request, [Duration? timeout]) → Future<ResultWithContext< RESULT> > - Sends a JSON-RPC request to the solana node and returns the result after processing the response.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited