@kasplex/kiwi
Advanced tools
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 @@ * |
+1
-1
| { | ||
| "name": "@kasplex/kiwi", | ||
| "version": "1.0.21", | ||
| "version": "1.0.22", | ||
| "type": "module", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
+9
-3
@@ -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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
12680100
4.05%40
2.56%33649
67.27%79
8.22%5
66.67%8
100%