Fetch Attribute Values
Quadrata SDK API Service: Fetch Attribute Values
Parameters
Name
Type
Description
Parameter Options
Name
Type
Description
SDK Configuration
Name
Type
Description
Example
import type { API } from '@quadrata/sdk/types';
import { fetchAttributeValues, QuadrataAttribute, QuadrataEnvironment } from '@quadrata/sdk/api';
type ResponseType = API.Services.FetchAttributeValues.Response;
const response: ResponseType = await fetchAttributeValues(
// params
{
apiAccessToken: 'jwt token from createAccessToken',
walletAddress: '0x123',
// optional, if provided in config
attributes: [QuadrataAttribute.AML, QuadrataAttribute.DID],
options: {
// not recommended
allowUnsafeClientApiCall: true,
// optional fetch options
cache: 'no-cache'
}
},
// sdk config
{
// optional, if provided in above params
attributes: [QuadrataAttribute.AML, QuadrataAttribute.DID],
// required
environment: QuadrataEnvironment.PRODUCTION
}
);
const { data: { queryResult } } = response;Last updated