🎩 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 - npm Package Compare versions

Comparing version
1.0.19
to
1.0.20
+1
-1
dist/types/kasplexApiType.d.ts

@@ -90,3 +90,3 @@ export interface PaginationParam {

amt?: string;
name: string;
name?: string;
from: string;

@@ -93,0 +93,0 @@ to: string;

{
"name": "@kasplex/kiwi",
"version": "1.0.19",
"version": "1.0.20",
"type": "module",

@@ -8,6 +8,11 @@ "main": "dist/index.js",

"browser": "dist/index.js",
"readme": "README.md",
"exports": {
"import": "./dist/index.js",
"require": "./dist/index.js",
"default": "./dist/index.js"
"default": "./dist/index.js",
"readme": {
"node": "./README.md",
"browser":"./README-WEB.md"
}
},

@@ -23,2 +28,10 @@ "description": "A powered solution for effortless Kaspa wallet integration, delivering secure and streamlined blockchain operations.",

],
"keywords": [
"kasplex sdk",
"kaspa wasm",
"krc20 sdk",
"kaspa wallet",
"kiwi",
"kasplex"
],
"author": "kasplex",

@@ -25,0 +38,0 @@ "license": "ISC",

+19
-30

@@ -28,6 +28,6 @@ # Kasplex Wallet SDK - Kiwi

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();
await Rpc.setInstance(Wasm.NetworkType.Mainnet).connect(); // connect kaspa node for fetch information from the node if needed
```
3. **Generate a new wallet**:
2. **Generate a new wallet**:
```typescript

@@ -40,3 +40,3 @@ import { Mnemonic, Wallet } from "@kasplex/kiwi";

4. **Connect to the Kaspa network**:
4. **send kas**:
```typescript

@@ -47,6 +47,19 @@ import { Kaspa } from "@kasplex/kiwi";

5. **KRC20**:
```typescript
import { Kaspa, 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)
```
## More Examples
For more detailed usage examples, check out our [Examples Directory](https://github.com/kasplex/sdk-kiwi-examples)
.
- For more detailed usage examples, check out our [Examples Directory](./example/)
- For usage of web, check out our [Kiwi for WEB](./README-WEB.md)
## Contribution

@@ -61,25 +74,1 @@

🚀 **Start building with Kasplex Wallet SDK - Kiwi today and unlock the full potential of the Kaspa ecosystem!**
## 📜 Version History
### [1.0.19] - 2025-05-01
#### 🛠️ Bug Fixes
- Fixed issue with transaction processing (#123)
#### API Request Interface Modifications
- Added the getBlackList interface for querying the blacklist.
- Enhanced interface return types for better data type visibility.
### [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)