stats method
EXPERIMENTAL
Report resource usage for a scope.
/api/v0/swarm/stats
Arguments:
scope
String
: Scope of the stat report.
Response:
{
"Text": "<text/plain response>",
"StatusCode": "<statusCode>",
"StatusMessage": "<statusMessage>"
}
See more: https://docs.ipfs.io/reference/http/api/#api-v0-swarm-limit
Implementation
Future<Map<String, dynamic>> stats({required String scope}) async {
Response? res = await _post(
Ipfs.dio,
url: "${Ipfs.url}/swarm/limit",
queryParameters: {
"arg": scope,
},
);
return _interceptDioResponse(res);
}