@mysten/sui v2.0 and a new dApp Kit are here! Check out the migration guide
Mysten Labs SDKs

zkSend SDK

The zkSend SDK provides tools for interacting with the zkSend primitive. It provides functionality to create your own zkSend Claim Links, with support for any publicly transferrable asset.

Installation

npm i @mysten/zksend @mysten/sui

Setup

To use the zkSend SDK, create a Sui client and extend it with the zkSend extension:

import { SuiGrpcClient } from '@mysten/sui/grpc';
import { zksend } from '@mysten/zksend';

const client = new SuiGrpcClient({
	network: 'mainnet',
	baseUrl: 'https://fullnode.mainnet.sui.io:443',
}).$extend(zksend());

The zkSend SDK supports mainnet and testnet networks. The extension automatically configures the correct contract IDs based on the client's network.

On this page