Type-safe TypeScript SDK for the Pactus blockchain.
npm install @pactus/sdkimport { initWalletSDK, NetworkValues, MnemonicValues } from "@pactus/sdk";
import { MemoryStorage } from "@pactus/sdk";
const storage = new MemoryStorage();
const walletManager = await initWalletSDK(storage);
const wallet = await walletManager.createWallet(
"my-password",
"My Wallet",
MnemonicValues.NORMAL,
NetworkValues.MAINNET
);
const address = wallet.createAddress("Personal Address");
console.info("New address:", address);MIT