Revoke Privacy Grants
Quadrata SDK API Service: Revoke Privacy Grants
Revoke previously consented privacy grants from a wallet address. This feature must be enabled for your dApp.
Parameters
Name
Type
Description
apiKey
*
string
Your API Key
walletAddress
*
hex string
Wallet address
privateKeyDerBase64
string
Base64 DER String
privateKeyDer
string
DER Binary String
privateKeyPem
string
PEM String
privateKey
CryptoKey
CryptoKey object
options
object
Fetch Options
SDK Configuration
Name
Type
Description
Example
import type { API } from '@quadrata/sdk/types';
import { revokePrivacyGrants, QuadrataEnvironment } from '@quadrata/sdk/api';
type ResponseType = API.Service.RevokePrivacyGrants.Response;
const response: ResponseType = await revokePrivacyGrants(
{
apiKey: process.env.QUADRATA_API_KEY,
walletAddress: '0x123',
// private signing key
privateKeyDerBase64: process.env.QUADRATA_PRIVATE_KEY_DER_BASE64,
// optional fetch options
options: {
cache: 'no-cache'
}
},
{ environment: QuadrataEnvironment.PRODUCTION }
);
// response is empty object
Last updated