
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@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 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 35 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.