🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@kasplex/kiwi

Package Overview
Dependencies
Maintainers
3
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kasplex/kiwi

A powered solution for effortless Kaspa wallet integration, delivering secure and streamlined blockchain operations.

npmnpm
Version
1.0.18
Version published
Weekly downloads
17
-67.31%
Maintainers
3
Weekly downloads
 
Created
Source

Kasplex Wallet SDK - Kiwi

**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..

Features

  • Mnemonic Support: Generate and restore wallets securely using industry-standard mnemonics.
  • Wallet Generation & Derivation: Create hierarchical deterministic (HD) wallets and derive multiple addresses.
  • KRC20 Protocol Implementation & API Integration: Easily interact with KRC20 tokens using built-in API functions.
  • Kaspa API & Node Connectivity: Connect to Kaspa nodes for real-time blockchain data and transaction processing.
  • Multi-Signature Wallet Support: Implement enhanced security with multi-signature wallet functionality.
  • Message Subscription: Subscribe to blockchain events, transaction updates, and real-time notifications.

Installation

Node.js Version Requirement: This SDK requires Node.js version 20.13.1 or higher. You can check your Node.js version by running:

Getting Started

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 Kiwi.setNetwork(Wasm.NetworkType.Mainnet)      // NetworkType.Testnet for test net
    await Rpc.setInstance(Wasm.NetworkType.Mainnet).connect();
    
  • 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)
    
  • Connect to the Kaspa network:

    import { Kaspa } from "@kasplex/kiwi";
    const resp = await Kaspa.transferKas(privateKey, toAddress, 130000000n, 10000n)
    

More Examples

For more detailed usage examples, check out our Examples Directory .

Contribution

We welcome contributions from the community! Feel free to submit issues, feature requests, or pull requests to improve the Kasplex Wallet SDK - Kiwi.

License

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!

📜 Version History

[1.0.11] - 2025-04-17

🛠️ Bug Fixes

  • Fixed known issues in transaction processing (#123)

✨ Features

  • Upgraded WASM dependency to v0.17.1 (#125)
  • Added payload support for asset transfers (#128)

📚 Documentation

  • Updated API reference documentation (#130)

FAQs

Package last updated on 29 Apr 2025

Did you know?

Socket

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.

Install

Related posts