SDK Configuration
Quadrata SDK Configuration
Both the API and Client libraries require configuration to work correctly. The same configuration object can be used for both libraries.
Configuration Properties
The configuration object is a plain JavaScript object that contains the following properties:
environment
: ( Required ) The environment to use for the SDK. This is mapped from theQuadrataEnvironment
enum. The API URL used by both Client and API libraries is determined by the environment you configure.QuadrataEnvironment.SANDBOX
- "SANDBOX"QuadrataEnvironment.PRODUCTION
- "PRODUCTION"
attributes
: ( Optional ) An object containing the attributes to use for the SDK. For client libraries, these are the attributes that you want to claim. For API libraries, these are the attributes that you want to query. If not provided, you must pass the attributes as props to the SDK components or functions. These attributes are mapped from theQuadrataAttribute
enum.QuadrataAttribute.AML
- "AML"QuadrataAttribute.COUNTRY
- "COUNTRY"QuadrataAttribute.DID
- "DID"QuadrataAttribute.INVESTOR_STATUS
- "INVESTOR_STATUS"
network
: ( Optional ) The network to use for the SDK. This is mapped from theQuadrataNetwork
enum. If not provided, you must pass the network as props to the SDK components or functions. For client components, this comes from thechainId
prop, and for API functions, this comes from thenetwork
parameter.Sandbox
QuadrataNetwork.SEPOLIA
- 11155111QuadrataNetwork.MUMBAI
- 80001QuadrataNetwork.FUJI
- 43113QuadrataNetwork.TEVMOS
- 9000QuadrataNetwork.OPTIMISM_GOERLI
- 420QuadrataNetwork.ARBITRUM_GOERLI
- 421613QuadrataNetwork.KAVA_TESTNET
- 2221QuadrataNetwork.ZKSYNC_GOERLI
- 280QuadrataNetwork.ZKSYNC_SEPOLIA
- 300QuadrataNetwork.BASE_GOERLI
- 84531
Production
QuadrataNetwork.MAINNET
- 1QuadrataNetwork.POLYGON
- 137QuadrataNetwork.AVALANCHE
- 43114QuadrataNetwork.EVMOS
- 9001QuadrataNetwork.ARBITRUM
- 42161QuadrataNetwork.OPTIMISM
- 10QuadrataNetwork.KAVA
- 2222QuadrataNetwork.BASE
- 8453QuadrataNetwork.ZKSYNC_ERA
- 324
privacyScopes
: ( Optional ) An array of privacy scopes to use for the SDK. This is mapped from theQuadrataPrivacyConsent
enum. If not provided, you must pass the privacy scopes as props to the SDK components or functions.QuadrataPrivacyConsent.ADDRESS
- "ADR"QuadrataPrivacyConsent.DATE_OF_BIRTH
- "DOB"QuadrataPrivacyConsent.EMAIL
- "EM"QuadrataPrivacyConsent.FIRST_NAME
- "FN"QuadrataPrivacyConsent.GOV_ID_NUM
- "G"QuadrataPrivacyConsent.GOV_ID_CLASS
- "GC"QuadrataPrivacyConsent.GOV_ID_EXPIRY_DATE
- "GE"QuadrataPrivacyConsent.GOV_ID_ISSUE_DATE
- "GI"QuadrataPrivacyConsent.GOV_ID_ISSUE_AUTHORITY
- "GIS"QuadrataPrivacyConsent.GOV_ID_PHOTO
- "GIP"QuadrataPrivacyConsent.LAST_NAME
- "LN"QuadrataPrivacyConsent.MIDDLE_NAME
- "MN"
Example
Last updated