getStorageNoncePublicKey function
Implementation
dynamic getStorageNoncePublicKey(String endpoint) async {
final Map<String, String> requestHeaders = {
'Content-type': 'application/json',
'Accept': 'application/json',
};
http.Response responseHttp = await http.post(Uri.parse(endpoint + "/api"),
body:
json.encode("{query: 'query {sharedSecrets{storageNoncePublicKey}}'"),
headers: requestHeaders);
return json.decode(responseHttp.body);
}