Installing MPC Core Kit JS SDK
@web3auth/mpc-core-kit
- npm
- Yarn
- pnpm
npm install --save @web3auth/mpc-core-kit
yarn add @web3auth/mpc-core-kit
pnpm add @web3auth/mpc-core-kit
This package gives access to common types and interfaces for Web3Auth. This comes in handy by
providing you a standard way of importing the values you need to work with the SDKs. We highly
recommend using it while working with Typescript
.
Helper SDKs
Provider packages
For making RPC calls within your dApp, Web3Auth exposes respective providers for different chains. This provider can be used to interact with the connected chain using exposed functions within the provider.
Checkout the Providers SDK Reference to learn more.
Common Types and Interfaces
@web3auth/base
This package gives access to common types and interfaces for Web3Auth. This comes in handy by providing you a standard way of importing the values you need to work with the SDKs. We highly recommend using it while working with Typescript.
Troubleshooting
Bundler Issues: Missing Dependencies
You might face issues mentioning that certain dependencies are missing within the browser environment. These are node dependencies that need to be polyfilled in your application, to enable Web3Auth functionalities. Furthermore, your bundler needs to be reconfigured to use them while building the app. We have created guides for different bundlers to help you with this issue:
- Please check out our Webpack 5 Troubleshooting Guide
- Please check out our Vite Troubleshooting Guide
- Please check out our React Native Troubleshooting Guide