New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@sinai-standard/sdk

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sinai-standard/sdk

Sinai Standard TypeScript SDK for compliant Token-2022 tokens

latest
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

@sinai-standard/sdk

TypeScript SDK for issuing and managing regulated tokens on Solana using Token-2022 Transfer Hooks.

Install

npm install @sinai-standard/sdk

Quick Start

import { AksumKit } from "@sinai-standard/sdk";
import { Connection, Keypair } from "@solana/web3.js";
import { AnchorProvider, Wallet } from "@coral-xyz/anchor";

const connection = new Connection("https://api.devnet.solana.com");
const provider = new AnchorProvider(connection, new Wallet(keypair), {});

const kit = new AksumKit(provider);

const { mint, tokenHandle } = await kit.createToken({
  name: "RegToken",
  symbol: "REG",
  decimals: 9,
  supply: 1_000_000,
  hooks: {
    allowlist: { mode: "allowlist" },
    tax: { bps: 150, maxBps: 1000, vault: taxVault.publicKey },
    holdPeriod: { seconds: 86400 },
  },
});

Classes

ClassDescription
AksumKitMain entry point — creates tokens with compliance hooks in a single call
TokenHandleReturned from createToken(), provides access to all managers for a specific mint
AllowlistManagerAdd/remove wallets, toggle mode, check status
TaxManagerConfigure tax BPS, manage exempt wallets, collect tax
HoldPeriodManagerSet hold periods, check wallet unlock times
RouterManagerInitialize and configure the multi-hook router
MaxBalanceManagerSet per-wallet balance caps
ConfidentialTransferManagerElGamal-encrypted transfers with auditor support

PDA Helpers

import {
  getAllowlistPDA,
  getTaxConfigPDA,
  getHoldConfigPDA,
  getRouterConfigPDA,
  getMaxBalanceConfigPDA,
  getExtraAccountMetasPDA,
} from "@sinai-standard/sdk";

On-Chain Programs

Six Anchor programs deployed on devnet:

ProgramID
Allowlist HookBo3Rd8qZeuxU1cmtCqKEFPRe5Uumx9tusjZ7B1hXtPgc
Tax HookACJXvcH4uaBfBwSwcVG48zJ177ydEvtCqGRMKXv53goZ
Hold Hook8HkukxWoo27BnNwqCzCim4ueKaGEfqLW4LdSZkHkCWzS
Router HookHHnt7Hfnp2fDftFNCFPqEhebgXGizuqubXqhiEi8C1of
Token FactoryVXQL8u4NVUYG1zaejujwh5gr21iinmk4yYCXn1g9TXr
Max Balance HookCtx9ZtNzPFYyjqxdZSMYLgHdqNNpAS61G6ok1dYVBHWi

Docs

Full API reference and guides at docs.sinaistandard.org

License

ISC

FAQs

Package last updated on 04 Mar 2026

Related posts