
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
@kasplex/kiwi-web
Advanced tools
A powered solution for effortless Kaspa wallet integration, delivering secure and streamlined blockchain operations.
**Kasplex Wallet SDK - Kasplex in Wallet Integration (Kiwi) is a powerful and easy-to-use SDK designed to simplify the management of Kaspa wallet assets. It provides seamless integration with Kaspa nodes, KRC20 tokens, and essential wallet functionalities, enabling developers to build robust Kaspa-based applications effortlessly.
Node.js Version Requirement: This SDK requires Node.js version 20.13.1 or higher. You can check the version of Node.js while it is running.
To integrate Kasplex Wallet SDK - Kiwi into your project, follow these steps:
Install the SDK:
npm install @kasplex/kiwi
Set up networkType and init rpc client for use:
import { Kiwi, Rpc, Wasm } from "@kasplex/kiwi";
await initialize("path to kaspa_bg.wasm"); // you can find kaspa_bg.wasm in @kasplex-web/dist
await Rpc.setInstance(Wasm.NetworkType.Mainnet).connect(); // connect kaspa node for fetch information from the node if needed
Generate a new wallet:
import { Mnemonic, Wallet } from "@kasplex/kiwi";
const mnemonic = Mnemonic.random(12);
console.log("Generated Mnemonic:", mnemonic);
let wallet = Wallet.fromMnemonic(mnemonic)
send $KAS:
import { KaspaTransaction, Rpc, Wasm } from "@kasplex/kiwi";
// Connect to Kaspa testnet node using WebAssembly (Wasm) network type
// This establishes the RPC connection needed for subsequent transactions
await Rpc.setInstance(Wasm.NetworkType.Testnet).connect()
// Transfer KAS from privateKey to toAddress with amount and fee
const resp = await KaspaTransaction.transferKas(privateKey, toAddress, 130000000n, 10000n)
KRC20:
import { Wasm, Enum, Utils, KRC20 } from "@kasplex/kiwi";
const krc20data = Utils.createKrc20Data({
p: "krc-20",
op: Enum.OP.Mint,
tick: 'TCKFE',
})
let txid = await KRC20.mint(_privateKey, krc20data, 100000n)
console.log("Mint txid", txid)
We welcome contributions from the community! Feel free to submit issues, feature requests, or pull requests to improve the Kasplex Wallet SDK - Kiwi.
This project is licensed under the MIT License.
🚀 Start building with Kasplex Wallet SDK - Kiwi today and unlock the full potential of the Kaspa ecosystem!
FAQs
A powered solution for effortless Kaspa wallet integration, delivering secure and streamlined blockchain operations.
The npm package @kasplex/kiwi-web receives a total of 31 weekly downloads. As such, @kasplex/kiwi-web popularity was classified as not popular.
We found that @kasplex/kiwi-web demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.