@arkade-os/sdk 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -327,9 +327,6 @@ class Wallet {
|
|
|
327
327
|
if (params.amount <= 0) {
|
|
328
328
|
throw new Error("Amount must be positive");
|
|
329
329
|
}
|
|
330
|
-
if (params.amount < Wallet.DUST_AMOUNT) {
|
|
331
|
-
throw new Error("Amount is below dust limit");
|
|
332
|
-
}
|
|
333
330
|
// If Ark is configured and amount is suitable, send via offchain
|
|
334
331
|
if (this.arkProvider && this.isOffchainSuitable(params.address)) {
|
|
335
332
|
return this.sendOffchain(params, zeroFee);
|
|
@@ -756,6 +753,4 @@ class Wallet {
|
|
|
756
753
|
}
|
|
757
754
|
}
|
|
758
755
|
exports.Wallet = Wallet;
|
|
759
|
-
// TODO get dust from ark server?
|
|
760
|
-
Wallet.DUST_AMOUNT = BigInt(546); // Bitcoin dust limit in satoshis = 546
|
|
761
756
|
Wallet.FEE_RATE = 1; // sats/vbyte
|
|
@@ -324,9 +324,6 @@ export class Wallet {
|
|
|
324
324
|
if (params.amount <= 0) {
|
|
325
325
|
throw new Error("Amount must be positive");
|
|
326
326
|
}
|
|
327
|
-
if (params.amount < Wallet.DUST_AMOUNT) {
|
|
328
|
-
throw new Error("Amount is below dust limit");
|
|
329
|
-
}
|
|
330
327
|
// If Ark is configured and amount is suitable, send via offchain
|
|
331
328
|
if (this.arkProvider && this.isOffchainSuitable(params.address)) {
|
|
332
329
|
return this.sendOffchain(params, zeroFee);
|
|
@@ -752,6 +749,4 @@ export class Wallet {
|
|
|
752
749
|
: undefined);
|
|
753
750
|
}
|
|
754
751
|
}
|
|
755
|
-
// TODO get dust from ark server?
|
|
756
|
-
Wallet.DUST_AMOUNT = BigInt(546); // Bitcoin dust limit in satoshis = 546
|
|
757
752
|
Wallet.FEE_RATE = 1; // sats/vbyte
|
|
@@ -11,7 +11,6 @@ export declare class Wallet implements IWallet {
|
|
|
11
11
|
private arkServerPublicKey?;
|
|
12
12
|
readonly offchainTapscript?: DefaultVtxo.Script | undefined;
|
|
13
13
|
readonly boardingTapscript?: DefaultVtxo.Script | undefined;
|
|
14
|
-
static DUST_AMOUNT: bigint;
|
|
15
14
|
static FEE_RATE: number;
|
|
16
15
|
private constructor();
|
|
17
16
|
static create(config: WalletConfig): Promise<Wallet>;
|