getSupply method
get Supply
Implementation
Future<RPCResponse<GetSupply>> getSupply() async {
final body = json.encode({
"jsonrpc": "2.0",
"id": 1,
"method": RPCMethod.getSupply,
});
final response = await _httpClient.post(_url, data: body);
return RPCResponse<GetSupply>.fromJson(response.data,
onData: (Map<String, dynamic> value) {
return GetSupply.fromJson(value);
});
}