Installation
The @icp-sdk/core
is a single, unified package that contains all the modules you need to interact with the Internet Computer.
npm install @icp-sdk/core
pnpm add @icp-sdk/core
You might need to install the peer dependencies of @icp-sdk/core
manually:
pnpm install @dfinity/agent @dfinity/candid @dfinity/identity @dfinity/identity-secp256k1 @dfinity/principal
bun add @icp-sdk/core
yarn add @icp-sdk/core
We do not recommend using the CDN distribution of the @icp-sdk/core
package for production applications.
It can constitute a security risk, because the CDN can potentially serve a different IC mainnet root key.