Installation
Quadrata SDK Installation
Last updated
Quadrata SDK Installation
Last updated
To install the Quadrata SDK, you can use the following commands:
The SDK has optional peer dependencies that you will need to install, depending on which SDK libraries you want to use.
If you are using client libraries at @quadrata/sdk/client
then you will need to install the following packages in your project:
@quadrata/core-react
@tanstack/react-query
react
react-dom
Each client onboarding application has its own package that you need to install in order to take advantage of the SDK for client onboarding, and all of them require @quadrata/core-react
.
For KYC onboarding, you need to install the following dependencies:
@quadrata/core-react
@quadrata/client-react
For KYB onboarding, you need to install the following dependencies:
@quadrata/core-react
@quadrata/kyb-react
wagmi@2.X
viem@2
Due to the static analysis performed by the bundler (like Webpack or Parcel) during the build process, when a module is imported, the bundler tries to resolve these modules at build time and not run time.
If you are using the SDK client libraries and you do not wish to install all of the peer dependencies, you need to tell your bundler how to handle packages that are not installed or you will receive Module not found
errors.
NextJS uses Webpack and allows you to configure a fallback package for modules by name.
If you only need Individual Onboarding (KYC), for instance, and do not wish to install the Business Onboarding (KYB) react packages, you can tell webpack not to attempt to load the KYB package.
An example of this configuration would like like the following:
In order for typescript to find the type definitions in @quadrata/sdk/types
you might need to update your tsconfig.json
.
Specifically, moduleResolution
may need to be set to bundler
.
Here are some example tsconfig.json
files for different environments.
Here is an example tsconfig.json
for a NextJS Application:
You can find more information about installing @quadrata/client-react on
the page.
You can find more information about installing @quadrata/kyb-react
on the page.
If you want to use the built-in abstraction to connect wallets and sign transactions, you need to install the following dependencies: