API Get Privacy Permissions
Server-Side API endpoint to fetch privacy permissions that have been allowed by the user to your dApp.
API endpoint to get an account's granted privacy scopes
GET
https://int.quadrata.com/api/v1/privacy/grants/${account}
Path Parameters
Name
Type
Description
account*
String
User's wallet address
Headers
Name
Type
Description
Authorization*
String
Basic ${base64(apiKey)}
Date*
String
Date and time of current request
Wed, 04 Oct 2023 02:39:37 GMT
{
"data": {
"grants": [
"FN"
],
"type": "privacy.grants"
}
}
const privateKeyDer = '...';
// You can find `getPrivateKeyFromDer` in "How to sign API"."Full Example" page
const privateKey = await getPrivateKeyFromDer(privateKeyDer);
const walletAddress = '...';
// You can find `makeRequest` in "How to sign API"."Full Example" page
const json = await makeRequest({
method: 'get',
privateKey: privateKey,
path: `/api/v1/privacy/grants/${walletAddress}`
});
console.log(json.data.grants);
Last updated