Install the Ika SDK
The Ika TypeScript SDK is available in the dwallet-labs/ika repository and as a package on npm.
Install from npmβ
To use the Ika TypeScript SDK, you can install it from npm:
You can use bun, pnpm, yarn, or npm to install the SDK.
pnpm add @ika.xyz/sdk
Install from the repositoryβ
To use the Ika TypeScript SDK from the repository, you can clone the repository and install the dependencies:
git clone https://github.com/dwallet-labs/ika.git
To build the SDK, you must have the following tools installed:
π¦ Rust
π Install GuideThe programming language and toolchain required to build Ika
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
π§ Sui CLI
π Sui DocumentationThe command-line interface for interacting with Sui blockchain
Recommended for macOS and Linux users
brew install sui
π¦ pnpm
π Installation GuideFast, disk space efficient package manager
Using npm (most common)
npm install -g pnpm
πΈοΈ wasm-pack
WebAssembly packager for building and packaging Rust-generated WebAssembly
curl https://drager.github.io/wasm-pack/installer/init.sh -sSf | sh
π wasm-bindgen-cli
WebAssembly binding generator for creating JavaScript bindings
cargo install wasm-bindgen-cli --version 0.2.100
After you have installed these prerequisites and cloned the repository, you can build the SDK by running the following command:
cd sdk/typescript
pnpm install && pnpm build
With the SDK built, you can use it in your project by adding the following to your package.json
:
"dependencies": {
"@ika.xyz/sdk": "file:../sdk/typescript/dist"
}
The file:../sdk/typescript/dist
path assumes you're adding this dependency from the root of the cloned repository. Adjust this path based on your project's directory structure relative to the SDK location.