send<S, T> method
Makes a JSON RPC HTTP method
call.
Example
final pubkey = Pubkey.fromBase58('CM78CPUeXjn8o3yroDHxUtKsZZgoy4GPkPPXfouKNH12');
final method = GetAccountInfo(pubkey);
final result = await connection.send(method);
print(result); // JsonRpcSuccessResponse<...>
Implementation
Future<JsonRpcSuccessResponse<T>> send<S, T>(
final JsonRpcMethod<S, T> method) =>
httpClient.send(method.request(commitment), method.response,
config: httpClientConfig);