requestDynamic<T> method
Sends a JSON-RPC request to the solana node and returns the result after processing the response.
request
: The JSON-RPC request to be sent.
timeout
: The maximum duration for waiting for the response.
result without any changes
Implementation
Future<dynamic> requestDynamic<T>(SolanaRPCRequest<T> request,
[Duration? timeout]) async {
final id = ++_id;
final params = request.toRequest(id);
final data = await rpc.call(params, timeout);
final response = _findResult(data, params);
return response;
}