API Get Privacy Permissions
Server-Side API endpoint to fetch privacy permissions that have been allowed by the user to your dApp.
Last updated
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);import base64
import json
wallet_address = '...'
# You can find `make_request` in "How to sign API"."Full Example" page
grants_response = make_request(f'/api/v1/privacy/grants/{wallet_address}')
print(json.dumps(grants_response['data']['grants']))