🎩 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.21
to
1.0.22
dist/wasm/kaspa.js

Sorry, the diff of this file is too big to display

+1
-12
import { Wasm } from "./index";
import { Krc20Data, TransferList } from './types/interface';
import { Krc20Data } from './types/interface';
declare class KRC20 {

@@ -94,13 +94,2 @@ static executeCommit(privateKey: Wasm.PrivateKey, data: Krc20Data, fee?: bigint): Promise<string | undefined>;

/**
* Sends Kaspa to multiple recipients in a single transaction.
*
* @param privateKey - The private key used to sign the transaction.
* @param transferList - An array of transfer targets, each containing a destination address and amount.
* @param priorityFee - The miner fee to prioritize the transaction.
* @param payload - Optional payload data to include in the transaction.
* @returns The result of the transaction submission.
* @throws Will throw an error if no available UTXOs or insufficient funds.
*/
sendToMultipleRecipients(privateKey: Wasm.PrivateKey, transferList: TransferList[], priorityFee: bigint, payload?: Wasm.HexString | Uint8Array): Promise<string>;
/**
* Get the fee information based on the operation type.

@@ -107,0 +96,0 @@ *

{
"name": "@kasplex/kiwi",
"version": "1.0.21",
"version": "1.0.22",
"type": "module",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -41,4 +41,10 @@ # Kasplex Wallet SDK - Kiwi

```typescript
import { Kaspa } from "@kasplex/kiwi";
const resp = await Kaspa.transferKas(privateKey, toAddress, 130000000n, 10000n)
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)
```

@@ -48,3 +54,3 @@

```typescript
import { Kaspa, Enum, Utils, KRC20 } from "@kasplex/kiwi";
import { Wasm, Enum, Utils, KRC20 } from "@kasplex/kiwi";
const krc20data = Utils.createKrc20Data({

@@ -51,0 +57,0 @@ p: "krc-20",

Sorry, the diff of this file is too big to display