verify method
Verify objects in filestore.
/api/v0/filestore/verify
Optional arguments:
cid
String
: Cid of objects to verify.fileOrder
bool
: Sort the results based on the path of the backing file.
Response:
{
"ErrorMsg": "<string>",
"FilePath": "<string>",
"Key": {
"/": "<cid-string>"
},
"Offset": "<uint64>",
"Size": "<uint64>",
"Status": "<int32>",
"StatusCode": "<statusCode>",
"StatusMessage": "<statusMessage>"
}
See more: https://docs.ipfs.io/reference/http/api/#api-v0-filestore-verify
Implementation
Future<Map<String, dynamic>> verify({String? cid, bool? fileOrder}) async {
Response? res = await _post(
Ipfs.dio,
url: "${Ipfs.url}/filestore/verify",
queryParameters: {
if (cid != null) "arg": cid,
if (fileOrder != null) "file-order": fileOrder,
},
);
return _interceptDioResponse(res, expectsResponseBody: true);
}