react-native-bdk-sdk 0.1.1
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.
- package/BdkSdk.podspec +44 -0
- package/LICENSE +19 -0
- package/README.md +24 -0
- package/android/CMakeLists.txt +79 -0
- package/android/build.gradle +144 -0
- package/android/cpp-adapter.cpp +43 -0
- package/android/generated/android/app/build/generated/source/codegen/java/com/facebook/fbreact/specs/NativeBdkSdkSpec.java +41 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/CMakeLists.txt +28 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/RNBdkReactNativeSpec-generated.cpp +38 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/RNBdkReactNativeSpec.h +31 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.h +24 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.cpp +16 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.h +17 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/Props.cpp +19 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/Props.h +18 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/RNBdkReactNativeSpecJSI.h +45 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.cpp +17 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.h +23 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/States.cpp +16 -0
- package/android/generated/android/app/build/generated/source/codegen/jni/react/renderer/components/RNBdkReactNativeSpec/States.h +20 -0
- package/android/src/main/AndroidManifest.xml +5 -0
- package/android/src/main/java/com/reactnativebdksdk/BdkSdkModule.kt +43 -0
- package/android/src/main/java/com/reactnativebdksdk/BdkSdkPackage.kt +34 -0
- package/app.plugin.js +1 -0
- package/cpp/generated/bdk_ffi.cpp +6761 -0
- package/cpp/generated/bdk_ffi.hpp +308 -0
- package/cpp/react-native-bdk-sdk.cpp +16 -0
- package/cpp/react-native-bdk-sdk.h +15 -0
- package/ios/BdkSdk.h +16 -0
- package/ios/BdkSdk.mm +66 -0
- package/ios/generated/build/generated/ios/ReactCodegen/RNBdkReactNativeSpec/RNBdkReactNativeSpec-generated.mm +46 -0
- package/ios/generated/build/generated/ios/ReactCodegen/RNBdkReactNativeSpec/RNBdkReactNativeSpec.h +63 -0
- package/ios/generated/build/generated/ios/ReactCodegen/RNBdkReactNativeSpecJSI.h +45 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.cpp +22 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ComponentDescriptors.h +24 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.cpp +16 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/EventEmitters.h +17 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/Props.cpp +19 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/Props.h +18 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/RCTComponentViewHelpers.h +18 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.cpp +17 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/ShadowNodes.h +23 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/States.cpp +16 -0
- package/ios/generated/build/generated/ios/ReactCodegen/react/renderer/components/RNBdkReactNativeSpec/States.h +20 -0
- package/lib/commonjs/NativeBdkSdk.js +10 -0
- package/lib/commonjs/NativeBdkSdk.js.map +1 -0
- package/lib/commonjs/generated/bdk_ffi-ffi.js +48 -0
- package/lib/commonjs/generated/bdk_ffi-ffi.js.map +1 -0
- package/lib/commonjs/generated/bdk_ffi.js +4117 -0
- package/lib/commonjs/generated/bdk_ffi.js.map +1 -0
- package/lib/commonjs/index.js +63 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/module/NativeBdkSdk.js +7 -0
- package/lib/module/NativeBdkSdk.js.map +1 -0
- package/lib/module/generated/bdk_ffi-ffi.js +47 -0
- package/lib/module/generated/bdk_ffi-ffi.js.map +1 -0
- package/lib/module/generated/bdk_ffi.js +4100 -0
- package/lib/module/generated/bdk_ffi.js.map +1 -0
- package/lib/module/index.js +43 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/plugin/src/index.d.ts +7 -0
- package/lib/typescript/commonjs/plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts +3 -0
- package/lib/typescript/commonjs/plugin/src/withAndroid.d.ts.map +1 -0
- package/lib/typescript/commonjs/plugin/src/withIOS.d.ts +3 -0
- package/lib/typescript/commonjs/plugin/src/withIOS.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeBdkSdk.d.ts +8 -0
- package/lib/typescript/commonjs/src/NativeBdkSdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts +333 -0
- package/lib/typescript/commonjs/src/generated/bdk_ffi-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts +3816 -0
- package/lib/typescript/commonjs/src/generated/bdk_ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +8 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/plugin/src/index.d.ts +7 -0
- package/lib/typescript/module/plugin/src/index.d.ts.map +1 -0
- package/lib/typescript/module/plugin/src/withAndroid.d.ts +3 -0
- package/lib/typescript/module/plugin/src/withAndroid.d.ts.map +1 -0
- package/lib/typescript/module/plugin/src/withIOS.d.ts +3 -0
- package/lib/typescript/module/plugin/src/withIOS.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeBdkSdk.d.ts +8 -0
- package/lib/typescript/module/src/NativeBdkSdk.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts +333 -0
- package/lib/typescript/module/src/generated/bdk_ffi-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/bdk_ffi.d.ts +3816 -0
- package/lib/typescript/module/src/generated/bdk_ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +8 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +147 -0
- package/plugin/build/index.d.ts +6 -0
- package/plugin/build/index.js +14 -0
- package/plugin/build/withAndroid.d.ts +2 -0
- package/plugin/build/withAndroid.js +20 -0
- package/plugin/build/withIOS.d.ts +2 -0
- package/plugin/build/withIOS.js +8 -0
- package/plugin/tsconfig.json +9 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/react-native.config.js +13 -0
- package/scripts/postinstall.js +229 -0
- package/src/NativeBdkSdk.ts +10 -0
- package/src/generated/bdk_ffi-ffi.ts +944 -0
- package/src/generated/bdk_ffi.ts +6864 -0
- package/src/index.tsx +41 -0
|
@@ -0,0 +1,3816 @@
|
|
|
1
|
+
import { type UniffiByteArray, type UniffiGcObject, type UniffiHandle, FfiConverterObject, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol, variantOrdinalSymbol } from "uniffi-bindgen-react-native";
|
|
2
|
+
/**
|
|
3
|
+
* Generate an output descriptor string from a mnemonic using a standard BIP template.
|
|
4
|
+
* Returns a descriptor like "wpkh([fingerprint/84'/0'/0']xprv.../0/*)" for BIP84.
|
|
5
|
+
* Uses Bip44/49/84/86 descriptor templates.
|
|
6
|
+
*/
|
|
7
|
+
export declare function createDescriptor(mnemonic: MnemonicInterface, template: DescriptorTemplate, keychain: KeychainKind, network: Network): string;
|
|
8
|
+
/**
|
|
9
|
+
* Generate a public (watch-only) descriptor from an xpub string using a standard BIP template.
|
|
10
|
+
* Returns a descriptor like "wpkh([fingerprint/84'/0'/0']xpub.../0/*)" for BIP84.
|
|
11
|
+
* Uses Bip44Public/49Public/84Public/86Public descriptor templates.
|
|
12
|
+
*/
|
|
13
|
+
export declare function createPublicDescriptor(xpub: string, template: DescriptorTemplate, keychain: KeychainKind, network: Network): string;
|
|
14
|
+
/**
|
|
15
|
+
* Generate a single-key descriptor from a key string.
|
|
16
|
+
* Uses P2Pkh, P2Wpkh, P2Wpkh_P2Sh, or P2TR templates.
|
|
17
|
+
*/
|
|
18
|
+
export declare function createSingleKeyDescriptor(key: string, template: SingleKeyDescriptorTemplate, network: Network): string;
|
|
19
|
+
/**
|
|
20
|
+
* Export a wallet in FullyNoded-compatible JSON format for backup.
|
|
21
|
+
* Mirrors bdk_wallet::export::FullyNodedExport.
|
|
22
|
+
*/
|
|
23
|
+
export declare function exportWallet(wallet: WalletInterface, label: string, includeBlockHeight: boolean): string;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the address string is valid for the given network.
|
|
26
|
+
*/
|
|
27
|
+
export declare function isValidAddress(address: string, network: Network): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Runtime version of the bdk_wallet crate.
|
|
30
|
+
*/
|
|
31
|
+
export declare function version(): string;
|
|
32
|
+
/**
|
|
33
|
+
* Compute a deterministic wallet name from its descriptors (useful for DB naming).
|
|
34
|
+
* Mirrors bdk_wallet::wallet_name_from_descriptor().
|
|
35
|
+
*/
|
|
36
|
+
export declare function walletNameFromDescriptor(descriptor: string, changeDescriptor: string | undefined, network: Network): string;
|
|
37
|
+
/**
|
|
38
|
+
* A derived address with its derivation index. Mirrors bdk_wallet::AddressInfo.
|
|
39
|
+
*/
|
|
40
|
+
export type AddressInfo = {
|
|
41
|
+
index: number;
|
|
42
|
+
address: string;
|
|
43
|
+
keychain: KeychainKind;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Generated factory for {@link AddressInfo} record objects.
|
|
47
|
+
*/
|
|
48
|
+
export declare const AddressInfo: Readonly<{
|
|
49
|
+
/**
|
|
50
|
+
* Create a frozen instance of {@link AddressInfo}, with defaults specified
|
|
51
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
52
|
+
*/
|
|
53
|
+
create: (partial: Partial<AddressInfo> & Required<Omit<AddressInfo, never>>) => AddressInfo;
|
|
54
|
+
/**
|
|
55
|
+
* Create a frozen instance of {@link AddressInfo}, with defaults specified
|
|
56
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
57
|
+
*/
|
|
58
|
+
new: (partial: Partial<AddressInfo> & Required<Omit<AddressInfo, never>>) => AddressInfo;
|
|
59
|
+
/**
|
|
60
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
61
|
+
*/
|
|
62
|
+
defaults: () => Partial<AddressInfo>;
|
|
63
|
+
}>;
|
|
64
|
+
/**
|
|
65
|
+
* Wallet balance split into categories. All values in satoshis.
|
|
66
|
+
* Mirrors bdk_wallet::Balance (re-exported from bdk_chain).
|
|
67
|
+
*/
|
|
68
|
+
export type Balance = {
|
|
69
|
+
/**
|
|
70
|
+
* Coinbase outputs not yet matured (< 100 confirmations).
|
|
71
|
+
*/
|
|
72
|
+
immature: bigint;
|
|
73
|
+
/**
|
|
74
|
+
* Unconfirmed UTXOs from transactions we sent ourselves.
|
|
75
|
+
*/
|
|
76
|
+
trustedPending: bigint;
|
|
77
|
+
/**
|
|
78
|
+
* Unconfirmed UTXOs received from external wallets.
|
|
79
|
+
*/
|
|
80
|
+
untrustedPending: bigint;
|
|
81
|
+
/**
|
|
82
|
+
* Confirmed and immediately spendable.
|
|
83
|
+
*/
|
|
84
|
+
confirmed: bigint;
|
|
85
|
+
/**
|
|
86
|
+
* trusted_pending + confirmed (safe to spend without double-spend risk).
|
|
87
|
+
*/
|
|
88
|
+
trustedSpendable: bigint;
|
|
89
|
+
/**
|
|
90
|
+
* Sum of all four categories.
|
|
91
|
+
*/
|
|
92
|
+
total: bigint;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Generated factory for {@link Balance} record objects.
|
|
96
|
+
*/
|
|
97
|
+
export declare const Balance: Readonly<{
|
|
98
|
+
/**
|
|
99
|
+
* Create a frozen instance of {@link Balance}, with defaults specified
|
|
100
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
101
|
+
*/
|
|
102
|
+
create: (partial: Partial<Balance> & Required<Omit<Balance, never>>) => Balance;
|
|
103
|
+
/**
|
|
104
|
+
* Create a frozen instance of {@link Balance}, with defaults specified
|
|
105
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
106
|
+
*/
|
|
107
|
+
new: (partial: Partial<Balance> & Required<Omit<Balance, never>>) => Balance;
|
|
108
|
+
/**
|
|
109
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
110
|
+
*/
|
|
111
|
+
defaults: () => Partial<Balance>;
|
|
112
|
+
}>;
|
|
113
|
+
/**
|
|
114
|
+
* A block identifier (height + hash). Mirrors bdk_chain::BlockId.
|
|
115
|
+
*/
|
|
116
|
+
export type BlockId = {
|
|
117
|
+
height: number;
|
|
118
|
+
hash: string;
|
|
119
|
+
};
|
|
120
|
+
/**
|
|
121
|
+
* Generated factory for {@link BlockId} record objects.
|
|
122
|
+
*/
|
|
123
|
+
export declare const BlockId: Readonly<{
|
|
124
|
+
/**
|
|
125
|
+
* Create a frozen instance of {@link BlockId}, with defaults specified
|
|
126
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
127
|
+
*/
|
|
128
|
+
create: (partial: Partial<BlockId> & Required<Omit<BlockId, never>>) => BlockId;
|
|
129
|
+
/**
|
|
130
|
+
* Create a frozen instance of {@link BlockId}, with defaults specified
|
|
131
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
132
|
+
*/
|
|
133
|
+
new: (partial: Partial<BlockId> & Required<Omit<BlockId, never>>) => BlockId;
|
|
134
|
+
/**
|
|
135
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
136
|
+
*/
|
|
137
|
+
defaults: () => Partial<BlockId>;
|
|
138
|
+
}>;
|
|
139
|
+
/**
|
|
140
|
+
* Block position for a confirmed transaction/output.
|
|
141
|
+
* Mirrors bdk_chain::ConfirmationBlockTime.
|
|
142
|
+
*/
|
|
143
|
+
export type ConfirmationBlockTime = {
|
|
144
|
+
height: number;
|
|
145
|
+
/**
|
|
146
|
+
* Block hash as hex.
|
|
147
|
+
*/
|
|
148
|
+
blockHash: string;
|
|
149
|
+
/**
|
|
150
|
+
* Unix timestamp of the block.
|
|
151
|
+
*/
|
|
152
|
+
timestamp: bigint;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* Generated factory for {@link ConfirmationBlockTime} record objects.
|
|
156
|
+
*/
|
|
157
|
+
export declare const ConfirmationBlockTime: Readonly<{
|
|
158
|
+
/**
|
|
159
|
+
* Create a frozen instance of {@link ConfirmationBlockTime}, with defaults specified
|
|
160
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
161
|
+
*/
|
|
162
|
+
create: (partial: Partial<ConfirmationBlockTime> & Required<Omit<ConfirmationBlockTime, never>>) => ConfirmationBlockTime;
|
|
163
|
+
/**
|
|
164
|
+
* Create a frozen instance of {@link ConfirmationBlockTime}, with defaults specified
|
|
165
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
166
|
+
*/
|
|
167
|
+
new: (partial: Partial<ConfirmationBlockTime> & Required<Omit<ConfirmationBlockTime, never>>) => ConfirmationBlockTime;
|
|
168
|
+
/**
|
|
169
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
170
|
+
*/
|
|
171
|
+
defaults: () => Partial<ConfirmationBlockTime>;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* Derivation info for a scriptPubKey belonging to the wallet.
|
|
175
|
+
*/
|
|
176
|
+
export type DerivationInfo = {
|
|
177
|
+
keychain: KeychainKind;
|
|
178
|
+
index: number;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Generated factory for {@link DerivationInfo} record objects.
|
|
182
|
+
*/
|
|
183
|
+
export declare const DerivationInfo: Readonly<{
|
|
184
|
+
/**
|
|
185
|
+
* Create a frozen instance of {@link DerivationInfo}, with defaults specified
|
|
186
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
187
|
+
*/
|
|
188
|
+
create: (partial: Partial<DerivationInfo> & Required<Omit<DerivationInfo, never>>) => DerivationInfo;
|
|
189
|
+
/**
|
|
190
|
+
* Create a frozen instance of {@link DerivationInfo}, with defaults specified
|
|
191
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
192
|
+
*/
|
|
193
|
+
new: (partial: Partial<DerivationInfo> & Required<Omit<DerivationInfo, never>>) => DerivationInfo;
|
|
194
|
+
/**
|
|
195
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
196
|
+
*/
|
|
197
|
+
defaults: () => Partial<DerivationInfo>;
|
|
198
|
+
}>;
|
|
199
|
+
/**
|
|
200
|
+
* Info about a keychain and its associated descriptor.
|
|
201
|
+
*/
|
|
202
|
+
export type KeychainInfo = {
|
|
203
|
+
keychain: KeychainKind;
|
|
204
|
+
/**
|
|
205
|
+
* The public descriptor string.
|
|
206
|
+
*/
|
|
207
|
+
descriptor: string;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Generated factory for {@link KeychainInfo} record objects.
|
|
211
|
+
*/
|
|
212
|
+
export declare const KeychainInfo: Readonly<{
|
|
213
|
+
/**
|
|
214
|
+
* Create a frozen instance of {@link KeychainInfo}, with defaults specified
|
|
215
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
216
|
+
*/
|
|
217
|
+
create: (partial: Partial<KeychainInfo> & Required<Omit<KeychainInfo, never>>) => KeychainInfo;
|
|
218
|
+
/**
|
|
219
|
+
* Create a frozen instance of {@link KeychainInfo}, with defaults specified
|
|
220
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
221
|
+
*/
|
|
222
|
+
new: (partial: Partial<KeychainInfo> & Required<Omit<KeychainInfo, never>>) => KeychainInfo;
|
|
223
|
+
/**
|
|
224
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
225
|
+
*/
|
|
226
|
+
defaults: () => Partial<KeychainInfo>;
|
|
227
|
+
}>;
|
|
228
|
+
/**
|
|
229
|
+
* A wallet-owned output (spent or unspent). Mirrors bdk_wallet::LocalOutput.
|
|
230
|
+
*/
|
|
231
|
+
export type LocalOutput = {
|
|
232
|
+
outpoint: OutPoint;
|
|
233
|
+
txout: TxOut;
|
|
234
|
+
keychain: KeychainKind;
|
|
235
|
+
isSpent: boolean;
|
|
236
|
+
derivationIndex: number;
|
|
237
|
+
/**
|
|
238
|
+
* None when the output is unconfirmed.
|
|
239
|
+
*/
|
|
240
|
+
confirmationBlockTime: ConfirmationBlockTime | undefined;
|
|
241
|
+
};
|
|
242
|
+
/**
|
|
243
|
+
* Generated factory for {@link LocalOutput} record objects.
|
|
244
|
+
*/
|
|
245
|
+
export declare const LocalOutput: Readonly<{
|
|
246
|
+
/**
|
|
247
|
+
* Create a frozen instance of {@link LocalOutput}, with defaults specified
|
|
248
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
249
|
+
*/
|
|
250
|
+
create: (partial: Partial<LocalOutput> & Required<Omit<LocalOutput, never>>) => LocalOutput;
|
|
251
|
+
/**
|
|
252
|
+
* Create a frozen instance of {@link LocalOutput}, with defaults specified
|
|
253
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
254
|
+
*/
|
|
255
|
+
new: (partial: Partial<LocalOutput> & Required<Omit<LocalOutput, never>>) => LocalOutput;
|
|
256
|
+
/**
|
|
257
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
258
|
+
*/
|
|
259
|
+
defaults: () => Partial<LocalOutput>;
|
|
260
|
+
}>;
|
|
261
|
+
/**
|
|
262
|
+
* Reference to a specific transaction output. Mirrors bitcoin::OutPoint.
|
|
263
|
+
*/
|
|
264
|
+
export type OutPoint = {
|
|
265
|
+
txid: string;
|
|
266
|
+
vout: number;
|
|
267
|
+
};
|
|
268
|
+
/**
|
|
269
|
+
* Generated factory for {@link OutPoint} record objects.
|
|
270
|
+
*/
|
|
271
|
+
export declare const OutPoint: Readonly<{
|
|
272
|
+
/**
|
|
273
|
+
* Create a frozen instance of {@link OutPoint}, with defaults specified
|
|
274
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
275
|
+
*/
|
|
276
|
+
create: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
|
|
277
|
+
/**
|
|
278
|
+
* Create a frozen instance of {@link OutPoint}, with defaults specified
|
|
279
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
280
|
+
*/
|
|
281
|
+
new: (partial: Partial<OutPoint> & Required<Omit<OutPoint, never>>) => OutPoint;
|
|
282
|
+
/**
|
|
283
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
284
|
+
*/
|
|
285
|
+
defaults: () => Partial<OutPoint>;
|
|
286
|
+
}>;
|
|
287
|
+
/**
|
|
288
|
+
* A single payment recipient.
|
|
289
|
+
*/
|
|
290
|
+
export type Recipient = {
|
|
291
|
+
address: string;
|
|
292
|
+
/**
|
|
293
|
+
* Amount in satoshis.
|
|
294
|
+
*/
|
|
295
|
+
amountSats: bigint;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* Generated factory for {@link Recipient} record objects.
|
|
299
|
+
*/
|
|
300
|
+
export declare const Recipient: Readonly<{
|
|
301
|
+
/**
|
|
302
|
+
* Create a frozen instance of {@link Recipient}, with defaults specified
|
|
303
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
304
|
+
*/
|
|
305
|
+
create: (partial: Partial<Recipient> & Required<Omit<Recipient, never>>) => Recipient;
|
|
306
|
+
/**
|
|
307
|
+
* Create a frozen instance of {@link Recipient}, with defaults specified
|
|
308
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
309
|
+
*/
|
|
310
|
+
new: (partial: Partial<Recipient> & Required<Omit<Recipient, never>>) => Recipient;
|
|
311
|
+
/**
|
|
312
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
313
|
+
*/
|
|
314
|
+
defaults: () => Partial<Recipient>;
|
|
315
|
+
}>;
|
|
316
|
+
/**
|
|
317
|
+
* How much was sent from / received into the wallet for a given transaction.
|
|
318
|
+
*/
|
|
319
|
+
export type SentAndReceived = {
|
|
320
|
+
/**
|
|
321
|
+
* Satoshis sent (wallet inputs consumed).
|
|
322
|
+
*/
|
|
323
|
+
sent: bigint;
|
|
324
|
+
/**
|
|
325
|
+
* Satoshis received (wallet outputs created).
|
|
326
|
+
*/
|
|
327
|
+
received: bigint;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Generated factory for {@link SentAndReceived} record objects.
|
|
331
|
+
*/
|
|
332
|
+
export declare const SentAndReceived: Readonly<{
|
|
333
|
+
/**
|
|
334
|
+
* Create a frozen instance of {@link SentAndReceived}, with defaults specified
|
|
335
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
336
|
+
*/
|
|
337
|
+
create: (partial: Partial<SentAndReceived> & Required<Omit<SentAndReceived, never>>) => SentAndReceived;
|
|
338
|
+
/**
|
|
339
|
+
* Create a frozen instance of {@link SentAndReceived}, with defaults specified
|
|
340
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
341
|
+
*/
|
|
342
|
+
new: (partial: Partial<SentAndReceived> & Required<Omit<SentAndReceived, never>>) => SentAndReceived;
|
|
343
|
+
/**
|
|
344
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
345
|
+
*/
|
|
346
|
+
defaults: () => Partial<SentAndReceived>;
|
|
347
|
+
}>;
|
|
348
|
+
/**
|
|
349
|
+
* Full details of a wallet-relevant transaction. Mirrors bdk_wallet::TxDetails.
|
|
350
|
+
*/
|
|
351
|
+
export type TxDetails = {
|
|
352
|
+
txid: string;
|
|
353
|
+
/**
|
|
354
|
+
* Sum of wallet-owned input amounts (satoshis).
|
|
355
|
+
*/
|
|
356
|
+
sent: bigint;
|
|
357
|
+
/**
|
|
358
|
+
* Sum of amounts to wallet-owned outputs (satoshis).
|
|
359
|
+
*/
|
|
360
|
+
received: bigint;
|
|
361
|
+
/**
|
|
362
|
+
* Fee paid in satoshis. None if some inputs are unknown.
|
|
363
|
+
*/
|
|
364
|
+
fee: /*u64*/ bigint | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* Fee rate in sat/vbyte. None if some inputs are unknown.
|
|
367
|
+
*/
|
|
368
|
+
feeRate: /*f64*/ number | undefined;
|
|
369
|
+
/**
|
|
370
|
+
* Net change to wallet balance in satoshis (positive = received more than sent).
|
|
371
|
+
*/
|
|
372
|
+
balanceDelta: bigint;
|
|
373
|
+
/**
|
|
374
|
+
* None when unconfirmed.
|
|
375
|
+
*/
|
|
376
|
+
confirmationBlockTime: ConfirmationBlockTime | undefined;
|
|
377
|
+
/**
|
|
378
|
+
* The full serialized transaction as hex.
|
|
379
|
+
*/
|
|
380
|
+
txHex: string;
|
|
381
|
+
};
|
|
382
|
+
/**
|
|
383
|
+
* Generated factory for {@link TxDetails} record objects.
|
|
384
|
+
*/
|
|
385
|
+
export declare const TxDetails: Readonly<{
|
|
386
|
+
/**
|
|
387
|
+
* Create a frozen instance of {@link TxDetails}, with defaults specified
|
|
388
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
389
|
+
*/
|
|
390
|
+
create: (partial: Partial<TxDetails> & Required<Omit<TxDetails, never>>) => TxDetails;
|
|
391
|
+
/**
|
|
392
|
+
* Create a frozen instance of {@link TxDetails}, with defaults specified
|
|
393
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
394
|
+
*/
|
|
395
|
+
new: (partial: Partial<TxDetails> & Required<Omit<TxDetails, never>>) => TxDetails;
|
|
396
|
+
/**
|
|
397
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
398
|
+
*/
|
|
399
|
+
defaults: () => Partial<TxDetails>;
|
|
400
|
+
}>;
|
|
401
|
+
/**
|
|
402
|
+
* A transaction output (value + locking script). Mirrors bitcoin::TxOut.
|
|
403
|
+
*/
|
|
404
|
+
export type TxOut = {
|
|
405
|
+
/**
|
|
406
|
+
* Value in satoshis.
|
|
407
|
+
*/
|
|
408
|
+
value: bigint;
|
|
409
|
+
/**
|
|
410
|
+
* Serialized scriptPubKey as lowercase hex.
|
|
411
|
+
*/
|
|
412
|
+
scriptPubkeyHex: string;
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Generated factory for {@link TxOut} record objects.
|
|
416
|
+
*/
|
|
417
|
+
export declare const TxOut: Readonly<{
|
|
418
|
+
/**
|
|
419
|
+
* Create a frozen instance of {@link TxOut}, with defaults specified
|
|
420
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
421
|
+
*/
|
|
422
|
+
create: (partial: Partial<TxOut> & Required<Omit<TxOut, never>>) => TxOut;
|
|
423
|
+
/**
|
|
424
|
+
* Create a frozen instance of {@link TxOut}, with defaults specified
|
|
425
|
+
* in Rust, in the {@link bdk_ffi} crate.
|
|
426
|
+
*/
|
|
427
|
+
new: (partial: Partial<TxOut> & Required<Omit<TxOut, never>>) => TxOut;
|
|
428
|
+
/**
|
|
429
|
+
* Defaults specified in the {@link bdk_ffi} crate.
|
|
430
|
+
*/
|
|
431
|
+
defaults: () => Partial<TxOut>;
|
|
432
|
+
}>;
|
|
433
|
+
export declare enum BdkError_Tags {
|
|
434
|
+
InvalidDescriptor = "InvalidDescriptor",
|
|
435
|
+
WalletCreationFailed = "WalletCreationFailed",
|
|
436
|
+
WalletLoadFailed = "WalletLoadFailed",
|
|
437
|
+
WalletLoadMismatch = "WalletLoadMismatch",
|
|
438
|
+
PersistError = "PersistError",
|
|
439
|
+
InvalidAddress = "InvalidAddress",
|
|
440
|
+
InvalidScript = "InvalidScript",
|
|
441
|
+
TransactionBuildFailed = "TransactionBuildFailed",
|
|
442
|
+
NoRecipients = "NoRecipients",
|
|
443
|
+
NoUtxosSelected = "NoUtxosSelected",
|
|
444
|
+
OutputBelowDustLimit = "OutputBelowDustLimit",
|
|
445
|
+
InsufficientFunds = "InsufficientFunds",
|
|
446
|
+
FeeRateTooLow = "FeeRateTooLow",
|
|
447
|
+
FeeTooLow = "FeeTooLow",
|
|
448
|
+
LockTimeConflict = "LockTimeConflict",
|
|
449
|
+
RbfSequenceConflict = "RbfSequenceConflict",
|
|
450
|
+
VersionZero = "VersionZero",
|
|
451
|
+
VersionOneCsv = "VersionOneCsv",
|
|
452
|
+
SpendingPolicyRequired = "SpendingPolicyRequired",
|
|
453
|
+
MissingKeyOrigin = "MissingKeyOrigin",
|
|
454
|
+
MissingNonWitnessUtxo = "MissingNonWitnessUtxo",
|
|
455
|
+
OutpointNotFound = "OutpointNotFound",
|
|
456
|
+
FeeBumpTargetNotFound = "FeeBumpTargetNotFound",
|
|
457
|
+
FeeBumpAlreadyConfirmed = "FeeBumpAlreadyConfirmed",
|
|
458
|
+
FeeBumpIrreplaceable = "FeeBumpIrreplaceable",
|
|
459
|
+
FeeBumpFeeRateUnavailable = "FeeBumpFeeRateUnavailable",
|
|
460
|
+
FeeBumpInvalidOutputIndex = "FeeBumpInvalidOutputIndex",
|
|
461
|
+
InvalidPsbt = "InvalidPsbt",
|
|
462
|
+
SignFailed = "SignFailed",
|
|
463
|
+
SignerMissingKey = "SignerMissingKey",
|
|
464
|
+
SignerInvalidKey = "SignerInvalidKey",
|
|
465
|
+
SignerUserCanceled = "SignerUserCanceled",
|
|
466
|
+
SignerInputIndexOutOfRange = "SignerInputIndexOutOfRange",
|
|
467
|
+
SignerMissingNonWitnessUtxo = "SignerMissingNonWitnessUtxo",
|
|
468
|
+
SignerMissingWitnessUtxo = "SignerMissingWitnessUtxo",
|
|
469
|
+
SignerMissingWitnessScript = "SignerMissingWitnessScript",
|
|
470
|
+
SignerNonStandardSighash = "SignerNonStandardSighash",
|
|
471
|
+
SignerInvalidSighash = "SignerInvalidSighash",
|
|
472
|
+
SyncFailed = "SyncFailed",
|
|
473
|
+
BroadcastFailed = "BroadcastFailed",
|
|
474
|
+
InvalidTransaction = "InvalidTransaction",
|
|
475
|
+
TransactionNotFound = "TransactionNotFound",
|
|
476
|
+
CannotConnect = "CannotConnect",
|
|
477
|
+
CalculateFeeError = "CalculateFeeError",
|
|
478
|
+
InvalidMnemonic = "InvalidMnemonic",
|
|
479
|
+
InvalidEntropy = "InvalidEntropy",
|
|
480
|
+
KeyError = "KeyError",
|
|
481
|
+
Generic = "Generic"
|
|
482
|
+
}
|
|
483
|
+
export declare const BdkError: {
|
|
484
|
+
InvalidDescriptor: {
|
|
485
|
+
new (message: string): {
|
|
486
|
+
readonly tag: BdkError_Tags.InvalidDescriptor;
|
|
487
|
+
/**
|
|
488
|
+
* @private
|
|
489
|
+
* This field is private and should not be used.
|
|
490
|
+
*/
|
|
491
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
492
|
+
/**
|
|
493
|
+
* @private
|
|
494
|
+
* This field is private and should not be used.
|
|
495
|
+
*/
|
|
496
|
+
readonly [variantOrdinalSymbol]: 1;
|
|
497
|
+
name: string;
|
|
498
|
+
message: string;
|
|
499
|
+
stack?: string;
|
|
500
|
+
cause?: unknown;
|
|
501
|
+
};
|
|
502
|
+
instanceOf(e: any): e is {
|
|
503
|
+
readonly tag: BdkError_Tags.InvalidDescriptor;
|
|
504
|
+
/**
|
|
505
|
+
* @private
|
|
506
|
+
* This field is private and should not be used.
|
|
507
|
+
*/
|
|
508
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
509
|
+
/**
|
|
510
|
+
* @private
|
|
511
|
+
* This field is private and should not be used.
|
|
512
|
+
*/
|
|
513
|
+
readonly [variantOrdinalSymbol]: 1;
|
|
514
|
+
name: string;
|
|
515
|
+
message: string;
|
|
516
|
+
stack?: string;
|
|
517
|
+
cause?: unknown;
|
|
518
|
+
};
|
|
519
|
+
isError(error: unknown): error is Error;
|
|
520
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
521
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
522
|
+
stackTraceLimit: number;
|
|
523
|
+
};
|
|
524
|
+
WalletCreationFailed: {
|
|
525
|
+
new (message: string): {
|
|
526
|
+
readonly tag: BdkError_Tags.WalletCreationFailed;
|
|
527
|
+
/**
|
|
528
|
+
* @private
|
|
529
|
+
* This field is private and should not be used.
|
|
530
|
+
*/
|
|
531
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
532
|
+
/**
|
|
533
|
+
* @private
|
|
534
|
+
* This field is private and should not be used.
|
|
535
|
+
*/
|
|
536
|
+
readonly [variantOrdinalSymbol]: 2;
|
|
537
|
+
name: string;
|
|
538
|
+
message: string;
|
|
539
|
+
stack?: string;
|
|
540
|
+
cause?: unknown;
|
|
541
|
+
};
|
|
542
|
+
instanceOf(e: any): e is {
|
|
543
|
+
readonly tag: BdkError_Tags.WalletCreationFailed;
|
|
544
|
+
/**
|
|
545
|
+
* @private
|
|
546
|
+
* This field is private and should not be used.
|
|
547
|
+
*/
|
|
548
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
549
|
+
/**
|
|
550
|
+
* @private
|
|
551
|
+
* This field is private and should not be used.
|
|
552
|
+
*/
|
|
553
|
+
readonly [variantOrdinalSymbol]: 2;
|
|
554
|
+
name: string;
|
|
555
|
+
message: string;
|
|
556
|
+
stack?: string;
|
|
557
|
+
cause?: unknown;
|
|
558
|
+
};
|
|
559
|
+
isError(error: unknown): error is Error;
|
|
560
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
561
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
562
|
+
stackTraceLimit: number;
|
|
563
|
+
};
|
|
564
|
+
WalletLoadFailed: {
|
|
565
|
+
new (message: string): {
|
|
566
|
+
readonly tag: BdkError_Tags.WalletLoadFailed;
|
|
567
|
+
/**
|
|
568
|
+
* @private
|
|
569
|
+
* This field is private and should not be used.
|
|
570
|
+
*/
|
|
571
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
572
|
+
/**
|
|
573
|
+
* @private
|
|
574
|
+
* This field is private and should not be used.
|
|
575
|
+
*/
|
|
576
|
+
readonly [variantOrdinalSymbol]: 3;
|
|
577
|
+
name: string;
|
|
578
|
+
message: string;
|
|
579
|
+
stack?: string;
|
|
580
|
+
cause?: unknown;
|
|
581
|
+
};
|
|
582
|
+
instanceOf(e: any): e is {
|
|
583
|
+
readonly tag: BdkError_Tags.WalletLoadFailed;
|
|
584
|
+
/**
|
|
585
|
+
* @private
|
|
586
|
+
* This field is private and should not be used.
|
|
587
|
+
*/
|
|
588
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
589
|
+
/**
|
|
590
|
+
* @private
|
|
591
|
+
* This field is private and should not be used.
|
|
592
|
+
*/
|
|
593
|
+
readonly [variantOrdinalSymbol]: 3;
|
|
594
|
+
name: string;
|
|
595
|
+
message: string;
|
|
596
|
+
stack?: string;
|
|
597
|
+
cause?: unknown;
|
|
598
|
+
};
|
|
599
|
+
isError(error: unknown): error is Error;
|
|
600
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
601
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
602
|
+
stackTraceLimit: number;
|
|
603
|
+
};
|
|
604
|
+
WalletLoadMismatch: {
|
|
605
|
+
new (message: string): {
|
|
606
|
+
readonly tag: BdkError_Tags.WalletLoadMismatch;
|
|
607
|
+
/**
|
|
608
|
+
* @private
|
|
609
|
+
* This field is private and should not be used.
|
|
610
|
+
*/
|
|
611
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
612
|
+
/**
|
|
613
|
+
* @private
|
|
614
|
+
* This field is private and should not be used.
|
|
615
|
+
*/
|
|
616
|
+
readonly [variantOrdinalSymbol]: 4;
|
|
617
|
+
name: string;
|
|
618
|
+
message: string;
|
|
619
|
+
stack?: string;
|
|
620
|
+
cause?: unknown;
|
|
621
|
+
};
|
|
622
|
+
instanceOf(e: any): e is {
|
|
623
|
+
readonly tag: BdkError_Tags.WalletLoadMismatch;
|
|
624
|
+
/**
|
|
625
|
+
* @private
|
|
626
|
+
* This field is private and should not be used.
|
|
627
|
+
*/
|
|
628
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
629
|
+
/**
|
|
630
|
+
* @private
|
|
631
|
+
* This field is private and should not be used.
|
|
632
|
+
*/
|
|
633
|
+
readonly [variantOrdinalSymbol]: 4;
|
|
634
|
+
name: string;
|
|
635
|
+
message: string;
|
|
636
|
+
stack?: string;
|
|
637
|
+
cause?: unknown;
|
|
638
|
+
};
|
|
639
|
+
isError(error: unknown): error is Error;
|
|
640
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
641
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
642
|
+
stackTraceLimit: number;
|
|
643
|
+
};
|
|
644
|
+
PersistError: {
|
|
645
|
+
new (message: string): {
|
|
646
|
+
readonly tag: BdkError_Tags.PersistError;
|
|
647
|
+
/**
|
|
648
|
+
* @private
|
|
649
|
+
* This field is private and should not be used.
|
|
650
|
+
*/
|
|
651
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
652
|
+
/**
|
|
653
|
+
* @private
|
|
654
|
+
* This field is private and should not be used.
|
|
655
|
+
*/
|
|
656
|
+
readonly [variantOrdinalSymbol]: 5;
|
|
657
|
+
name: string;
|
|
658
|
+
message: string;
|
|
659
|
+
stack?: string;
|
|
660
|
+
cause?: unknown;
|
|
661
|
+
};
|
|
662
|
+
instanceOf(e: any): e is {
|
|
663
|
+
readonly tag: BdkError_Tags.PersistError;
|
|
664
|
+
/**
|
|
665
|
+
* @private
|
|
666
|
+
* This field is private and should not be used.
|
|
667
|
+
*/
|
|
668
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
669
|
+
/**
|
|
670
|
+
* @private
|
|
671
|
+
* This field is private and should not be used.
|
|
672
|
+
*/
|
|
673
|
+
readonly [variantOrdinalSymbol]: 5;
|
|
674
|
+
name: string;
|
|
675
|
+
message: string;
|
|
676
|
+
stack?: string;
|
|
677
|
+
cause?: unknown;
|
|
678
|
+
};
|
|
679
|
+
isError(error: unknown): error is Error;
|
|
680
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
681
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
682
|
+
stackTraceLimit: number;
|
|
683
|
+
};
|
|
684
|
+
InvalidAddress: {
|
|
685
|
+
new (message: string): {
|
|
686
|
+
readonly tag: BdkError_Tags.InvalidAddress;
|
|
687
|
+
/**
|
|
688
|
+
* @private
|
|
689
|
+
* This field is private and should not be used.
|
|
690
|
+
*/
|
|
691
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
692
|
+
/**
|
|
693
|
+
* @private
|
|
694
|
+
* This field is private and should not be used.
|
|
695
|
+
*/
|
|
696
|
+
readonly [variantOrdinalSymbol]: 6;
|
|
697
|
+
name: string;
|
|
698
|
+
message: string;
|
|
699
|
+
stack?: string;
|
|
700
|
+
cause?: unknown;
|
|
701
|
+
};
|
|
702
|
+
instanceOf(e: any): e is {
|
|
703
|
+
readonly tag: BdkError_Tags.InvalidAddress;
|
|
704
|
+
/**
|
|
705
|
+
* @private
|
|
706
|
+
* This field is private and should not be used.
|
|
707
|
+
*/
|
|
708
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
709
|
+
/**
|
|
710
|
+
* @private
|
|
711
|
+
* This field is private and should not be used.
|
|
712
|
+
*/
|
|
713
|
+
readonly [variantOrdinalSymbol]: 6;
|
|
714
|
+
name: string;
|
|
715
|
+
message: string;
|
|
716
|
+
stack?: string;
|
|
717
|
+
cause?: unknown;
|
|
718
|
+
};
|
|
719
|
+
isError(error: unknown): error is Error;
|
|
720
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
721
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
722
|
+
stackTraceLimit: number;
|
|
723
|
+
};
|
|
724
|
+
InvalidScript: {
|
|
725
|
+
new (message: string): {
|
|
726
|
+
readonly tag: BdkError_Tags.InvalidScript;
|
|
727
|
+
/**
|
|
728
|
+
* @private
|
|
729
|
+
* This field is private and should not be used.
|
|
730
|
+
*/
|
|
731
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
732
|
+
/**
|
|
733
|
+
* @private
|
|
734
|
+
* This field is private and should not be used.
|
|
735
|
+
*/
|
|
736
|
+
readonly [variantOrdinalSymbol]: 7;
|
|
737
|
+
name: string;
|
|
738
|
+
message: string;
|
|
739
|
+
stack?: string;
|
|
740
|
+
cause?: unknown;
|
|
741
|
+
};
|
|
742
|
+
instanceOf(e: any): e is {
|
|
743
|
+
readonly tag: BdkError_Tags.InvalidScript;
|
|
744
|
+
/**
|
|
745
|
+
* @private
|
|
746
|
+
* This field is private and should not be used.
|
|
747
|
+
*/
|
|
748
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
749
|
+
/**
|
|
750
|
+
* @private
|
|
751
|
+
* This field is private and should not be used.
|
|
752
|
+
*/
|
|
753
|
+
readonly [variantOrdinalSymbol]: 7;
|
|
754
|
+
name: string;
|
|
755
|
+
message: string;
|
|
756
|
+
stack?: string;
|
|
757
|
+
cause?: unknown;
|
|
758
|
+
};
|
|
759
|
+
isError(error: unknown): error is Error;
|
|
760
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
761
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
762
|
+
stackTraceLimit: number;
|
|
763
|
+
};
|
|
764
|
+
TransactionBuildFailed: {
|
|
765
|
+
new (message: string): {
|
|
766
|
+
readonly tag: BdkError_Tags.TransactionBuildFailed;
|
|
767
|
+
/**
|
|
768
|
+
* @private
|
|
769
|
+
* This field is private and should not be used.
|
|
770
|
+
*/
|
|
771
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
772
|
+
/**
|
|
773
|
+
* @private
|
|
774
|
+
* This field is private and should not be used.
|
|
775
|
+
*/
|
|
776
|
+
readonly [variantOrdinalSymbol]: 8;
|
|
777
|
+
name: string;
|
|
778
|
+
message: string;
|
|
779
|
+
stack?: string;
|
|
780
|
+
cause?: unknown;
|
|
781
|
+
};
|
|
782
|
+
instanceOf(e: any): e is {
|
|
783
|
+
readonly tag: BdkError_Tags.TransactionBuildFailed;
|
|
784
|
+
/**
|
|
785
|
+
* @private
|
|
786
|
+
* This field is private and should not be used.
|
|
787
|
+
*/
|
|
788
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
789
|
+
/**
|
|
790
|
+
* @private
|
|
791
|
+
* This field is private and should not be used.
|
|
792
|
+
*/
|
|
793
|
+
readonly [variantOrdinalSymbol]: 8;
|
|
794
|
+
name: string;
|
|
795
|
+
message: string;
|
|
796
|
+
stack?: string;
|
|
797
|
+
cause?: unknown;
|
|
798
|
+
};
|
|
799
|
+
isError(error: unknown): error is Error;
|
|
800
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
801
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
802
|
+
stackTraceLimit: number;
|
|
803
|
+
};
|
|
804
|
+
NoRecipients: {
|
|
805
|
+
new (message: string): {
|
|
806
|
+
readonly tag: BdkError_Tags.NoRecipients;
|
|
807
|
+
/**
|
|
808
|
+
* @private
|
|
809
|
+
* This field is private and should not be used.
|
|
810
|
+
*/
|
|
811
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
812
|
+
/**
|
|
813
|
+
* @private
|
|
814
|
+
* This field is private and should not be used.
|
|
815
|
+
*/
|
|
816
|
+
readonly [variantOrdinalSymbol]: 9;
|
|
817
|
+
name: string;
|
|
818
|
+
message: string;
|
|
819
|
+
stack?: string;
|
|
820
|
+
cause?: unknown;
|
|
821
|
+
};
|
|
822
|
+
instanceOf(e: any): e is {
|
|
823
|
+
readonly tag: BdkError_Tags.NoRecipients;
|
|
824
|
+
/**
|
|
825
|
+
* @private
|
|
826
|
+
* This field is private and should not be used.
|
|
827
|
+
*/
|
|
828
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
829
|
+
/**
|
|
830
|
+
* @private
|
|
831
|
+
* This field is private and should not be used.
|
|
832
|
+
*/
|
|
833
|
+
readonly [variantOrdinalSymbol]: 9;
|
|
834
|
+
name: string;
|
|
835
|
+
message: string;
|
|
836
|
+
stack?: string;
|
|
837
|
+
cause?: unknown;
|
|
838
|
+
};
|
|
839
|
+
isError(error: unknown): error is Error;
|
|
840
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
841
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
842
|
+
stackTraceLimit: number;
|
|
843
|
+
};
|
|
844
|
+
NoUtxosSelected: {
|
|
845
|
+
new (message: string): {
|
|
846
|
+
readonly tag: BdkError_Tags.NoUtxosSelected;
|
|
847
|
+
/**
|
|
848
|
+
* @private
|
|
849
|
+
* This field is private and should not be used.
|
|
850
|
+
*/
|
|
851
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
852
|
+
/**
|
|
853
|
+
* @private
|
|
854
|
+
* This field is private and should not be used.
|
|
855
|
+
*/
|
|
856
|
+
readonly [variantOrdinalSymbol]: 10;
|
|
857
|
+
name: string;
|
|
858
|
+
message: string;
|
|
859
|
+
stack?: string;
|
|
860
|
+
cause?: unknown;
|
|
861
|
+
};
|
|
862
|
+
instanceOf(e: any): e is {
|
|
863
|
+
readonly tag: BdkError_Tags.NoUtxosSelected;
|
|
864
|
+
/**
|
|
865
|
+
* @private
|
|
866
|
+
* This field is private and should not be used.
|
|
867
|
+
*/
|
|
868
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
869
|
+
/**
|
|
870
|
+
* @private
|
|
871
|
+
* This field is private and should not be used.
|
|
872
|
+
*/
|
|
873
|
+
readonly [variantOrdinalSymbol]: 10;
|
|
874
|
+
name: string;
|
|
875
|
+
message: string;
|
|
876
|
+
stack?: string;
|
|
877
|
+
cause?: unknown;
|
|
878
|
+
};
|
|
879
|
+
isError(error: unknown): error is Error;
|
|
880
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
881
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
882
|
+
stackTraceLimit: number;
|
|
883
|
+
};
|
|
884
|
+
OutputBelowDustLimit: {
|
|
885
|
+
new (message: string): {
|
|
886
|
+
readonly tag: BdkError_Tags.OutputBelowDustLimit;
|
|
887
|
+
/**
|
|
888
|
+
* @private
|
|
889
|
+
* This field is private and should not be used.
|
|
890
|
+
*/
|
|
891
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
892
|
+
/**
|
|
893
|
+
* @private
|
|
894
|
+
* This field is private and should not be used.
|
|
895
|
+
*/
|
|
896
|
+
readonly [variantOrdinalSymbol]: 11;
|
|
897
|
+
name: string;
|
|
898
|
+
message: string;
|
|
899
|
+
stack?: string;
|
|
900
|
+
cause?: unknown;
|
|
901
|
+
};
|
|
902
|
+
instanceOf(e: any): e is {
|
|
903
|
+
readonly tag: BdkError_Tags.OutputBelowDustLimit;
|
|
904
|
+
/**
|
|
905
|
+
* @private
|
|
906
|
+
* This field is private and should not be used.
|
|
907
|
+
*/
|
|
908
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
909
|
+
/**
|
|
910
|
+
* @private
|
|
911
|
+
* This field is private and should not be used.
|
|
912
|
+
*/
|
|
913
|
+
readonly [variantOrdinalSymbol]: 11;
|
|
914
|
+
name: string;
|
|
915
|
+
message: string;
|
|
916
|
+
stack?: string;
|
|
917
|
+
cause?: unknown;
|
|
918
|
+
};
|
|
919
|
+
isError(error: unknown): error is Error;
|
|
920
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
921
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
922
|
+
stackTraceLimit: number;
|
|
923
|
+
};
|
|
924
|
+
InsufficientFunds: {
|
|
925
|
+
new (message: string): {
|
|
926
|
+
readonly tag: BdkError_Tags.InsufficientFunds;
|
|
927
|
+
/**
|
|
928
|
+
* @private
|
|
929
|
+
* This field is private and should not be used.
|
|
930
|
+
*/
|
|
931
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
932
|
+
/**
|
|
933
|
+
* @private
|
|
934
|
+
* This field is private and should not be used.
|
|
935
|
+
*/
|
|
936
|
+
readonly [variantOrdinalSymbol]: 12;
|
|
937
|
+
name: string;
|
|
938
|
+
message: string;
|
|
939
|
+
stack?: string;
|
|
940
|
+
cause?: unknown;
|
|
941
|
+
};
|
|
942
|
+
instanceOf(e: any): e is {
|
|
943
|
+
readonly tag: BdkError_Tags.InsufficientFunds;
|
|
944
|
+
/**
|
|
945
|
+
* @private
|
|
946
|
+
* This field is private and should not be used.
|
|
947
|
+
*/
|
|
948
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
949
|
+
/**
|
|
950
|
+
* @private
|
|
951
|
+
* This field is private and should not be used.
|
|
952
|
+
*/
|
|
953
|
+
readonly [variantOrdinalSymbol]: 12;
|
|
954
|
+
name: string;
|
|
955
|
+
message: string;
|
|
956
|
+
stack?: string;
|
|
957
|
+
cause?: unknown;
|
|
958
|
+
};
|
|
959
|
+
isError(error: unknown): error is Error;
|
|
960
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
961
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
962
|
+
stackTraceLimit: number;
|
|
963
|
+
};
|
|
964
|
+
FeeRateTooLow: {
|
|
965
|
+
new (message: string): {
|
|
966
|
+
readonly tag: BdkError_Tags.FeeRateTooLow;
|
|
967
|
+
/**
|
|
968
|
+
* @private
|
|
969
|
+
* This field is private and should not be used.
|
|
970
|
+
*/
|
|
971
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
972
|
+
/**
|
|
973
|
+
* @private
|
|
974
|
+
* This field is private and should not be used.
|
|
975
|
+
*/
|
|
976
|
+
readonly [variantOrdinalSymbol]: 13;
|
|
977
|
+
name: string;
|
|
978
|
+
message: string;
|
|
979
|
+
stack?: string;
|
|
980
|
+
cause?: unknown;
|
|
981
|
+
};
|
|
982
|
+
instanceOf(e: any): e is {
|
|
983
|
+
readonly tag: BdkError_Tags.FeeRateTooLow;
|
|
984
|
+
/**
|
|
985
|
+
* @private
|
|
986
|
+
* This field is private and should not be used.
|
|
987
|
+
*/
|
|
988
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
989
|
+
/**
|
|
990
|
+
* @private
|
|
991
|
+
* This field is private and should not be used.
|
|
992
|
+
*/
|
|
993
|
+
readonly [variantOrdinalSymbol]: 13;
|
|
994
|
+
name: string;
|
|
995
|
+
message: string;
|
|
996
|
+
stack?: string;
|
|
997
|
+
cause?: unknown;
|
|
998
|
+
};
|
|
999
|
+
isError(error: unknown): error is Error;
|
|
1000
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1001
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1002
|
+
stackTraceLimit: number;
|
|
1003
|
+
};
|
|
1004
|
+
FeeTooLow: {
|
|
1005
|
+
new (message: string): {
|
|
1006
|
+
readonly tag: BdkError_Tags.FeeTooLow;
|
|
1007
|
+
/**
|
|
1008
|
+
* @private
|
|
1009
|
+
* This field is private and should not be used.
|
|
1010
|
+
*/
|
|
1011
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1012
|
+
/**
|
|
1013
|
+
* @private
|
|
1014
|
+
* This field is private and should not be used.
|
|
1015
|
+
*/
|
|
1016
|
+
readonly [variantOrdinalSymbol]: 14;
|
|
1017
|
+
name: string;
|
|
1018
|
+
message: string;
|
|
1019
|
+
stack?: string;
|
|
1020
|
+
cause?: unknown;
|
|
1021
|
+
};
|
|
1022
|
+
instanceOf(e: any): e is {
|
|
1023
|
+
readonly tag: BdkError_Tags.FeeTooLow;
|
|
1024
|
+
/**
|
|
1025
|
+
* @private
|
|
1026
|
+
* This field is private and should not be used.
|
|
1027
|
+
*/
|
|
1028
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1029
|
+
/**
|
|
1030
|
+
* @private
|
|
1031
|
+
* This field is private and should not be used.
|
|
1032
|
+
*/
|
|
1033
|
+
readonly [variantOrdinalSymbol]: 14;
|
|
1034
|
+
name: string;
|
|
1035
|
+
message: string;
|
|
1036
|
+
stack?: string;
|
|
1037
|
+
cause?: unknown;
|
|
1038
|
+
};
|
|
1039
|
+
isError(error: unknown): error is Error;
|
|
1040
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1041
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1042
|
+
stackTraceLimit: number;
|
|
1043
|
+
};
|
|
1044
|
+
LockTimeConflict: {
|
|
1045
|
+
new (message: string): {
|
|
1046
|
+
readonly tag: BdkError_Tags.LockTimeConflict;
|
|
1047
|
+
/**
|
|
1048
|
+
* @private
|
|
1049
|
+
* This field is private and should not be used.
|
|
1050
|
+
*/
|
|
1051
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1052
|
+
/**
|
|
1053
|
+
* @private
|
|
1054
|
+
* This field is private and should not be used.
|
|
1055
|
+
*/
|
|
1056
|
+
readonly [variantOrdinalSymbol]: 15;
|
|
1057
|
+
name: string;
|
|
1058
|
+
message: string;
|
|
1059
|
+
stack?: string;
|
|
1060
|
+
cause?: unknown;
|
|
1061
|
+
};
|
|
1062
|
+
instanceOf(e: any): e is {
|
|
1063
|
+
readonly tag: BdkError_Tags.LockTimeConflict;
|
|
1064
|
+
/**
|
|
1065
|
+
* @private
|
|
1066
|
+
* This field is private and should not be used.
|
|
1067
|
+
*/
|
|
1068
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* @private
|
|
1071
|
+
* This field is private and should not be used.
|
|
1072
|
+
*/
|
|
1073
|
+
readonly [variantOrdinalSymbol]: 15;
|
|
1074
|
+
name: string;
|
|
1075
|
+
message: string;
|
|
1076
|
+
stack?: string;
|
|
1077
|
+
cause?: unknown;
|
|
1078
|
+
};
|
|
1079
|
+
isError(error: unknown): error is Error;
|
|
1080
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1081
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1082
|
+
stackTraceLimit: number;
|
|
1083
|
+
};
|
|
1084
|
+
RbfSequenceConflict: {
|
|
1085
|
+
new (message: string): {
|
|
1086
|
+
readonly tag: BdkError_Tags.RbfSequenceConflict;
|
|
1087
|
+
/**
|
|
1088
|
+
* @private
|
|
1089
|
+
* This field is private and should not be used.
|
|
1090
|
+
*/
|
|
1091
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1092
|
+
/**
|
|
1093
|
+
* @private
|
|
1094
|
+
* This field is private and should not be used.
|
|
1095
|
+
*/
|
|
1096
|
+
readonly [variantOrdinalSymbol]: 16;
|
|
1097
|
+
name: string;
|
|
1098
|
+
message: string;
|
|
1099
|
+
stack?: string;
|
|
1100
|
+
cause?: unknown;
|
|
1101
|
+
};
|
|
1102
|
+
instanceOf(e: any): e is {
|
|
1103
|
+
readonly tag: BdkError_Tags.RbfSequenceConflict;
|
|
1104
|
+
/**
|
|
1105
|
+
* @private
|
|
1106
|
+
* This field is private and should not be used.
|
|
1107
|
+
*/
|
|
1108
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1109
|
+
/**
|
|
1110
|
+
* @private
|
|
1111
|
+
* This field is private and should not be used.
|
|
1112
|
+
*/
|
|
1113
|
+
readonly [variantOrdinalSymbol]: 16;
|
|
1114
|
+
name: string;
|
|
1115
|
+
message: string;
|
|
1116
|
+
stack?: string;
|
|
1117
|
+
cause?: unknown;
|
|
1118
|
+
};
|
|
1119
|
+
isError(error: unknown): error is Error;
|
|
1120
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1121
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1122
|
+
stackTraceLimit: number;
|
|
1123
|
+
};
|
|
1124
|
+
VersionZero: {
|
|
1125
|
+
new (message: string): {
|
|
1126
|
+
readonly tag: BdkError_Tags.VersionZero;
|
|
1127
|
+
/**
|
|
1128
|
+
* @private
|
|
1129
|
+
* This field is private and should not be used.
|
|
1130
|
+
*/
|
|
1131
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1132
|
+
/**
|
|
1133
|
+
* @private
|
|
1134
|
+
* This field is private and should not be used.
|
|
1135
|
+
*/
|
|
1136
|
+
readonly [variantOrdinalSymbol]: 17;
|
|
1137
|
+
name: string;
|
|
1138
|
+
message: string;
|
|
1139
|
+
stack?: string;
|
|
1140
|
+
cause?: unknown;
|
|
1141
|
+
};
|
|
1142
|
+
instanceOf(e: any): e is {
|
|
1143
|
+
readonly tag: BdkError_Tags.VersionZero;
|
|
1144
|
+
/**
|
|
1145
|
+
* @private
|
|
1146
|
+
* This field is private and should not be used.
|
|
1147
|
+
*/
|
|
1148
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1149
|
+
/**
|
|
1150
|
+
* @private
|
|
1151
|
+
* This field is private and should not be used.
|
|
1152
|
+
*/
|
|
1153
|
+
readonly [variantOrdinalSymbol]: 17;
|
|
1154
|
+
name: string;
|
|
1155
|
+
message: string;
|
|
1156
|
+
stack?: string;
|
|
1157
|
+
cause?: unknown;
|
|
1158
|
+
};
|
|
1159
|
+
isError(error: unknown): error is Error;
|
|
1160
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1161
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1162
|
+
stackTraceLimit: number;
|
|
1163
|
+
};
|
|
1164
|
+
VersionOneCsv: {
|
|
1165
|
+
new (message: string): {
|
|
1166
|
+
readonly tag: BdkError_Tags.VersionOneCsv;
|
|
1167
|
+
/**
|
|
1168
|
+
* @private
|
|
1169
|
+
* This field is private and should not be used.
|
|
1170
|
+
*/
|
|
1171
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1172
|
+
/**
|
|
1173
|
+
* @private
|
|
1174
|
+
* This field is private and should not be used.
|
|
1175
|
+
*/
|
|
1176
|
+
readonly [variantOrdinalSymbol]: 18;
|
|
1177
|
+
name: string;
|
|
1178
|
+
message: string;
|
|
1179
|
+
stack?: string;
|
|
1180
|
+
cause?: unknown;
|
|
1181
|
+
};
|
|
1182
|
+
instanceOf(e: any): e is {
|
|
1183
|
+
readonly tag: BdkError_Tags.VersionOneCsv;
|
|
1184
|
+
/**
|
|
1185
|
+
* @private
|
|
1186
|
+
* This field is private and should not be used.
|
|
1187
|
+
*/
|
|
1188
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1189
|
+
/**
|
|
1190
|
+
* @private
|
|
1191
|
+
* This field is private and should not be used.
|
|
1192
|
+
*/
|
|
1193
|
+
readonly [variantOrdinalSymbol]: 18;
|
|
1194
|
+
name: string;
|
|
1195
|
+
message: string;
|
|
1196
|
+
stack?: string;
|
|
1197
|
+
cause?: unknown;
|
|
1198
|
+
};
|
|
1199
|
+
isError(error: unknown): error is Error;
|
|
1200
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1201
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1202
|
+
stackTraceLimit: number;
|
|
1203
|
+
};
|
|
1204
|
+
SpendingPolicyRequired: {
|
|
1205
|
+
new (message: string): {
|
|
1206
|
+
readonly tag: BdkError_Tags.SpendingPolicyRequired;
|
|
1207
|
+
/**
|
|
1208
|
+
* @private
|
|
1209
|
+
* This field is private and should not be used.
|
|
1210
|
+
*/
|
|
1211
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1212
|
+
/**
|
|
1213
|
+
* @private
|
|
1214
|
+
* This field is private and should not be used.
|
|
1215
|
+
*/
|
|
1216
|
+
readonly [variantOrdinalSymbol]: 19;
|
|
1217
|
+
name: string;
|
|
1218
|
+
message: string;
|
|
1219
|
+
stack?: string;
|
|
1220
|
+
cause?: unknown;
|
|
1221
|
+
};
|
|
1222
|
+
instanceOf(e: any): e is {
|
|
1223
|
+
readonly tag: BdkError_Tags.SpendingPolicyRequired;
|
|
1224
|
+
/**
|
|
1225
|
+
* @private
|
|
1226
|
+
* This field is private and should not be used.
|
|
1227
|
+
*/
|
|
1228
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1229
|
+
/**
|
|
1230
|
+
* @private
|
|
1231
|
+
* This field is private and should not be used.
|
|
1232
|
+
*/
|
|
1233
|
+
readonly [variantOrdinalSymbol]: 19;
|
|
1234
|
+
name: string;
|
|
1235
|
+
message: string;
|
|
1236
|
+
stack?: string;
|
|
1237
|
+
cause?: unknown;
|
|
1238
|
+
};
|
|
1239
|
+
isError(error: unknown): error is Error;
|
|
1240
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1241
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1242
|
+
stackTraceLimit: number;
|
|
1243
|
+
};
|
|
1244
|
+
MissingKeyOrigin: {
|
|
1245
|
+
new (message: string): {
|
|
1246
|
+
readonly tag: BdkError_Tags.MissingKeyOrigin;
|
|
1247
|
+
/**
|
|
1248
|
+
* @private
|
|
1249
|
+
* This field is private and should not be used.
|
|
1250
|
+
*/
|
|
1251
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1252
|
+
/**
|
|
1253
|
+
* @private
|
|
1254
|
+
* This field is private and should not be used.
|
|
1255
|
+
*/
|
|
1256
|
+
readonly [variantOrdinalSymbol]: 20;
|
|
1257
|
+
name: string;
|
|
1258
|
+
message: string;
|
|
1259
|
+
stack?: string;
|
|
1260
|
+
cause?: unknown;
|
|
1261
|
+
};
|
|
1262
|
+
instanceOf(e: any): e is {
|
|
1263
|
+
readonly tag: BdkError_Tags.MissingKeyOrigin;
|
|
1264
|
+
/**
|
|
1265
|
+
* @private
|
|
1266
|
+
* This field is private and should not be used.
|
|
1267
|
+
*/
|
|
1268
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1269
|
+
/**
|
|
1270
|
+
* @private
|
|
1271
|
+
* This field is private and should not be used.
|
|
1272
|
+
*/
|
|
1273
|
+
readonly [variantOrdinalSymbol]: 20;
|
|
1274
|
+
name: string;
|
|
1275
|
+
message: string;
|
|
1276
|
+
stack?: string;
|
|
1277
|
+
cause?: unknown;
|
|
1278
|
+
};
|
|
1279
|
+
isError(error: unknown): error is Error;
|
|
1280
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1281
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1282
|
+
stackTraceLimit: number;
|
|
1283
|
+
};
|
|
1284
|
+
MissingNonWitnessUtxo: {
|
|
1285
|
+
new (message: string): {
|
|
1286
|
+
readonly tag: BdkError_Tags.MissingNonWitnessUtxo;
|
|
1287
|
+
/**
|
|
1288
|
+
* @private
|
|
1289
|
+
* This field is private and should not be used.
|
|
1290
|
+
*/
|
|
1291
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* @private
|
|
1294
|
+
* This field is private and should not be used.
|
|
1295
|
+
*/
|
|
1296
|
+
readonly [variantOrdinalSymbol]: 21;
|
|
1297
|
+
name: string;
|
|
1298
|
+
message: string;
|
|
1299
|
+
stack?: string;
|
|
1300
|
+
cause?: unknown;
|
|
1301
|
+
};
|
|
1302
|
+
instanceOf(e: any): e is {
|
|
1303
|
+
readonly tag: BdkError_Tags.MissingNonWitnessUtxo;
|
|
1304
|
+
/**
|
|
1305
|
+
* @private
|
|
1306
|
+
* This field is private and should not be used.
|
|
1307
|
+
*/
|
|
1308
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1309
|
+
/**
|
|
1310
|
+
* @private
|
|
1311
|
+
* This field is private and should not be used.
|
|
1312
|
+
*/
|
|
1313
|
+
readonly [variantOrdinalSymbol]: 21;
|
|
1314
|
+
name: string;
|
|
1315
|
+
message: string;
|
|
1316
|
+
stack?: string;
|
|
1317
|
+
cause?: unknown;
|
|
1318
|
+
};
|
|
1319
|
+
isError(error: unknown): error is Error;
|
|
1320
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1321
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1322
|
+
stackTraceLimit: number;
|
|
1323
|
+
};
|
|
1324
|
+
OutpointNotFound: {
|
|
1325
|
+
new (message: string): {
|
|
1326
|
+
readonly tag: BdkError_Tags.OutpointNotFound;
|
|
1327
|
+
/**
|
|
1328
|
+
* @private
|
|
1329
|
+
* This field is private and should not be used.
|
|
1330
|
+
*/
|
|
1331
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1332
|
+
/**
|
|
1333
|
+
* @private
|
|
1334
|
+
* This field is private and should not be used.
|
|
1335
|
+
*/
|
|
1336
|
+
readonly [variantOrdinalSymbol]: 22;
|
|
1337
|
+
name: string;
|
|
1338
|
+
message: string;
|
|
1339
|
+
stack?: string;
|
|
1340
|
+
cause?: unknown;
|
|
1341
|
+
};
|
|
1342
|
+
instanceOf(e: any): e is {
|
|
1343
|
+
readonly tag: BdkError_Tags.OutpointNotFound;
|
|
1344
|
+
/**
|
|
1345
|
+
* @private
|
|
1346
|
+
* This field is private and should not be used.
|
|
1347
|
+
*/
|
|
1348
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1349
|
+
/**
|
|
1350
|
+
* @private
|
|
1351
|
+
* This field is private and should not be used.
|
|
1352
|
+
*/
|
|
1353
|
+
readonly [variantOrdinalSymbol]: 22;
|
|
1354
|
+
name: string;
|
|
1355
|
+
message: string;
|
|
1356
|
+
stack?: string;
|
|
1357
|
+
cause?: unknown;
|
|
1358
|
+
};
|
|
1359
|
+
isError(error: unknown): error is Error;
|
|
1360
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1361
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1362
|
+
stackTraceLimit: number;
|
|
1363
|
+
};
|
|
1364
|
+
FeeBumpTargetNotFound: {
|
|
1365
|
+
new (message: string): {
|
|
1366
|
+
readonly tag: BdkError_Tags.FeeBumpTargetNotFound;
|
|
1367
|
+
/**
|
|
1368
|
+
* @private
|
|
1369
|
+
* This field is private and should not be used.
|
|
1370
|
+
*/
|
|
1371
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* @private
|
|
1374
|
+
* This field is private and should not be used.
|
|
1375
|
+
*/
|
|
1376
|
+
readonly [variantOrdinalSymbol]: 23;
|
|
1377
|
+
name: string;
|
|
1378
|
+
message: string;
|
|
1379
|
+
stack?: string;
|
|
1380
|
+
cause?: unknown;
|
|
1381
|
+
};
|
|
1382
|
+
instanceOf(e: any): e is {
|
|
1383
|
+
readonly tag: BdkError_Tags.FeeBumpTargetNotFound;
|
|
1384
|
+
/**
|
|
1385
|
+
* @private
|
|
1386
|
+
* This field is private and should not be used.
|
|
1387
|
+
*/
|
|
1388
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* @private
|
|
1391
|
+
* This field is private and should not be used.
|
|
1392
|
+
*/
|
|
1393
|
+
readonly [variantOrdinalSymbol]: 23;
|
|
1394
|
+
name: string;
|
|
1395
|
+
message: string;
|
|
1396
|
+
stack?: string;
|
|
1397
|
+
cause?: unknown;
|
|
1398
|
+
};
|
|
1399
|
+
isError(error: unknown): error is Error;
|
|
1400
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1401
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1402
|
+
stackTraceLimit: number;
|
|
1403
|
+
};
|
|
1404
|
+
FeeBumpAlreadyConfirmed: {
|
|
1405
|
+
new (message: string): {
|
|
1406
|
+
readonly tag: BdkError_Tags.FeeBumpAlreadyConfirmed;
|
|
1407
|
+
/**
|
|
1408
|
+
* @private
|
|
1409
|
+
* This field is private and should not be used.
|
|
1410
|
+
*/
|
|
1411
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1412
|
+
/**
|
|
1413
|
+
* @private
|
|
1414
|
+
* This field is private and should not be used.
|
|
1415
|
+
*/
|
|
1416
|
+
readonly [variantOrdinalSymbol]: 24;
|
|
1417
|
+
name: string;
|
|
1418
|
+
message: string;
|
|
1419
|
+
stack?: string;
|
|
1420
|
+
cause?: unknown;
|
|
1421
|
+
};
|
|
1422
|
+
instanceOf(e: any): e is {
|
|
1423
|
+
readonly tag: BdkError_Tags.FeeBumpAlreadyConfirmed;
|
|
1424
|
+
/**
|
|
1425
|
+
* @private
|
|
1426
|
+
* This field is private and should not be used.
|
|
1427
|
+
*/
|
|
1428
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1429
|
+
/**
|
|
1430
|
+
* @private
|
|
1431
|
+
* This field is private and should not be used.
|
|
1432
|
+
*/
|
|
1433
|
+
readonly [variantOrdinalSymbol]: 24;
|
|
1434
|
+
name: string;
|
|
1435
|
+
message: string;
|
|
1436
|
+
stack?: string;
|
|
1437
|
+
cause?: unknown;
|
|
1438
|
+
};
|
|
1439
|
+
isError(error: unknown): error is Error;
|
|
1440
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1441
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1442
|
+
stackTraceLimit: number;
|
|
1443
|
+
};
|
|
1444
|
+
FeeBumpIrreplaceable: {
|
|
1445
|
+
new (message: string): {
|
|
1446
|
+
readonly tag: BdkError_Tags.FeeBumpIrreplaceable;
|
|
1447
|
+
/**
|
|
1448
|
+
* @private
|
|
1449
|
+
* This field is private and should not be used.
|
|
1450
|
+
*/
|
|
1451
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1452
|
+
/**
|
|
1453
|
+
* @private
|
|
1454
|
+
* This field is private and should not be used.
|
|
1455
|
+
*/
|
|
1456
|
+
readonly [variantOrdinalSymbol]: 25;
|
|
1457
|
+
name: string;
|
|
1458
|
+
message: string;
|
|
1459
|
+
stack?: string;
|
|
1460
|
+
cause?: unknown;
|
|
1461
|
+
};
|
|
1462
|
+
instanceOf(e: any): e is {
|
|
1463
|
+
readonly tag: BdkError_Tags.FeeBumpIrreplaceable;
|
|
1464
|
+
/**
|
|
1465
|
+
* @private
|
|
1466
|
+
* This field is private and should not be used.
|
|
1467
|
+
*/
|
|
1468
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1469
|
+
/**
|
|
1470
|
+
* @private
|
|
1471
|
+
* This field is private and should not be used.
|
|
1472
|
+
*/
|
|
1473
|
+
readonly [variantOrdinalSymbol]: 25;
|
|
1474
|
+
name: string;
|
|
1475
|
+
message: string;
|
|
1476
|
+
stack?: string;
|
|
1477
|
+
cause?: unknown;
|
|
1478
|
+
};
|
|
1479
|
+
isError(error: unknown): error is Error;
|
|
1480
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1481
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1482
|
+
stackTraceLimit: number;
|
|
1483
|
+
};
|
|
1484
|
+
FeeBumpFeeRateUnavailable: {
|
|
1485
|
+
new (message: string): {
|
|
1486
|
+
readonly tag: BdkError_Tags.FeeBumpFeeRateUnavailable;
|
|
1487
|
+
/**
|
|
1488
|
+
* @private
|
|
1489
|
+
* This field is private and should not be used.
|
|
1490
|
+
*/
|
|
1491
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* @private
|
|
1494
|
+
* This field is private and should not be used.
|
|
1495
|
+
*/
|
|
1496
|
+
readonly [variantOrdinalSymbol]: 26;
|
|
1497
|
+
name: string;
|
|
1498
|
+
message: string;
|
|
1499
|
+
stack?: string;
|
|
1500
|
+
cause?: unknown;
|
|
1501
|
+
};
|
|
1502
|
+
instanceOf(e: any): e is {
|
|
1503
|
+
readonly tag: BdkError_Tags.FeeBumpFeeRateUnavailable;
|
|
1504
|
+
/**
|
|
1505
|
+
* @private
|
|
1506
|
+
* This field is private and should not be used.
|
|
1507
|
+
*/
|
|
1508
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* @private
|
|
1511
|
+
* This field is private and should not be used.
|
|
1512
|
+
*/
|
|
1513
|
+
readonly [variantOrdinalSymbol]: 26;
|
|
1514
|
+
name: string;
|
|
1515
|
+
message: string;
|
|
1516
|
+
stack?: string;
|
|
1517
|
+
cause?: unknown;
|
|
1518
|
+
};
|
|
1519
|
+
isError(error: unknown): error is Error;
|
|
1520
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1521
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1522
|
+
stackTraceLimit: number;
|
|
1523
|
+
};
|
|
1524
|
+
FeeBumpInvalidOutputIndex: {
|
|
1525
|
+
new (message: string): {
|
|
1526
|
+
readonly tag: BdkError_Tags.FeeBumpInvalidOutputIndex;
|
|
1527
|
+
/**
|
|
1528
|
+
* @private
|
|
1529
|
+
* This field is private and should not be used.
|
|
1530
|
+
*/
|
|
1531
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* @private
|
|
1534
|
+
* This field is private and should not be used.
|
|
1535
|
+
*/
|
|
1536
|
+
readonly [variantOrdinalSymbol]: 27;
|
|
1537
|
+
name: string;
|
|
1538
|
+
message: string;
|
|
1539
|
+
stack?: string;
|
|
1540
|
+
cause?: unknown;
|
|
1541
|
+
};
|
|
1542
|
+
instanceOf(e: any): e is {
|
|
1543
|
+
readonly tag: BdkError_Tags.FeeBumpInvalidOutputIndex;
|
|
1544
|
+
/**
|
|
1545
|
+
* @private
|
|
1546
|
+
* This field is private and should not be used.
|
|
1547
|
+
*/
|
|
1548
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1549
|
+
/**
|
|
1550
|
+
* @private
|
|
1551
|
+
* This field is private and should not be used.
|
|
1552
|
+
*/
|
|
1553
|
+
readonly [variantOrdinalSymbol]: 27;
|
|
1554
|
+
name: string;
|
|
1555
|
+
message: string;
|
|
1556
|
+
stack?: string;
|
|
1557
|
+
cause?: unknown;
|
|
1558
|
+
};
|
|
1559
|
+
isError(error: unknown): error is Error;
|
|
1560
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1561
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1562
|
+
stackTraceLimit: number;
|
|
1563
|
+
};
|
|
1564
|
+
InvalidPsbt: {
|
|
1565
|
+
new (message: string): {
|
|
1566
|
+
readonly tag: BdkError_Tags.InvalidPsbt;
|
|
1567
|
+
/**
|
|
1568
|
+
* @private
|
|
1569
|
+
* This field is private and should not be used.
|
|
1570
|
+
*/
|
|
1571
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1572
|
+
/**
|
|
1573
|
+
* @private
|
|
1574
|
+
* This field is private and should not be used.
|
|
1575
|
+
*/
|
|
1576
|
+
readonly [variantOrdinalSymbol]: 28;
|
|
1577
|
+
name: string;
|
|
1578
|
+
message: string;
|
|
1579
|
+
stack?: string;
|
|
1580
|
+
cause?: unknown;
|
|
1581
|
+
};
|
|
1582
|
+
instanceOf(e: any): e is {
|
|
1583
|
+
readonly tag: BdkError_Tags.InvalidPsbt;
|
|
1584
|
+
/**
|
|
1585
|
+
* @private
|
|
1586
|
+
* This field is private and should not be used.
|
|
1587
|
+
*/
|
|
1588
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1589
|
+
/**
|
|
1590
|
+
* @private
|
|
1591
|
+
* This field is private and should not be used.
|
|
1592
|
+
*/
|
|
1593
|
+
readonly [variantOrdinalSymbol]: 28;
|
|
1594
|
+
name: string;
|
|
1595
|
+
message: string;
|
|
1596
|
+
stack?: string;
|
|
1597
|
+
cause?: unknown;
|
|
1598
|
+
};
|
|
1599
|
+
isError(error: unknown): error is Error;
|
|
1600
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1601
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1602
|
+
stackTraceLimit: number;
|
|
1603
|
+
};
|
|
1604
|
+
SignFailed: {
|
|
1605
|
+
new (message: string): {
|
|
1606
|
+
readonly tag: BdkError_Tags.SignFailed;
|
|
1607
|
+
/**
|
|
1608
|
+
* @private
|
|
1609
|
+
* This field is private and should not be used.
|
|
1610
|
+
*/
|
|
1611
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1612
|
+
/**
|
|
1613
|
+
* @private
|
|
1614
|
+
* This field is private and should not be used.
|
|
1615
|
+
*/
|
|
1616
|
+
readonly [variantOrdinalSymbol]: 29;
|
|
1617
|
+
name: string;
|
|
1618
|
+
message: string;
|
|
1619
|
+
stack?: string;
|
|
1620
|
+
cause?: unknown;
|
|
1621
|
+
};
|
|
1622
|
+
instanceOf(e: any): e is {
|
|
1623
|
+
readonly tag: BdkError_Tags.SignFailed;
|
|
1624
|
+
/**
|
|
1625
|
+
* @private
|
|
1626
|
+
* This field is private and should not be used.
|
|
1627
|
+
*/
|
|
1628
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1629
|
+
/**
|
|
1630
|
+
* @private
|
|
1631
|
+
* This field is private and should not be used.
|
|
1632
|
+
*/
|
|
1633
|
+
readonly [variantOrdinalSymbol]: 29;
|
|
1634
|
+
name: string;
|
|
1635
|
+
message: string;
|
|
1636
|
+
stack?: string;
|
|
1637
|
+
cause?: unknown;
|
|
1638
|
+
};
|
|
1639
|
+
isError(error: unknown): error is Error;
|
|
1640
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1641
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1642
|
+
stackTraceLimit: number;
|
|
1643
|
+
};
|
|
1644
|
+
SignerMissingKey: {
|
|
1645
|
+
new (message: string): {
|
|
1646
|
+
readonly tag: BdkError_Tags.SignerMissingKey;
|
|
1647
|
+
/**
|
|
1648
|
+
* @private
|
|
1649
|
+
* This field is private and should not be used.
|
|
1650
|
+
*/
|
|
1651
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1652
|
+
/**
|
|
1653
|
+
* @private
|
|
1654
|
+
* This field is private and should not be used.
|
|
1655
|
+
*/
|
|
1656
|
+
readonly [variantOrdinalSymbol]: 30;
|
|
1657
|
+
name: string;
|
|
1658
|
+
message: string;
|
|
1659
|
+
stack?: string;
|
|
1660
|
+
cause?: unknown;
|
|
1661
|
+
};
|
|
1662
|
+
instanceOf(e: any): e is {
|
|
1663
|
+
readonly tag: BdkError_Tags.SignerMissingKey;
|
|
1664
|
+
/**
|
|
1665
|
+
* @private
|
|
1666
|
+
* This field is private and should not be used.
|
|
1667
|
+
*/
|
|
1668
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1669
|
+
/**
|
|
1670
|
+
* @private
|
|
1671
|
+
* This field is private and should not be used.
|
|
1672
|
+
*/
|
|
1673
|
+
readonly [variantOrdinalSymbol]: 30;
|
|
1674
|
+
name: string;
|
|
1675
|
+
message: string;
|
|
1676
|
+
stack?: string;
|
|
1677
|
+
cause?: unknown;
|
|
1678
|
+
};
|
|
1679
|
+
isError(error: unknown): error is Error;
|
|
1680
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1681
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1682
|
+
stackTraceLimit: number;
|
|
1683
|
+
};
|
|
1684
|
+
SignerInvalidKey: {
|
|
1685
|
+
new (message: string): {
|
|
1686
|
+
readonly tag: BdkError_Tags.SignerInvalidKey;
|
|
1687
|
+
/**
|
|
1688
|
+
* @private
|
|
1689
|
+
* This field is private and should not be used.
|
|
1690
|
+
*/
|
|
1691
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* @private
|
|
1694
|
+
* This field is private and should not be used.
|
|
1695
|
+
*/
|
|
1696
|
+
readonly [variantOrdinalSymbol]: 31;
|
|
1697
|
+
name: string;
|
|
1698
|
+
message: string;
|
|
1699
|
+
stack?: string;
|
|
1700
|
+
cause?: unknown;
|
|
1701
|
+
};
|
|
1702
|
+
instanceOf(e: any): e is {
|
|
1703
|
+
readonly tag: BdkError_Tags.SignerInvalidKey;
|
|
1704
|
+
/**
|
|
1705
|
+
* @private
|
|
1706
|
+
* This field is private and should not be used.
|
|
1707
|
+
*/
|
|
1708
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1709
|
+
/**
|
|
1710
|
+
* @private
|
|
1711
|
+
* This field is private and should not be used.
|
|
1712
|
+
*/
|
|
1713
|
+
readonly [variantOrdinalSymbol]: 31;
|
|
1714
|
+
name: string;
|
|
1715
|
+
message: string;
|
|
1716
|
+
stack?: string;
|
|
1717
|
+
cause?: unknown;
|
|
1718
|
+
};
|
|
1719
|
+
isError(error: unknown): error is Error;
|
|
1720
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1721
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1722
|
+
stackTraceLimit: number;
|
|
1723
|
+
};
|
|
1724
|
+
SignerUserCanceled: {
|
|
1725
|
+
new (message: string): {
|
|
1726
|
+
readonly tag: BdkError_Tags.SignerUserCanceled;
|
|
1727
|
+
/**
|
|
1728
|
+
* @private
|
|
1729
|
+
* This field is private and should not be used.
|
|
1730
|
+
*/
|
|
1731
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1732
|
+
/**
|
|
1733
|
+
* @private
|
|
1734
|
+
* This field is private and should not be used.
|
|
1735
|
+
*/
|
|
1736
|
+
readonly [variantOrdinalSymbol]: 32;
|
|
1737
|
+
name: string;
|
|
1738
|
+
message: string;
|
|
1739
|
+
stack?: string;
|
|
1740
|
+
cause?: unknown;
|
|
1741
|
+
};
|
|
1742
|
+
instanceOf(e: any): e is {
|
|
1743
|
+
readonly tag: BdkError_Tags.SignerUserCanceled;
|
|
1744
|
+
/**
|
|
1745
|
+
* @private
|
|
1746
|
+
* This field is private and should not be used.
|
|
1747
|
+
*/
|
|
1748
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1749
|
+
/**
|
|
1750
|
+
* @private
|
|
1751
|
+
* This field is private and should not be used.
|
|
1752
|
+
*/
|
|
1753
|
+
readonly [variantOrdinalSymbol]: 32;
|
|
1754
|
+
name: string;
|
|
1755
|
+
message: string;
|
|
1756
|
+
stack?: string;
|
|
1757
|
+
cause?: unknown;
|
|
1758
|
+
};
|
|
1759
|
+
isError(error: unknown): error is Error;
|
|
1760
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1761
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1762
|
+
stackTraceLimit: number;
|
|
1763
|
+
};
|
|
1764
|
+
SignerInputIndexOutOfRange: {
|
|
1765
|
+
new (message: string): {
|
|
1766
|
+
readonly tag: BdkError_Tags.SignerInputIndexOutOfRange;
|
|
1767
|
+
/**
|
|
1768
|
+
* @private
|
|
1769
|
+
* This field is private and should not be used.
|
|
1770
|
+
*/
|
|
1771
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1772
|
+
/**
|
|
1773
|
+
* @private
|
|
1774
|
+
* This field is private and should not be used.
|
|
1775
|
+
*/
|
|
1776
|
+
readonly [variantOrdinalSymbol]: 33;
|
|
1777
|
+
name: string;
|
|
1778
|
+
message: string;
|
|
1779
|
+
stack?: string;
|
|
1780
|
+
cause?: unknown;
|
|
1781
|
+
};
|
|
1782
|
+
instanceOf(e: any): e is {
|
|
1783
|
+
readonly tag: BdkError_Tags.SignerInputIndexOutOfRange;
|
|
1784
|
+
/**
|
|
1785
|
+
* @private
|
|
1786
|
+
* This field is private and should not be used.
|
|
1787
|
+
*/
|
|
1788
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1789
|
+
/**
|
|
1790
|
+
* @private
|
|
1791
|
+
* This field is private and should not be used.
|
|
1792
|
+
*/
|
|
1793
|
+
readonly [variantOrdinalSymbol]: 33;
|
|
1794
|
+
name: string;
|
|
1795
|
+
message: string;
|
|
1796
|
+
stack?: string;
|
|
1797
|
+
cause?: unknown;
|
|
1798
|
+
};
|
|
1799
|
+
isError(error: unknown): error is Error;
|
|
1800
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1801
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1802
|
+
stackTraceLimit: number;
|
|
1803
|
+
};
|
|
1804
|
+
SignerMissingNonWitnessUtxo: {
|
|
1805
|
+
new (message: string): {
|
|
1806
|
+
readonly tag: BdkError_Tags.SignerMissingNonWitnessUtxo;
|
|
1807
|
+
/**
|
|
1808
|
+
* @private
|
|
1809
|
+
* This field is private and should not be used.
|
|
1810
|
+
*/
|
|
1811
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1812
|
+
/**
|
|
1813
|
+
* @private
|
|
1814
|
+
* This field is private and should not be used.
|
|
1815
|
+
*/
|
|
1816
|
+
readonly [variantOrdinalSymbol]: 34;
|
|
1817
|
+
name: string;
|
|
1818
|
+
message: string;
|
|
1819
|
+
stack?: string;
|
|
1820
|
+
cause?: unknown;
|
|
1821
|
+
};
|
|
1822
|
+
instanceOf(e: any): e is {
|
|
1823
|
+
readonly tag: BdkError_Tags.SignerMissingNonWitnessUtxo;
|
|
1824
|
+
/**
|
|
1825
|
+
* @private
|
|
1826
|
+
* This field is private and should not be used.
|
|
1827
|
+
*/
|
|
1828
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1829
|
+
/**
|
|
1830
|
+
* @private
|
|
1831
|
+
* This field is private and should not be used.
|
|
1832
|
+
*/
|
|
1833
|
+
readonly [variantOrdinalSymbol]: 34;
|
|
1834
|
+
name: string;
|
|
1835
|
+
message: string;
|
|
1836
|
+
stack?: string;
|
|
1837
|
+
cause?: unknown;
|
|
1838
|
+
};
|
|
1839
|
+
isError(error: unknown): error is Error;
|
|
1840
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1841
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1842
|
+
stackTraceLimit: number;
|
|
1843
|
+
};
|
|
1844
|
+
SignerMissingWitnessUtxo: {
|
|
1845
|
+
new (message: string): {
|
|
1846
|
+
readonly tag: BdkError_Tags.SignerMissingWitnessUtxo;
|
|
1847
|
+
/**
|
|
1848
|
+
* @private
|
|
1849
|
+
* This field is private and should not be used.
|
|
1850
|
+
*/
|
|
1851
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1852
|
+
/**
|
|
1853
|
+
* @private
|
|
1854
|
+
* This field is private and should not be used.
|
|
1855
|
+
*/
|
|
1856
|
+
readonly [variantOrdinalSymbol]: 35;
|
|
1857
|
+
name: string;
|
|
1858
|
+
message: string;
|
|
1859
|
+
stack?: string;
|
|
1860
|
+
cause?: unknown;
|
|
1861
|
+
};
|
|
1862
|
+
instanceOf(e: any): e is {
|
|
1863
|
+
readonly tag: BdkError_Tags.SignerMissingWitnessUtxo;
|
|
1864
|
+
/**
|
|
1865
|
+
* @private
|
|
1866
|
+
* This field is private and should not be used.
|
|
1867
|
+
*/
|
|
1868
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* @private
|
|
1871
|
+
* This field is private and should not be used.
|
|
1872
|
+
*/
|
|
1873
|
+
readonly [variantOrdinalSymbol]: 35;
|
|
1874
|
+
name: string;
|
|
1875
|
+
message: string;
|
|
1876
|
+
stack?: string;
|
|
1877
|
+
cause?: unknown;
|
|
1878
|
+
};
|
|
1879
|
+
isError(error: unknown): error is Error;
|
|
1880
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1881
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1882
|
+
stackTraceLimit: number;
|
|
1883
|
+
};
|
|
1884
|
+
SignerMissingWitnessScript: {
|
|
1885
|
+
new (message: string): {
|
|
1886
|
+
readonly tag: BdkError_Tags.SignerMissingWitnessScript;
|
|
1887
|
+
/**
|
|
1888
|
+
* @private
|
|
1889
|
+
* This field is private and should not be used.
|
|
1890
|
+
*/
|
|
1891
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* @private
|
|
1894
|
+
* This field is private and should not be used.
|
|
1895
|
+
*/
|
|
1896
|
+
readonly [variantOrdinalSymbol]: 36;
|
|
1897
|
+
name: string;
|
|
1898
|
+
message: string;
|
|
1899
|
+
stack?: string;
|
|
1900
|
+
cause?: unknown;
|
|
1901
|
+
};
|
|
1902
|
+
instanceOf(e: any): e is {
|
|
1903
|
+
readonly tag: BdkError_Tags.SignerMissingWitnessScript;
|
|
1904
|
+
/**
|
|
1905
|
+
* @private
|
|
1906
|
+
* This field is private and should not be used.
|
|
1907
|
+
*/
|
|
1908
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1909
|
+
/**
|
|
1910
|
+
* @private
|
|
1911
|
+
* This field is private and should not be used.
|
|
1912
|
+
*/
|
|
1913
|
+
readonly [variantOrdinalSymbol]: 36;
|
|
1914
|
+
name: string;
|
|
1915
|
+
message: string;
|
|
1916
|
+
stack?: string;
|
|
1917
|
+
cause?: unknown;
|
|
1918
|
+
};
|
|
1919
|
+
isError(error: unknown): error is Error;
|
|
1920
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1921
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1922
|
+
stackTraceLimit: number;
|
|
1923
|
+
};
|
|
1924
|
+
SignerNonStandardSighash: {
|
|
1925
|
+
new (message: string): {
|
|
1926
|
+
readonly tag: BdkError_Tags.SignerNonStandardSighash;
|
|
1927
|
+
/**
|
|
1928
|
+
* @private
|
|
1929
|
+
* This field is private and should not be used.
|
|
1930
|
+
*/
|
|
1931
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1932
|
+
/**
|
|
1933
|
+
* @private
|
|
1934
|
+
* This field is private and should not be used.
|
|
1935
|
+
*/
|
|
1936
|
+
readonly [variantOrdinalSymbol]: 37;
|
|
1937
|
+
name: string;
|
|
1938
|
+
message: string;
|
|
1939
|
+
stack?: string;
|
|
1940
|
+
cause?: unknown;
|
|
1941
|
+
};
|
|
1942
|
+
instanceOf(e: any): e is {
|
|
1943
|
+
readonly tag: BdkError_Tags.SignerNonStandardSighash;
|
|
1944
|
+
/**
|
|
1945
|
+
* @private
|
|
1946
|
+
* This field is private and should not be used.
|
|
1947
|
+
*/
|
|
1948
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1949
|
+
/**
|
|
1950
|
+
* @private
|
|
1951
|
+
* This field is private and should not be used.
|
|
1952
|
+
*/
|
|
1953
|
+
readonly [variantOrdinalSymbol]: 37;
|
|
1954
|
+
name: string;
|
|
1955
|
+
message: string;
|
|
1956
|
+
stack?: string;
|
|
1957
|
+
cause?: unknown;
|
|
1958
|
+
};
|
|
1959
|
+
isError(error: unknown): error is Error;
|
|
1960
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1961
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
1962
|
+
stackTraceLimit: number;
|
|
1963
|
+
};
|
|
1964
|
+
SignerInvalidSighash: {
|
|
1965
|
+
new (message: string): {
|
|
1966
|
+
readonly tag: BdkError_Tags.SignerInvalidSighash;
|
|
1967
|
+
/**
|
|
1968
|
+
* @private
|
|
1969
|
+
* This field is private and should not be used.
|
|
1970
|
+
*/
|
|
1971
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1972
|
+
/**
|
|
1973
|
+
* @private
|
|
1974
|
+
* This field is private and should not be used.
|
|
1975
|
+
*/
|
|
1976
|
+
readonly [variantOrdinalSymbol]: 38;
|
|
1977
|
+
name: string;
|
|
1978
|
+
message: string;
|
|
1979
|
+
stack?: string;
|
|
1980
|
+
cause?: unknown;
|
|
1981
|
+
};
|
|
1982
|
+
instanceOf(e: any): e is {
|
|
1983
|
+
readonly tag: BdkError_Tags.SignerInvalidSighash;
|
|
1984
|
+
/**
|
|
1985
|
+
* @private
|
|
1986
|
+
* This field is private and should not be used.
|
|
1987
|
+
*/
|
|
1988
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
1989
|
+
/**
|
|
1990
|
+
* @private
|
|
1991
|
+
* This field is private and should not be used.
|
|
1992
|
+
*/
|
|
1993
|
+
readonly [variantOrdinalSymbol]: 38;
|
|
1994
|
+
name: string;
|
|
1995
|
+
message: string;
|
|
1996
|
+
stack?: string;
|
|
1997
|
+
cause?: unknown;
|
|
1998
|
+
};
|
|
1999
|
+
isError(error: unknown): error is Error;
|
|
2000
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2001
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2002
|
+
stackTraceLimit: number;
|
|
2003
|
+
};
|
|
2004
|
+
SyncFailed: {
|
|
2005
|
+
new (message: string): {
|
|
2006
|
+
readonly tag: BdkError_Tags.SyncFailed;
|
|
2007
|
+
/**
|
|
2008
|
+
* @private
|
|
2009
|
+
* This field is private and should not be used.
|
|
2010
|
+
*/
|
|
2011
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2012
|
+
/**
|
|
2013
|
+
* @private
|
|
2014
|
+
* This field is private and should not be used.
|
|
2015
|
+
*/
|
|
2016
|
+
readonly [variantOrdinalSymbol]: 39;
|
|
2017
|
+
name: string;
|
|
2018
|
+
message: string;
|
|
2019
|
+
stack?: string;
|
|
2020
|
+
cause?: unknown;
|
|
2021
|
+
};
|
|
2022
|
+
instanceOf(e: any): e is {
|
|
2023
|
+
readonly tag: BdkError_Tags.SyncFailed;
|
|
2024
|
+
/**
|
|
2025
|
+
* @private
|
|
2026
|
+
* This field is private and should not be used.
|
|
2027
|
+
*/
|
|
2028
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2029
|
+
/**
|
|
2030
|
+
* @private
|
|
2031
|
+
* This field is private and should not be used.
|
|
2032
|
+
*/
|
|
2033
|
+
readonly [variantOrdinalSymbol]: 39;
|
|
2034
|
+
name: string;
|
|
2035
|
+
message: string;
|
|
2036
|
+
stack?: string;
|
|
2037
|
+
cause?: unknown;
|
|
2038
|
+
};
|
|
2039
|
+
isError(error: unknown): error is Error;
|
|
2040
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2041
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2042
|
+
stackTraceLimit: number;
|
|
2043
|
+
};
|
|
2044
|
+
BroadcastFailed: {
|
|
2045
|
+
new (message: string): {
|
|
2046
|
+
readonly tag: BdkError_Tags.BroadcastFailed;
|
|
2047
|
+
/**
|
|
2048
|
+
* @private
|
|
2049
|
+
* This field is private and should not be used.
|
|
2050
|
+
*/
|
|
2051
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2052
|
+
/**
|
|
2053
|
+
* @private
|
|
2054
|
+
* This field is private and should not be used.
|
|
2055
|
+
*/
|
|
2056
|
+
readonly [variantOrdinalSymbol]: 40;
|
|
2057
|
+
name: string;
|
|
2058
|
+
message: string;
|
|
2059
|
+
stack?: string;
|
|
2060
|
+
cause?: unknown;
|
|
2061
|
+
};
|
|
2062
|
+
instanceOf(e: any): e is {
|
|
2063
|
+
readonly tag: BdkError_Tags.BroadcastFailed;
|
|
2064
|
+
/**
|
|
2065
|
+
* @private
|
|
2066
|
+
* This field is private and should not be used.
|
|
2067
|
+
*/
|
|
2068
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2069
|
+
/**
|
|
2070
|
+
* @private
|
|
2071
|
+
* This field is private and should not be used.
|
|
2072
|
+
*/
|
|
2073
|
+
readonly [variantOrdinalSymbol]: 40;
|
|
2074
|
+
name: string;
|
|
2075
|
+
message: string;
|
|
2076
|
+
stack?: string;
|
|
2077
|
+
cause?: unknown;
|
|
2078
|
+
};
|
|
2079
|
+
isError(error: unknown): error is Error;
|
|
2080
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2081
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2082
|
+
stackTraceLimit: number;
|
|
2083
|
+
};
|
|
2084
|
+
InvalidTransaction: {
|
|
2085
|
+
new (message: string): {
|
|
2086
|
+
readonly tag: BdkError_Tags.InvalidTransaction;
|
|
2087
|
+
/**
|
|
2088
|
+
* @private
|
|
2089
|
+
* This field is private and should not be used.
|
|
2090
|
+
*/
|
|
2091
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* @private
|
|
2094
|
+
* This field is private and should not be used.
|
|
2095
|
+
*/
|
|
2096
|
+
readonly [variantOrdinalSymbol]: 41;
|
|
2097
|
+
name: string;
|
|
2098
|
+
message: string;
|
|
2099
|
+
stack?: string;
|
|
2100
|
+
cause?: unknown;
|
|
2101
|
+
};
|
|
2102
|
+
instanceOf(e: any): e is {
|
|
2103
|
+
readonly tag: BdkError_Tags.InvalidTransaction;
|
|
2104
|
+
/**
|
|
2105
|
+
* @private
|
|
2106
|
+
* This field is private and should not be used.
|
|
2107
|
+
*/
|
|
2108
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2109
|
+
/**
|
|
2110
|
+
* @private
|
|
2111
|
+
* This field is private and should not be used.
|
|
2112
|
+
*/
|
|
2113
|
+
readonly [variantOrdinalSymbol]: 41;
|
|
2114
|
+
name: string;
|
|
2115
|
+
message: string;
|
|
2116
|
+
stack?: string;
|
|
2117
|
+
cause?: unknown;
|
|
2118
|
+
};
|
|
2119
|
+
isError(error: unknown): error is Error;
|
|
2120
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2121
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2122
|
+
stackTraceLimit: number;
|
|
2123
|
+
};
|
|
2124
|
+
TransactionNotFound: {
|
|
2125
|
+
new (message: string): {
|
|
2126
|
+
readonly tag: BdkError_Tags.TransactionNotFound;
|
|
2127
|
+
/**
|
|
2128
|
+
* @private
|
|
2129
|
+
* This field is private and should not be used.
|
|
2130
|
+
*/
|
|
2131
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2132
|
+
/**
|
|
2133
|
+
* @private
|
|
2134
|
+
* This field is private and should not be used.
|
|
2135
|
+
*/
|
|
2136
|
+
readonly [variantOrdinalSymbol]: 42;
|
|
2137
|
+
name: string;
|
|
2138
|
+
message: string;
|
|
2139
|
+
stack?: string;
|
|
2140
|
+
cause?: unknown;
|
|
2141
|
+
};
|
|
2142
|
+
instanceOf(e: any): e is {
|
|
2143
|
+
readonly tag: BdkError_Tags.TransactionNotFound;
|
|
2144
|
+
/**
|
|
2145
|
+
* @private
|
|
2146
|
+
* This field is private and should not be used.
|
|
2147
|
+
*/
|
|
2148
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2149
|
+
/**
|
|
2150
|
+
* @private
|
|
2151
|
+
* This field is private and should not be used.
|
|
2152
|
+
*/
|
|
2153
|
+
readonly [variantOrdinalSymbol]: 42;
|
|
2154
|
+
name: string;
|
|
2155
|
+
message: string;
|
|
2156
|
+
stack?: string;
|
|
2157
|
+
cause?: unknown;
|
|
2158
|
+
};
|
|
2159
|
+
isError(error: unknown): error is Error;
|
|
2160
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2161
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2162
|
+
stackTraceLimit: number;
|
|
2163
|
+
};
|
|
2164
|
+
CannotConnect: {
|
|
2165
|
+
new (message: string): {
|
|
2166
|
+
readonly tag: BdkError_Tags.CannotConnect;
|
|
2167
|
+
/**
|
|
2168
|
+
* @private
|
|
2169
|
+
* This field is private and should not be used.
|
|
2170
|
+
*/
|
|
2171
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2172
|
+
/**
|
|
2173
|
+
* @private
|
|
2174
|
+
* This field is private and should not be used.
|
|
2175
|
+
*/
|
|
2176
|
+
readonly [variantOrdinalSymbol]: 43;
|
|
2177
|
+
name: string;
|
|
2178
|
+
message: string;
|
|
2179
|
+
stack?: string;
|
|
2180
|
+
cause?: unknown;
|
|
2181
|
+
};
|
|
2182
|
+
instanceOf(e: any): e is {
|
|
2183
|
+
readonly tag: BdkError_Tags.CannotConnect;
|
|
2184
|
+
/**
|
|
2185
|
+
* @private
|
|
2186
|
+
* This field is private and should not be used.
|
|
2187
|
+
*/
|
|
2188
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2189
|
+
/**
|
|
2190
|
+
* @private
|
|
2191
|
+
* This field is private and should not be used.
|
|
2192
|
+
*/
|
|
2193
|
+
readonly [variantOrdinalSymbol]: 43;
|
|
2194
|
+
name: string;
|
|
2195
|
+
message: string;
|
|
2196
|
+
stack?: string;
|
|
2197
|
+
cause?: unknown;
|
|
2198
|
+
};
|
|
2199
|
+
isError(error: unknown): error is Error;
|
|
2200
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2201
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2202
|
+
stackTraceLimit: number;
|
|
2203
|
+
};
|
|
2204
|
+
CalculateFeeError: {
|
|
2205
|
+
new (message: string): {
|
|
2206
|
+
readonly tag: BdkError_Tags.CalculateFeeError;
|
|
2207
|
+
/**
|
|
2208
|
+
* @private
|
|
2209
|
+
* This field is private and should not be used.
|
|
2210
|
+
*/
|
|
2211
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2212
|
+
/**
|
|
2213
|
+
* @private
|
|
2214
|
+
* This field is private and should not be used.
|
|
2215
|
+
*/
|
|
2216
|
+
readonly [variantOrdinalSymbol]: 44;
|
|
2217
|
+
name: string;
|
|
2218
|
+
message: string;
|
|
2219
|
+
stack?: string;
|
|
2220
|
+
cause?: unknown;
|
|
2221
|
+
};
|
|
2222
|
+
instanceOf(e: any): e is {
|
|
2223
|
+
readonly tag: BdkError_Tags.CalculateFeeError;
|
|
2224
|
+
/**
|
|
2225
|
+
* @private
|
|
2226
|
+
* This field is private and should not be used.
|
|
2227
|
+
*/
|
|
2228
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2229
|
+
/**
|
|
2230
|
+
* @private
|
|
2231
|
+
* This field is private and should not be used.
|
|
2232
|
+
*/
|
|
2233
|
+
readonly [variantOrdinalSymbol]: 44;
|
|
2234
|
+
name: string;
|
|
2235
|
+
message: string;
|
|
2236
|
+
stack?: string;
|
|
2237
|
+
cause?: unknown;
|
|
2238
|
+
};
|
|
2239
|
+
isError(error: unknown): error is Error;
|
|
2240
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2241
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2242
|
+
stackTraceLimit: number;
|
|
2243
|
+
};
|
|
2244
|
+
InvalidMnemonic: {
|
|
2245
|
+
new (message: string): {
|
|
2246
|
+
readonly tag: BdkError_Tags.InvalidMnemonic;
|
|
2247
|
+
/**
|
|
2248
|
+
* @private
|
|
2249
|
+
* This field is private and should not be used.
|
|
2250
|
+
*/
|
|
2251
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2252
|
+
/**
|
|
2253
|
+
* @private
|
|
2254
|
+
* This field is private and should not be used.
|
|
2255
|
+
*/
|
|
2256
|
+
readonly [variantOrdinalSymbol]: 45;
|
|
2257
|
+
name: string;
|
|
2258
|
+
message: string;
|
|
2259
|
+
stack?: string;
|
|
2260
|
+
cause?: unknown;
|
|
2261
|
+
};
|
|
2262
|
+
instanceOf(e: any): e is {
|
|
2263
|
+
readonly tag: BdkError_Tags.InvalidMnemonic;
|
|
2264
|
+
/**
|
|
2265
|
+
* @private
|
|
2266
|
+
* This field is private and should not be used.
|
|
2267
|
+
*/
|
|
2268
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2269
|
+
/**
|
|
2270
|
+
* @private
|
|
2271
|
+
* This field is private and should not be used.
|
|
2272
|
+
*/
|
|
2273
|
+
readonly [variantOrdinalSymbol]: 45;
|
|
2274
|
+
name: string;
|
|
2275
|
+
message: string;
|
|
2276
|
+
stack?: string;
|
|
2277
|
+
cause?: unknown;
|
|
2278
|
+
};
|
|
2279
|
+
isError(error: unknown): error is Error;
|
|
2280
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2281
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2282
|
+
stackTraceLimit: number;
|
|
2283
|
+
};
|
|
2284
|
+
InvalidEntropy: {
|
|
2285
|
+
new (message: string): {
|
|
2286
|
+
readonly tag: BdkError_Tags.InvalidEntropy;
|
|
2287
|
+
/**
|
|
2288
|
+
* @private
|
|
2289
|
+
* This field is private and should not be used.
|
|
2290
|
+
*/
|
|
2291
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2292
|
+
/**
|
|
2293
|
+
* @private
|
|
2294
|
+
* This field is private and should not be used.
|
|
2295
|
+
*/
|
|
2296
|
+
readonly [variantOrdinalSymbol]: 46;
|
|
2297
|
+
name: string;
|
|
2298
|
+
message: string;
|
|
2299
|
+
stack?: string;
|
|
2300
|
+
cause?: unknown;
|
|
2301
|
+
};
|
|
2302
|
+
instanceOf(e: any): e is {
|
|
2303
|
+
readonly tag: BdkError_Tags.InvalidEntropy;
|
|
2304
|
+
/**
|
|
2305
|
+
* @private
|
|
2306
|
+
* This field is private and should not be used.
|
|
2307
|
+
*/
|
|
2308
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2309
|
+
/**
|
|
2310
|
+
* @private
|
|
2311
|
+
* This field is private and should not be used.
|
|
2312
|
+
*/
|
|
2313
|
+
readonly [variantOrdinalSymbol]: 46;
|
|
2314
|
+
name: string;
|
|
2315
|
+
message: string;
|
|
2316
|
+
stack?: string;
|
|
2317
|
+
cause?: unknown;
|
|
2318
|
+
};
|
|
2319
|
+
isError(error: unknown): error is Error;
|
|
2320
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2321
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2322
|
+
stackTraceLimit: number;
|
|
2323
|
+
};
|
|
2324
|
+
KeyError: {
|
|
2325
|
+
new (message: string): {
|
|
2326
|
+
readonly tag: BdkError_Tags.KeyError;
|
|
2327
|
+
/**
|
|
2328
|
+
* @private
|
|
2329
|
+
* This field is private and should not be used.
|
|
2330
|
+
*/
|
|
2331
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2332
|
+
/**
|
|
2333
|
+
* @private
|
|
2334
|
+
* This field is private and should not be used.
|
|
2335
|
+
*/
|
|
2336
|
+
readonly [variantOrdinalSymbol]: 47;
|
|
2337
|
+
name: string;
|
|
2338
|
+
message: string;
|
|
2339
|
+
stack?: string;
|
|
2340
|
+
cause?: unknown;
|
|
2341
|
+
};
|
|
2342
|
+
instanceOf(e: any): e is {
|
|
2343
|
+
readonly tag: BdkError_Tags.KeyError;
|
|
2344
|
+
/**
|
|
2345
|
+
* @private
|
|
2346
|
+
* This field is private and should not be used.
|
|
2347
|
+
*/
|
|
2348
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2349
|
+
/**
|
|
2350
|
+
* @private
|
|
2351
|
+
* This field is private and should not be used.
|
|
2352
|
+
*/
|
|
2353
|
+
readonly [variantOrdinalSymbol]: 47;
|
|
2354
|
+
name: string;
|
|
2355
|
+
message: string;
|
|
2356
|
+
stack?: string;
|
|
2357
|
+
cause?: unknown;
|
|
2358
|
+
};
|
|
2359
|
+
isError(error: unknown): error is Error;
|
|
2360
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2361
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2362
|
+
stackTraceLimit: number;
|
|
2363
|
+
};
|
|
2364
|
+
Generic: {
|
|
2365
|
+
new (message: string): {
|
|
2366
|
+
readonly tag: BdkError_Tags.Generic;
|
|
2367
|
+
/**
|
|
2368
|
+
* @private
|
|
2369
|
+
* This field is private and should not be used.
|
|
2370
|
+
*/
|
|
2371
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2372
|
+
/**
|
|
2373
|
+
* @private
|
|
2374
|
+
* This field is private and should not be used.
|
|
2375
|
+
*/
|
|
2376
|
+
readonly [variantOrdinalSymbol]: 48;
|
|
2377
|
+
name: string;
|
|
2378
|
+
message: string;
|
|
2379
|
+
stack?: string;
|
|
2380
|
+
cause?: unknown;
|
|
2381
|
+
};
|
|
2382
|
+
instanceOf(e: any): e is {
|
|
2383
|
+
readonly tag: BdkError_Tags.Generic;
|
|
2384
|
+
/**
|
|
2385
|
+
* @private
|
|
2386
|
+
* This field is private and should not be used.
|
|
2387
|
+
*/
|
|
2388
|
+
readonly [uniffiTypeNameSymbol]: string;
|
|
2389
|
+
/**
|
|
2390
|
+
* @private
|
|
2391
|
+
* This field is private and should not be used.
|
|
2392
|
+
*/
|
|
2393
|
+
readonly [variantOrdinalSymbol]: 48;
|
|
2394
|
+
name: string;
|
|
2395
|
+
message: string;
|
|
2396
|
+
stack?: string;
|
|
2397
|
+
cause?: unknown;
|
|
2398
|
+
};
|
|
2399
|
+
isError(error: unknown): error is Error;
|
|
2400
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2401
|
+
prepareStackTrace(err: Error, stackTraces: NodeJS.CallSite[]): any;
|
|
2402
|
+
stackTraceLimit: number;
|
|
2403
|
+
};
|
|
2404
|
+
instanceOf: (e: any) => e is BdkError;
|
|
2405
|
+
};
|
|
2406
|
+
export type BdkError = InstanceType<(typeof BdkError)[keyof Omit<typeof BdkError, "instanceOf">]>;
|
|
2407
|
+
/**
|
|
2408
|
+
* Controls which UTXOs the wallet may spend as change inputs.
|
|
2409
|
+
*/
|
|
2410
|
+
export declare enum ChangeSpendPolicy {
|
|
2411
|
+
/**
|
|
2412
|
+
* Both change and non-change outputs may be spent (default).
|
|
2413
|
+
*/
|
|
2414
|
+
ChangeAllowed = 0,
|
|
2415
|
+
/**
|
|
2416
|
+
* Only change outputs may be spent as inputs.
|
|
2417
|
+
*/
|
|
2418
|
+
OnlyChange = 1,
|
|
2419
|
+
/**
|
|
2420
|
+
* Only non-change outputs may be spent as inputs.
|
|
2421
|
+
*/
|
|
2422
|
+
ChangeForbidden = 2
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
* Standard BIP descriptor templates for generating wallet descriptors
|
|
2426
|
+
* from a mnemonic/xprv (also usable for xpub via create_public_descriptor).
|
|
2427
|
+
* Mirrors descriptor::template::{Bip44, Bip49, Bip84, Bip86}.
|
|
2428
|
+
*/
|
|
2429
|
+
export declare enum DescriptorTemplate {
|
|
2430
|
+
/**
|
|
2431
|
+
* BIP44 — Legacy P2PKH (1…)
|
|
2432
|
+
*/
|
|
2433
|
+
Bip44 = 0,
|
|
2434
|
+
/**
|
|
2435
|
+
* BIP49 — Nested SegWit P2SH-P2WPKH (3…)
|
|
2436
|
+
*/
|
|
2437
|
+
Bip49 = 1,
|
|
2438
|
+
/**
|
|
2439
|
+
* BIP84 — Native SegWit P2WPKH (bc1q…)
|
|
2440
|
+
*/
|
|
2441
|
+
Bip84 = 2,
|
|
2442
|
+
/**
|
|
2443
|
+
* BIP86 — Taproot P2TR (bc1p…)
|
|
2444
|
+
*/
|
|
2445
|
+
Bip86 = 3
|
|
2446
|
+
}
|
|
2447
|
+
export declare enum KeychainKind {
|
|
2448
|
+
/**
|
|
2449
|
+
* External keychain — used for deriving recipient addresses.
|
|
2450
|
+
*/
|
|
2451
|
+
External = 0,
|
|
2452
|
+
/**
|
|
2453
|
+
* Internal keychain — used for deriving change addresses.
|
|
2454
|
+
*/
|
|
2455
|
+
Internal = 1
|
|
2456
|
+
}
|
|
2457
|
+
/**
|
|
2458
|
+
* BIP-39 mnemonic language. Mirrors bip39::Language.
|
|
2459
|
+
* Requires `all-languages` feature on the bip39 crate.
|
|
2460
|
+
*/
|
|
2461
|
+
export declare enum Language {
|
|
2462
|
+
English = 0,
|
|
2463
|
+
SimplifiedChinese = 1,
|
|
2464
|
+
TraditionalChinese = 2,
|
|
2465
|
+
Czech = 3,
|
|
2466
|
+
French = 4,
|
|
2467
|
+
Italian = 5,
|
|
2468
|
+
Japanese = 6,
|
|
2469
|
+
Korean = 7,
|
|
2470
|
+
Portuguese = 8,
|
|
2471
|
+
Spanish = 9
|
|
2472
|
+
}
|
|
2473
|
+
export declare enum Network {
|
|
2474
|
+
Bitcoin = 0,
|
|
2475
|
+
Testnet = 1,
|
|
2476
|
+
Signet = 2,
|
|
2477
|
+
Regtest = 3
|
|
2478
|
+
}
|
|
2479
|
+
/**
|
|
2480
|
+
* Single-key descriptor templates.
|
|
2481
|
+
* Mirrors descriptor::template::{P2Pkh, P2Wpkh, P2Wpkh_P2Sh, P2TR}.
|
|
2482
|
+
*/
|
|
2483
|
+
export declare enum SingleKeyDescriptorTemplate {
|
|
2484
|
+
/**
|
|
2485
|
+
* Pay-to-PubKey-Hash — Legacy (1…)
|
|
2486
|
+
*/
|
|
2487
|
+
P2Pkh = 0,
|
|
2488
|
+
/**
|
|
2489
|
+
* Pay-to-Witness-PubKey-Hash — Native SegWit (bc1q…)
|
|
2490
|
+
*/
|
|
2491
|
+
P2Wpkh = 1,
|
|
2492
|
+
/**
|
|
2493
|
+
* P2Wpkh wrapped in P2SH — Nested SegWit (3…)
|
|
2494
|
+
*/
|
|
2495
|
+
P2WpkhP2Sh = 2,
|
|
2496
|
+
/**
|
|
2497
|
+
* Pay-to-Taproot (bc1p…)
|
|
2498
|
+
*/
|
|
2499
|
+
P2tr = 3
|
|
2500
|
+
}
|
|
2501
|
+
/**
|
|
2502
|
+
* Ordering applied to inputs and outputs when building a transaction.
|
|
2503
|
+
* Note: bdk_wallet also has a Custom variant (with closures) that cannot cross FFI.
|
|
2504
|
+
*/
|
|
2505
|
+
export declare enum TxOrdering {
|
|
2506
|
+
/**
|
|
2507
|
+
* Randomise input and output order (default, good for privacy).
|
|
2508
|
+
*/
|
|
2509
|
+
Shuffle = 0,
|
|
2510
|
+
/**
|
|
2511
|
+
* Preserve insertion order of recipients and manually added UTXOs.
|
|
2512
|
+
*/
|
|
2513
|
+
Untouched = 1
|
|
2514
|
+
}
|
|
2515
|
+
export declare enum WalletEvent_Tags {
|
|
2516
|
+
ChainTipChanged = "ChainTipChanged",
|
|
2517
|
+
TxConfirmed = "TxConfirmed",
|
|
2518
|
+
TxUnconfirmed = "TxUnconfirmed",
|
|
2519
|
+
TxReplaced = "TxReplaced",
|
|
2520
|
+
TxDropped = "TxDropped"
|
|
2521
|
+
}
|
|
2522
|
+
/**
|
|
2523
|
+
* Events emitted when applying chain updates to the wallet.
|
|
2524
|
+
* Mirrors bdk_wallet::event::WalletEvent (non-exhaustive in upstream).
|
|
2525
|
+
*/
|
|
2526
|
+
export declare const WalletEvent: Readonly<{
|
|
2527
|
+
instanceOf: (obj: any) => obj is WalletEvent;
|
|
2528
|
+
ChainTipChanged: {
|
|
2529
|
+
new (inner: {
|
|
2530
|
+
oldTip: BlockId;
|
|
2531
|
+
newTip: BlockId;
|
|
2532
|
+
}): {
|
|
2533
|
+
readonly tag: WalletEvent_Tags.ChainTipChanged;
|
|
2534
|
+
readonly inner: Readonly<{
|
|
2535
|
+
oldTip: BlockId;
|
|
2536
|
+
newTip: BlockId;
|
|
2537
|
+
}>;
|
|
2538
|
+
/**
|
|
2539
|
+
* @private
|
|
2540
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2541
|
+
*/
|
|
2542
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2543
|
+
};
|
|
2544
|
+
"new"(inner: {
|
|
2545
|
+
oldTip: BlockId;
|
|
2546
|
+
newTip: BlockId;
|
|
2547
|
+
}): {
|
|
2548
|
+
readonly tag: WalletEvent_Tags.ChainTipChanged;
|
|
2549
|
+
readonly inner: Readonly<{
|
|
2550
|
+
oldTip: BlockId;
|
|
2551
|
+
newTip: BlockId;
|
|
2552
|
+
}>;
|
|
2553
|
+
/**
|
|
2554
|
+
* @private
|
|
2555
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2556
|
+
*/
|
|
2557
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2558
|
+
};
|
|
2559
|
+
instanceOf(obj: any): obj is {
|
|
2560
|
+
readonly tag: WalletEvent_Tags.ChainTipChanged;
|
|
2561
|
+
readonly inner: Readonly<{
|
|
2562
|
+
oldTip: BlockId;
|
|
2563
|
+
newTip: BlockId;
|
|
2564
|
+
}>;
|
|
2565
|
+
/**
|
|
2566
|
+
* @private
|
|
2567
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2568
|
+
*/
|
|
2569
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2570
|
+
};
|
|
2571
|
+
};
|
|
2572
|
+
TxConfirmed: {
|
|
2573
|
+
new (inner: {
|
|
2574
|
+
txid: string;
|
|
2575
|
+
blockTime: ConfirmationBlockTime;
|
|
2576
|
+
}): {
|
|
2577
|
+
readonly tag: WalletEvent_Tags.TxConfirmed;
|
|
2578
|
+
readonly inner: Readonly<{
|
|
2579
|
+
txid: string;
|
|
2580
|
+
blockTime: ConfirmationBlockTime;
|
|
2581
|
+
}>;
|
|
2582
|
+
/**
|
|
2583
|
+
* @private
|
|
2584
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2585
|
+
*/
|
|
2586
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2587
|
+
};
|
|
2588
|
+
"new"(inner: {
|
|
2589
|
+
txid: string;
|
|
2590
|
+
blockTime: ConfirmationBlockTime;
|
|
2591
|
+
}): {
|
|
2592
|
+
readonly tag: WalletEvent_Tags.TxConfirmed;
|
|
2593
|
+
readonly inner: Readonly<{
|
|
2594
|
+
txid: string;
|
|
2595
|
+
blockTime: ConfirmationBlockTime;
|
|
2596
|
+
}>;
|
|
2597
|
+
/**
|
|
2598
|
+
* @private
|
|
2599
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2600
|
+
*/
|
|
2601
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2602
|
+
};
|
|
2603
|
+
instanceOf(obj: any): obj is {
|
|
2604
|
+
readonly tag: WalletEvent_Tags.TxConfirmed;
|
|
2605
|
+
readonly inner: Readonly<{
|
|
2606
|
+
txid: string;
|
|
2607
|
+
blockTime: ConfirmationBlockTime;
|
|
2608
|
+
}>;
|
|
2609
|
+
/**
|
|
2610
|
+
* @private
|
|
2611
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2612
|
+
*/
|
|
2613
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2614
|
+
};
|
|
2615
|
+
};
|
|
2616
|
+
TxUnconfirmed: {
|
|
2617
|
+
new (inner: {
|
|
2618
|
+
txid: string;
|
|
2619
|
+
}): {
|
|
2620
|
+
readonly tag: WalletEvent_Tags.TxUnconfirmed;
|
|
2621
|
+
readonly inner: Readonly<{
|
|
2622
|
+
txid: string;
|
|
2623
|
+
}>;
|
|
2624
|
+
/**
|
|
2625
|
+
* @private
|
|
2626
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2627
|
+
*/
|
|
2628
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2629
|
+
};
|
|
2630
|
+
"new"(inner: {
|
|
2631
|
+
txid: string;
|
|
2632
|
+
}): {
|
|
2633
|
+
readonly tag: WalletEvent_Tags.TxUnconfirmed;
|
|
2634
|
+
readonly inner: Readonly<{
|
|
2635
|
+
txid: string;
|
|
2636
|
+
}>;
|
|
2637
|
+
/**
|
|
2638
|
+
* @private
|
|
2639
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2640
|
+
*/
|
|
2641
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2642
|
+
};
|
|
2643
|
+
instanceOf(obj: any): obj is {
|
|
2644
|
+
readonly tag: WalletEvent_Tags.TxUnconfirmed;
|
|
2645
|
+
readonly inner: Readonly<{
|
|
2646
|
+
txid: string;
|
|
2647
|
+
}>;
|
|
2648
|
+
/**
|
|
2649
|
+
* @private
|
|
2650
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2651
|
+
*/
|
|
2652
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2653
|
+
};
|
|
2654
|
+
};
|
|
2655
|
+
TxReplaced: {
|
|
2656
|
+
new (inner: {
|
|
2657
|
+
txid: string;
|
|
2658
|
+
conflictingTxids: Array<string>;
|
|
2659
|
+
}): {
|
|
2660
|
+
readonly tag: WalletEvent_Tags.TxReplaced;
|
|
2661
|
+
readonly inner: Readonly<{
|
|
2662
|
+
txid: string;
|
|
2663
|
+
conflictingTxids: Array<string>;
|
|
2664
|
+
}>;
|
|
2665
|
+
/**
|
|
2666
|
+
* @private
|
|
2667
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2668
|
+
*/
|
|
2669
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2670
|
+
};
|
|
2671
|
+
"new"(inner: {
|
|
2672
|
+
txid: string;
|
|
2673
|
+
conflictingTxids: Array<string>;
|
|
2674
|
+
}): {
|
|
2675
|
+
readonly tag: WalletEvent_Tags.TxReplaced;
|
|
2676
|
+
readonly inner: Readonly<{
|
|
2677
|
+
txid: string;
|
|
2678
|
+
conflictingTxids: Array<string>;
|
|
2679
|
+
}>;
|
|
2680
|
+
/**
|
|
2681
|
+
* @private
|
|
2682
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2683
|
+
*/
|
|
2684
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2685
|
+
};
|
|
2686
|
+
instanceOf(obj: any): obj is {
|
|
2687
|
+
readonly tag: WalletEvent_Tags.TxReplaced;
|
|
2688
|
+
readonly inner: Readonly<{
|
|
2689
|
+
txid: string;
|
|
2690
|
+
conflictingTxids: Array<string>;
|
|
2691
|
+
}>;
|
|
2692
|
+
/**
|
|
2693
|
+
* @private
|
|
2694
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2695
|
+
*/
|
|
2696
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2697
|
+
};
|
|
2698
|
+
};
|
|
2699
|
+
TxDropped: {
|
|
2700
|
+
new (inner: {
|
|
2701
|
+
txid: string;
|
|
2702
|
+
}): {
|
|
2703
|
+
readonly tag: WalletEvent_Tags.TxDropped;
|
|
2704
|
+
readonly inner: Readonly<{
|
|
2705
|
+
txid: string;
|
|
2706
|
+
}>;
|
|
2707
|
+
/**
|
|
2708
|
+
* @private
|
|
2709
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2710
|
+
*/
|
|
2711
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2712
|
+
};
|
|
2713
|
+
"new"(inner: {
|
|
2714
|
+
txid: string;
|
|
2715
|
+
}): {
|
|
2716
|
+
readonly tag: WalletEvent_Tags.TxDropped;
|
|
2717
|
+
readonly inner: Readonly<{
|
|
2718
|
+
txid: string;
|
|
2719
|
+
}>;
|
|
2720
|
+
/**
|
|
2721
|
+
* @private
|
|
2722
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2723
|
+
*/
|
|
2724
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2725
|
+
};
|
|
2726
|
+
instanceOf(obj: any): obj is {
|
|
2727
|
+
readonly tag: WalletEvent_Tags.TxDropped;
|
|
2728
|
+
readonly inner: Readonly<{
|
|
2729
|
+
txid: string;
|
|
2730
|
+
}>;
|
|
2731
|
+
/**
|
|
2732
|
+
* @private
|
|
2733
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2734
|
+
*/
|
|
2735
|
+
readonly [uniffiTypeNameSymbol]: "WalletEvent";
|
|
2736
|
+
};
|
|
2737
|
+
};
|
|
2738
|
+
}>;
|
|
2739
|
+
/**
|
|
2740
|
+
* Events emitted when applying chain updates to the wallet.
|
|
2741
|
+
* Mirrors bdk_wallet::event::WalletEvent (non-exhaustive in upstream).
|
|
2742
|
+
*/
|
|
2743
|
+
export type WalletEvent = InstanceType<(typeof WalletEvent)[keyof Omit<typeof WalletEvent, "instanceOf">]>;
|
|
2744
|
+
/**
|
|
2745
|
+
* BIP-39 mnemonic word count (determines entropy length).
|
|
2746
|
+
*/
|
|
2747
|
+
export declare enum WordCount {
|
|
2748
|
+
Words12 = 0,
|
|
2749
|
+
Words15 = 1,
|
|
2750
|
+
Words18 = 2,
|
|
2751
|
+
Words21 = 3,
|
|
2752
|
+
Words24 = 4
|
|
2753
|
+
}
|
|
2754
|
+
/**
|
|
2755
|
+
* BIP-39 mnemonic phrase for key generation.
|
|
2756
|
+
* Backed by bdk_wallet::keys::bip39::Mnemonic (requires `keys-bip39` feature).
|
|
2757
|
+
*/
|
|
2758
|
+
export interface MnemonicInterface {
|
|
2759
|
+
/**
|
|
2760
|
+
* The language of this mnemonic.
|
|
2761
|
+
*/
|
|
2762
|
+
language(): Language;
|
|
2763
|
+
/**
|
|
2764
|
+
* Derive the 64-byte seed as hex. Pass an empty string for no passphrase.
|
|
2765
|
+
*/
|
|
2766
|
+
toSeedHex(passphrase: string): string;
|
|
2767
|
+
/**
|
|
2768
|
+
* The mnemonic as a space-separated word string.
|
|
2769
|
+
*/
|
|
2770
|
+
toString(): string;
|
|
2771
|
+
/**
|
|
2772
|
+
* Number of words (12, 15, 18, 21, or 24).
|
|
2773
|
+
*/
|
|
2774
|
+
wordCount(): number;
|
|
2775
|
+
/**
|
|
2776
|
+
* List the individual words.
|
|
2777
|
+
*/
|
|
2778
|
+
words(): Array<string>;
|
|
2779
|
+
}
|
|
2780
|
+
/**
|
|
2781
|
+
* BIP-39 mnemonic phrase for key generation.
|
|
2782
|
+
* Backed by bdk_wallet::keys::bip39::Mnemonic (requires `keys-bip39` feature).
|
|
2783
|
+
*/
|
|
2784
|
+
export declare class Mnemonic extends UniffiAbstractObject implements MnemonicInterface {
|
|
2785
|
+
readonly [uniffiTypeNameSymbol] = "Mnemonic";
|
|
2786
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2787
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2788
|
+
/**
|
|
2789
|
+
* Generate a new random mnemonic with the given word count (English).
|
|
2790
|
+
*/
|
|
2791
|
+
constructor(wordCount: WordCount);
|
|
2792
|
+
/**
|
|
2793
|
+
* Create a mnemonic from raw entropy bytes (16–32 bytes).
|
|
2794
|
+
*/
|
|
2795
|
+
static fromEntropy(entropy: Array</*u8*/ number>): MnemonicInterface;
|
|
2796
|
+
/**
|
|
2797
|
+
* Create a mnemonic from raw entropy bytes in a specific language.
|
|
2798
|
+
*/
|
|
2799
|
+
static fromEntropyIn(entropy: Array</*u8*/ number>, language: Language): MnemonicInterface;
|
|
2800
|
+
/**
|
|
2801
|
+
* Parse an existing mnemonic string (auto-detects language).
|
|
2802
|
+
*/
|
|
2803
|
+
static fromString(mnemonic: string): MnemonicInterface;
|
|
2804
|
+
/**
|
|
2805
|
+
* Parse a mnemonic string in a specific language.
|
|
2806
|
+
*/
|
|
2807
|
+
static fromStringIn(mnemonic: string, language: Language): MnemonicInterface;
|
|
2808
|
+
/**
|
|
2809
|
+
* The language of this mnemonic.
|
|
2810
|
+
*/
|
|
2811
|
+
language(): Language;
|
|
2812
|
+
/**
|
|
2813
|
+
* Derive the 64-byte seed as hex. Pass an empty string for no passphrase.
|
|
2814
|
+
*/
|
|
2815
|
+
toSeedHex(passphrase: string): string;
|
|
2816
|
+
/**
|
|
2817
|
+
* The mnemonic as a space-separated word string.
|
|
2818
|
+
*/
|
|
2819
|
+
toString(): string;
|
|
2820
|
+
/**
|
|
2821
|
+
* Number of words (12, 15, 18, 21, or 24).
|
|
2822
|
+
*/
|
|
2823
|
+
wordCount(): number;
|
|
2824
|
+
/**
|
|
2825
|
+
* List the individual words.
|
|
2826
|
+
*/
|
|
2827
|
+
words(): Array<string>;
|
|
2828
|
+
/**
|
|
2829
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2830
|
+
*/
|
|
2831
|
+
uniffiDestroy(): void;
|
|
2832
|
+
static instanceOf(obj: any): obj is Mnemonic;
|
|
2833
|
+
}
|
|
2834
|
+
/**
|
|
2835
|
+
* A Partially Signed Bitcoin Transaction (BIP-174 / BIP-370).
|
|
2836
|
+
* Mirrors bitcoin::Psbt with added PsbtUtils trait methods.
|
|
2837
|
+
*/
|
|
2838
|
+
export interface PsbtInterface {
|
|
2839
|
+
/**
|
|
2840
|
+
* Extract the fully-signed transaction as raw hex.
|
|
2841
|
+
* Only valid after all inputs are finalized.
|
|
2842
|
+
*/
|
|
2843
|
+
extractTxHex(): string;
|
|
2844
|
+
/**
|
|
2845
|
+
* Total fee in satoshis. None if any input UTXO value is unknown.
|
|
2846
|
+
* From PsbtUtils::fee_amount().
|
|
2847
|
+
*/
|
|
2848
|
+
feeAmount(): /*u64*/ bigint | undefined;
|
|
2849
|
+
/**
|
|
2850
|
+
* Fee rate in sat/vbyte. None if any input UTXO value is unknown.
|
|
2851
|
+
* From PsbtUtils::fee_rate().
|
|
2852
|
+
*/
|
|
2853
|
+
feeRate(): /*f64*/ number | undefined;
|
|
2854
|
+
/**
|
|
2855
|
+
* Retrieve the UTXO for a given input index. Returns None if unavailable.
|
|
2856
|
+
* From PsbtUtils::get_utxo_for().
|
|
2857
|
+
*/
|
|
2858
|
+
getUtxoFor(inputIndex: bigint): TxOut | undefined;
|
|
2859
|
+
/**
|
|
2860
|
+
* Serialize to a base64-encoded string.
|
|
2861
|
+
*/
|
|
2862
|
+
toBase64(): string;
|
|
2863
|
+
/**
|
|
2864
|
+
* The unsigned txid (available before finalization).
|
|
2865
|
+
*/
|
|
2866
|
+
txid(): string;
|
|
2867
|
+
}
|
|
2868
|
+
/**
|
|
2869
|
+
* A Partially Signed Bitcoin Transaction (BIP-174 / BIP-370).
|
|
2870
|
+
* Mirrors bitcoin::Psbt with added PsbtUtils trait methods.
|
|
2871
|
+
*/
|
|
2872
|
+
export declare class Psbt extends UniffiAbstractObject implements PsbtInterface {
|
|
2873
|
+
readonly [uniffiTypeNameSymbol] = "Psbt";
|
|
2874
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
2875
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
2876
|
+
/**
|
|
2877
|
+
* Deserialize from a base64-encoded string.
|
|
2878
|
+
*/
|
|
2879
|
+
constructor(psbtBase64: string);
|
|
2880
|
+
/**
|
|
2881
|
+
* Extract the fully-signed transaction as raw hex.
|
|
2882
|
+
* Only valid after all inputs are finalized.
|
|
2883
|
+
*/
|
|
2884
|
+
extractTxHex(): string;
|
|
2885
|
+
/**
|
|
2886
|
+
* Total fee in satoshis. None if any input UTXO value is unknown.
|
|
2887
|
+
* From PsbtUtils::fee_amount().
|
|
2888
|
+
*/
|
|
2889
|
+
feeAmount(): /*u64*/ bigint | undefined;
|
|
2890
|
+
/**
|
|
2891
|
+
* Fee rate in sat/vbyte. None if any input UTXO value is unknown.
|
|
2892
|
+
* From PsbtUtils::fee_rate().
|
|
2893
|
+
*/
|
|
2894
|
+
feeRate(): /*f64*/ number | undefined;
|
|
2895
|
+
/**
|
|
2896
|
+
* Retrieve the UTXO for a given input index. Returns None if unavailable.
|
|
2897
|
+
* From PsbtUtils::get_utxo_for().
|
|
2898
|
+
*/
|
|
2899
|
+
getUtxoFor(inputIndex: bigint): TxOut | undefined;
|
|
2900
|
+
/**
|
|
2901
|
+
* Serialize to a base64-encoded string.
|
|
2902
|
+
*/
|
|
2903
|
+
toBase64(): string;
|
|
2904
|
+
/**
|
|
2905
|
+
* The unsigned txid (available before finalization).
|
|
2906
|
+
*/
|
|
2907
|
+
txid(): string;
|
|
2908
|
+
/**
|
|
2909
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2910
|
+
*/
|
|
2911
|
+
uniffiDestroy(): void;
|
|
2912
|
+
static instanceOf(obj: any): obj is Psbt;
|
|
2913
|
+
}
|
|
2914
|
+
/**
|
|
2915
|
+
* Fluent builder for constructing Bitcoin transactions.
|
|
2916
|
+
* Create one, configure it, then call finish(wallet) to produce a PSBT.
|
|
2917
|
+
* Mirrors bdk_wallet::TxBuilder (without lifetime / generic coin selection).
|
|
2918
|
+
*/
|
|
2919
|
+
export interface TxBuilderInterface {
|
|
2920
|
+
/**
|
|
2921
|
+
* Attach OP_RETURN data to the transaction.
|
|
2922
|
+
*/
|
|
2923
|
+
addData(data: Array</*u8*/ number>): void;
|
|
2924
|
+
/**
|
|
2925
|
+
* Include BIP-32 global xpubs in the PSBT.
|
|
2926
|
+
*/
|
|
2927
|
+
addGlobalXpubs(): void;
|
|
2928
|
+
/**
|
|
2929
|
+
* Add a single recipient (address + amount).
|
|
2930
|
+
*/
|
|
2931
|
+
addRecipient(address: string, amountSats: bigint): void;
|
|
2932
|
+
/**
|
|
2933
|
+
* Mark a single UTXO as unspendable.
|
|
2934
|
+
*/
|
|
2935
|
+
addUnspendable(outpoint: OutPoint): void;
|
|
2936
|
+
/**
|
|
2937
|
+
* Add a specific UTXO to spend.
|
|
2938
|
+
*/
|
|
2939
|
+
addUtxo(outpoint: OutPoint): void;
|
|
2940
|
+
/**
|
|
2941
|
+
* Add multiple specific UTXOs to spend.
|
|
2942
|
+
*/
|
|
2943
|
+
addUtxos(outpoints: Array<OutPoint>): void;
|
|
2944
|
+
/**
|
|
2945
|
+
* Allow outputs below the dust threshold.
|
|
2946
|
+
*/
|
|
2947
|
+
allowDust(allow: boolean): void;
|
|
2948
|
+
/**
|
|
2949
|
+
* Set the change spend policy explicitly.
|
|
2950
|
+
*/
|
|
2951
|
+
changePolicy(policy: ChangeSpendPolicy): void;
|
|
2952
|
+
/**
|
|
2953
|
+
* Set the assumed current block height (for relative timelock evaluation).
|
|
2954
|
+
*/
|
|
2955
|
+
currentHeight(height: number): void;
|
|
2956
|
+
/**
|
|
2957
|
+
* Forbid spending from change outputs.
|
|
2958
|
+
*/
|
|
2959
|
+
doNotSpendChange(): void;
|
|
2960
|
+
/**
|
|
2961
|
+
* Set the script to receive the remaining change (use with drain_wallet).
|
|
2962
|
+
*/
|
|
2963
|
+
drainTo(address: string): void;
|
|
2964
|
+
/**
|
|
2965
|
+
* Spend all spendable UTXOs (send remaining to the drain_to address).
|
|
2966
|
+
*/
|
|
2967
|
+
drainWallet(): void;
|
|
2968
|
+
/**
|
|
2969
|
+
* Enable RBF signalling with the default nSequence (0xFFFFFFFD).
|
|
2970
|
+
*/
|
|
2971
|
+
enableRbf(): void;
|
|
2972
|
+
/**
|
|
2973
|
+
* Enable RBF signalling with a specific nSequence value (must be < 0xFFFFFFFE).
|
|
2974
|
+
*/
|
|
2975
|
+
enableRbfWithSequence(nsequence: number): void;
|
|
2976
|
+
/**
|
|
2977
|
+
* Exclude UTXOs with fewer than min_confirms confirmations.
|
|
2978
|
+
*/
|
|
2979
|
+
excludeBelowConfirmations(minConfirms: number): void;
|
|
2980
|
+
/**
|
|
2981
|
+
* Exclude all unconfirmed UTXOs.
|
|
2982
|
+
*/
|
|
2983
|
+
excludeUnconfirmed(): void;
|
|
2984
|
+
/**
|
|
2985
|
+
* Set an absolute fee in satoshis (overrides fee_rate).
|
|
2986
|
+
*/
|
|
2987
|
+
feeAbsolute(feeSats: bigint): void;
|
|
2988
|
+
/**
|
|
2989
|
+
* Set a fee rate target in sat/vbyte.
|
|
2990
|
+
*/
|
|
2991
|
+
feeRate(satPerVbyte: number): void;
|
|
2992
|
+
/**
|
|
2993
|
+
* Build the transaction into a PSBT. The wallet is used for coin
|
|
2994
|
+
* selection and script resolution — the PSBT is NOT signed here.
|
|
2995
|
+
*/
|
|
2996
|
+
finish(wallet: WalletInterface): PsbtInterface;
|
|
2997
|
+
/**
|
|
2998
|
+
* Include the redeemScript / witnessScript in PSBT outputs.
|
|
2999
|
+
*/
|
|
3000
|
+
includeOutputRedeemWitnessScript(): void;
|
|
3001
|
+
/**
|
|
3002
|
+
* Only use the UTXOs explicitly added with add_utxo / add_utxos.
|
|
3003
|
+
*/
|
|
3004
|
+
manuallySelectedOnly(): void;
|
|
3005
|
+
/**
|
|
3006
|
+
* Set an explicit nLockTime (as a block height).
|
|
3007
|
+
*/
|
|
3008
|
+
nlocktime(lockHeight: number): void;
|
|
3009
|
+
/**
|
|
3010
|
+
* Only spend from change outputs.
|
|
3011
|
+
*/
|
|
3012
|
+
onlySpendChange(): void;
|
|
3013
|
+
/**
|
|
3014
|
+
* Include only witness UTXO in PSBT inputs (reduced size, less validation).
|
|
3015
|
+
*/
|
|
3016
|
+
onlyWitnessUtxo(): void;
|
|
3017
|
+
/**
|
|
3018
|
+
* Set the input/output ordering strategy.
|
|
3019
|
+
*/
|
|
3020
|
+
ordering(ordering: TxOrdering): void;
|
|
3021
|
+
/**
|
|
3022
|
+
* Supply a policy path for complex descriptors (multisig, timelocks).
|
|
3023
|
+
* path_map is a JSON-encoded BTreeMap<String, Vec<usize>>.
|
|
3024
|
+
*/
|
|
3025
|
+
policyPath(pathMapJson: string, keychain: KeychainKind): void;
|
|
3026
|
+
/**
|
|
3027
|
+
* Set an exact nSequence value for all inputs.
|
|
3028
|
+
*/
|
|
3029
|
+
setExactSequence(nsequence: number): void;
|
|
3030
|
+
/**
|
|
3031
|
+
* Replace the entire recipient list.
|
|
3032
|
+
*/
|
|
3033
|
+
setRecipients(recipients: Array<Recipient>): void;
|
|
3034
|
+
/**
|
|
3035
|
+
* Set the sighash type for all inputs.
|
|
3036
|
+
*/
|
|
3037
|
+
sighash(sighashType: number): void;
|
|
3038
|
+
/**
|
|
3039
|
+
* Set the transaction version (1 or 2).
|
|
3040
|
+
*/
|
|
3041
|
+
txVersion(version: number): void;
|
|
3042
|
+
/**
|
|
3043
|
+
* Mark UTXOs as unspendable (excluded from coin selection).
|
|
3044
|
+
*/
|
|
3045
|
+
unspendable(outpoints: Array<OutPoint>): void;
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* Fluent builder for constructing Bitcoin transactions.
|
|
3049
|
+
* Create one, configure it, then call finish(wallet) to produce a PSBT.
|
|
3050
|
+
* Mirrors bdk_wallet::TxBuilder (without lifetime / generic coin selection).
|
|
3051
|
+
*/
|
|
3052
|
+
export declare class TxBuilder extends UniffiAbstractObject implements TxBuilderInterface {
|
|
3053
|
+
readonly [uniffiTypeNameSymbol] = "TxBuilder";
|
|
3054
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3055
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
3056
|
+
constructor();
|
|
3057
|
+
/**
|
|
3058
|
+
* Attach OP_RETURN data to the transaction.
|
|
3059
|
+
*/
|
|
3060
|
+
addData(data: Array</*u8*/ number>): void;
|
|
3061
|
+
/**
|
|
3062
|
+
* Include BIP-32 global xpubs in the PSBT.
|
|
3063
|
+
*/
|
|
3064
|
+
addGlobalXpubs(): void;
|
|
3065
|
+
/**
|
|
3066
|
+
* Add a single recipient (address + amount).
|
|
3067
|
+
*/
|
|
3068
|
+
addRecipient(address: string, amountSats: bigint): void;
|
|
3069
|
+
/**
|
|
3070
|
+
* Mark a single UTXO as unspendable.
|
|
3071
|
+
*/
|
|
3072
|
+
addUnspendable(outpoint: OutPoint): void;
|
|
3073
|
+
/**
|
|
3074
|
+
* Add a specific UTXO to spend.
|
|
3075
|
+
*/
|
|
3076
|
+
addUtxo(outpoint: OutPoint): void;
|
|
3077
|
+
/**
|
|
3078
|
+
* Add multiple specific UTXOs to spend.
|
|
3079
|
+
*/
|
|
3080
|
+
addUtxos(outpoints: Array<OutPoint>): void;
|
|
3081
|
+
/**
|
|
3082
|
+
* Allow outputs below the dust threshold.
|
|
3083
|
+
*/
|
|
3084
|
+
allowDust(allow: boolean): void;
|
|
3085
|
+
/**
|
|
3086
|
+
* Set the change spend policy explicitly.
|
|
3087
|
+
*/
|
|
3088
|
+
changePolicy(policy: ChangeSpendPolicy): void;
|
|
3089
|
+
/**
|
|
3090
|
+
* Set the assumed current block height (for relative timelock evaluation).
|
|
3091
|
+
*/
|
|
3092
|
+
currentHeight(height: number): void;
|
|
3093
|
+
/**
|
|
3094
|
+
* Forbid spending from change outputs.
|
|
3095
|
+
*/
|
|
3096
|
+
doNotSpendChange(): void;
|
|
3097
|
+
/**
|
|
3098
|
+
* Set the script to receive the remaining change (use with drain_wallet).
|
|
3099
|
+
*/
|
|
3100
|
+
drainTo(address: string): void;
|
|
3101
|
+
/**
|
|
3102
|
+
* Spend all spendable UTXOs (send remaining to the drain_to address).
|
|
3103
|
+
*/
|
|
3104
|
+
drainWallet(): void;
|
|
3105
|
+
/**
|
|
3106
|
+
* Enable RBF signalling with the default nSequence (0xFFFFFFFD).
|
|
3107
|
+
*/
|
|
3108
|
+
enableRbf(): void;
|
|
3109
|
+
/**
|
|
3110
|
+
* Enable RBF signalling with a specific nSequence value (must be < 0xFFFFFFFE).
|
|
3111
|
+
*/
|
|
3112
|
+
enableRbfWithSequence(nsequence: number): void;
|
|
3113
|
+
/**
|
|
3114
|
+
* Exclude UTXOs with fewer than min_confirms confirmations.
|
|
3115
|
+
*/
|
|
3116
|
+
excludeBelowConfirmations(minConfirms: number): void;
|
|
3117
|
+
/**
|
|
3118
|
+
* Exclude all unconfirmed UTXOs.
|
|
3119
|
+
*/
|
|
3120
|
+
excludeUnconfirmed(): void;
|
|
3121
|
+
/**
|
|
3122
|
+
* Set an absolute fee in satoshis (overrides fee_rate).
|
|
3123
|
+
*/
|
|
3124
|
+
feeAbsolute(feeSats: bigint): void;
|
|
3125
|
+
/**
|
|
3126
|
+
* Set a fee rate target in sat/vbyte.
|
|
3127
|
+
*/
|
|
3128
|
+
feeRate(satPerVbyte: number): void;
|
|
3129
|
+
/**
|
|
3130
|
+
* Build the transaction into a PSBT. The wallet is used for coin
|
|
3131
|
+
* selection and script resolution — the PSBT is NOT signed here.
|
|
3132
|
+
*/
|
|
3133
|
+
finish(wallet: WalletInterface): PsbtInterface;
|
|
3134
|
+
/**
|
|
3135
|
+
* Include the redeemScript / witnessScript in PSBT outputs.
|
|
3136
|
+
*/
|
|
3137
|
+
includeOutputRedeemWitnessScript(): void;
|
|
3138
|
+
/**
|
|
3139
|
+
* Only use the UTXOs explicitly added with add_utxo / add_utxos.
|
|
3140
|
+
*/
|
|
3141
|
+
manuallySelectedOnly(): void;
|
|
3142
|
+
/**
|
|
3143
|
+
* Set an explicit nLockTime (as a block height).
|
|
3144
|
+
*/
|
|
3145
|
+
nlocktime(lockHeight: number): void;
|
|
3146
|
+
/**
|
|
3147
|
+
* Only spend from change outputs.
|
|
3148
|
+
*/
|
|
3149
|
+
onlySpendChange(): void;
|
|
3150
|
+
/**
|
|
3151
|
+
* Include only witness UTXO in PSBT inputs (reduced size, less validation).
|
|
3152
|
+
*/
|
|
3153
|
+
onlyWitnessUtxo(): void;
|
|
3154
|
+
/**
|
|
3155
|
+
* Set the input/output ordering strategy.
|
|
3156
|
+
*/
|
|
3157
|
+
ordering(ordering: TxOrdering): void;
|
|
3158
|
+
/**
|
|
3159
|
+
* Supply a policy path for complex descriptors (multisig, timelocks).
|
|
3160
|
+
* path_map is a JSON-encoded BTreeMap<String, Vec<usize>>.
|
|
3161
|
+
*/
|
|
3162
|
+
policyPath(pathMapJson: string, keychain: KeychainKind): void;
|
|
3163
|
+
/**
|
|
3164
|
+
* Set an exact nSequence value for all inputs.
|
|
3165
|
+
*/
|
|
3166
|
+
setExactSequence(nsequence: number): void;
|
|
3167
|
+
/**
|
|
3168
|
+
* Replace the entire recipient list.
|
|
3169
|
+
*/
|
|
3170
|
+
setRecipients(recipients: Array<Recipient>): void;
|
|
3171
|
+
/**
|
|
3172
|
+
* Set the sighash type for all inputs.
|
|
3173
|
+
*/
|
|
3174
|
+
sighash(sighashType: number): void;
|
|
3175
|
+
/**
|
|
3176
|
+
* Set the transaction version (1 or 2).
|
|
3177
|
+
*/
|
|
3178
|
+
txVersion(version: number): void;
|
|
3179
|
+
/**
|
|
3180
|
+
* Mark UTXOs as unspendable (excluded from coin selection).
|
|
3181
|
+
*/
|
|
3182
|
+
unspendable(outpoints: Array<OutPoint>): void;
|
|
3183
|
+
/**
|
|
3184
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3185
|
+
*/
|
|
3186
|
+
uniffiDestroy(): void;
|
|
3187
|
+
static instanceOf(obj: any): obj is TxBuilder;
|
|
3188
|
+
}
|
|
3189
|
+
export interface WalletInterface {
|
|
3190
|
+
/**
|
|
3191
|
+
* Broadcast a finalized PSBT via Electrum. Returns the txid.
|
|
3192
|
+
*/
|
|
3193
|
+
broadcastWithElectrum(url: string, psbt: PsbtInterface): string;
|
|
3194
|
+
/**
|
|
3195
|
+
* Broadcast a finalized PSBT via Esplora. Returns the txid.
|
|
3196
|
+
*/
|
|
3197
|
+
broadcastWithEsplora(url: string, psbt: PsbtInterface, asyncOpts_?: {
|
|
3198
|
+
signal: AbortSignal;
|
|
3199
|
+
}): Promise<string>;
|
|
3200
|
+
/**
|
|
3201
|
+
* Build an RBF fee-bump PSBT for an unconfirmed transaction.
|
|
3202
|
+
* Mirrors Wallet::build_fee_bump().
|
|
3203
|
+
*/
|
|
3204
|
+
buildFeeBump(txid: string, newFeeRate: number): PsbtInterface;
|
|
3205
|
+
/**
|
|
3206
|
+
* Calculate the fee paid by a raw transaction (hex). Returns satoshis.
|
|
3207
|
+
* Mirrors Wallet::calculate_fee().
|
|
3208
|
+
*/
|
|
3209
|
+
calculateFee(txHex: string): bigint;
|
|
3210
|
+
/**
|
|
3211
|
+
* Calculate the fee rate for a raw transaction (hex). Returns sat/vbyte.
|
|
3212
|
+
* Mirrors Wallet::calculate_fee_rate().
|
|
3213
|
+
*/
|
|
3214
|
+
calculateFeeRate(txHex: string): number;
|
|
3215
|
+
/**
|
|
3216
|
+
* Cancel (evict) a transaction from the wallet's view.
|
|
3217
|
+
* Mirrors Wallet::cancel_tx().
|
|
3218
|
+
*/
|
|
3219
|
+
cancelTx(txHex: string): void;
|
|
3220
|
+
/**
|
|
3221
|
+
* All checkpoints in the local chain, ordered by height descending.
|
|
3222
|
+
* Mirrors Wallet::checkpoints().
|
|
3223
|
+
*/
|
|
3224
|
+
checkpoints(): Array<BlockId>;
|
|
3225
|
+
/**
|
|
3226
|
+
* The highest derivation index that has been revealed, or null if none.
|
|
3227
|
+
* Mirrors Wallet::derivation_index().
|
|
3228
|
+
*/
|
|
3229
|
+
derivationIndex(keychain: KeychainKind): /*u32*/ number | undefined;
|
|
3230
|
+
/**
|
|
3231
|
+
* Find the keychain and derivation index for a scriptPubKey (hex).
|
|
3232
|
+
* Returns null if the script does not belong to this wallet.
|
|
3233
|
+
* Mirrors Wallet::derivation_of_spk().
|
|
3234
|
+
*/
|
|
3235
|
+
derivationOfSpk(scriptHex: string): DerivationInfo | undefined;
|
|
3236
|
+
/**
|
|
3237
|
+
* The descriptor checksum for the given keychain.
|
|
3238
|
+
* Mirrors Wallet::descriptor_checksum().
|
|
3239
|
+
*/
|
|
3240
|
+
descriptorChecksum(keychain: KeychainKind): string;
|
|
3241
|
+
/**
|
|
3242
|
+
* Drain the entire wallet to an address. Returns txid.
|
|
3243
|
+
*/
|
|
3244
|
+
drain(address: string, feeRate: number, esploraUrl: string, asyncOpts_?: {
|
|
3245
|
+
signal: AbortSignal;
|
|
3246
|
+
}): Promise<string>;
|
|
3247
|
+
/**
|
|
3248
|
+
* Sign and attempt to finalize all inputs.
|
|
3249
|
+
* Returns true if fully finalized.
|
|
3250
|
+
* Mirrors Wallet::finalize_psbt() with default SignOptions.
|
|
3251
|
+
*/
|
|
3252
|
+
finalizePsbt(psbt: PsbtInterface): boolean;
|
|
3253
|
+
/**
|
|
3254
|
+
* Full scan via an Electrum TCP/TLS server.
|
|
3255
|
+
*/
|
|
3256
|
+
fullScanWithElectrum(url: string, stopGap: bigint): void;
|
|
3257
|
+
/**
|
|
3258
|
+
* Full scan via an Esplora HTTP server (discovers all used addresses).
|
|
3259
|
+
* Uses Wallet::start_full_scan() + bdk_esplora client internally.
|
|
3260
|
+
* stop_gap: how many consecutive unused addresses to scan before stopping.
|
|
3261
|
+
*/
|
|
3262
|
+
fullScanWithEsplora(url: string, stopGap: bigint, asyncOpts_?: {
|
|
3263
|
+
signal: AbortSignal;
|
|
3264
|
+
}): Promise<void>;
|
|
3265
|
+
/**
|
|
3266
|
+
* Get the wallet balance. Mirrors Wallet::balance().
|
|
3267
|
+
*/
|
|
3268
|
+
getBalance(): Balance;
|
|
3269
|
+
/**
|
|
3270
|
+
* Returns the raw transaction hex for a given txid. Null if not found.
|
|
3271
|
+
* Mirrors Wallet::get_tx().
|
|
3272
|
+
*/
|
|
3273
|
+
getTx(txid: string): /*throws*/ string | undefined;
|
|
3274
|
+
/**
|
|
3275
|
+
* Get a specific UTXO. Returns null if not found. Mirrors Wallet::get_utxo().
|
|
3276
|
+
*/
|
|
3277
|
+
getUtxo(outpoint: OutPoint): /*throws*/ LocalOutput | undefined;
|
|
3278
|
+
/**
|
|
3279
|
+
* Manually insert a TxOut (e.g. for tracking external outputs).
|
|
3280
|
+
* Mirrors Wallet::insert_txout().
|
|
3281
|
+
*/
|
|
3282
|
+
insertTxout(outpoint: OutPoint, txout: TxOut): void;
|
|
3283
|
+
/**
|
|
3284
|
+
* Return true if the given scriptPubKey (hex) belongs to this wallet.
|
|
3285
|
+
* Mirrors Wallet::is_mine().
|
|
3286
|
+
*/
|
|
3287
|
+
isMine(scriptHex: string): boolean;
|
|
3288
|
+
/**
|
|
3289
|
+
* List all keychains and their public descriptors.
|
|
3290
|
+
* Mirrors Wallet::keychains().
|
|
3291
|
+
*/
|
|
3292
|
+
keychains(): Array<KeychainInfo>;
|
|
3293
|
+
/**
|
|
3294
|
+
* The latest checkpoint (tip of the local chain). Null if no blocks applied yet.
|
|
3295
|
+
* Mirrors Wallet::latest_checkpoint().
|
|
3296
|
+
*/
|
|
3297
|
+
latestCheckpoint(): BlockId | undefined;
|
|
3298
|
+
/**
|
|
3299
|
+
* List all wallet outputs (spent and unspent). Mirrors Wallet::list_output().
|
|
3300
|
+
*/
|
|
3301
|
+
listOutput(): Array<LocalOutput>;
|
|
3302
|
+
/**
|
|
3303
|
+
* List all unspent wallet outputs. Mirrors Wallet::list_unspent().
|
|
3304
|
+
*/
|
|
3305
|
+
listUnspent(): Array<LocalOutput>;
|
|
3306
|
+
/**
|
|
3307
|
+
* List all addresses that have been revealed but not yet received funds.
|
|
3308
|
+
* Mirrors Wallet::list_unused_addresses().
|
|
3309
|
+
*/
|
|
3310
|
+
listUnusedAddresses(keychain: KeychainKind): Array<AddressInfo>;
|
|
3311
|
+
/**
|
|
3312
|
+
* Mark an address index as used (returns true if previously unused).
|
|
3313
|
+
* Mirrors Wallet::mark_used().
|
|
3314
|
+
*/
|
|
3315
|
+
markUsed(keychain: KeychainKind, index: number): boolean;
|
|
3316
|
+
/**
|
|
3317
|
+
* The network this wallet is configured for.
|
|
3318
|
+
* Mirrors Wallet::network().
|
|
3319
|
+
*/
|
|
3320
|
+
network(): Network;
|
|
3321
|
+
/**
|
|
3322
|
+
* The next derivation index that will be revealed.
|
|
3323
|
+
* Mirrors Wallet::next_derivation_index().
|
|
3324
|
+
*/
|
|
3325
|
+
nextDerivationIndex(keychain: KeychainKind): number;
|
|
3326
|
+
/**
|
|
3327
|
+
* Return the next address that has not yet received funds.
|
|
3328
|
+
* Mirrors Wallet::next_unused_address().
|
|
3329
|
+
*/
|
|
3330
|
+
nextUnusedAddress(keychain: KeychainKind): AddressInfo;
|
|
3331
|
+
/**
|
|
3332
|
+
* Peek at a specific derivation index without advancing the counter.
|
|
3333
|
+
* Mirrors Wallet::peek_address().
|
|
3334
|
+
*/
|
|
3335
|
+
peekAddress(keychain: KeychainKind, index: number): AddressInfo;
|
|
3336
|
+
/**
|
|
3337
|
+
* Persist any staged changes to the database.
|
|
3338
|
+
* Our FFI wraps PersistedWallet; this calls persist() internally.
|
|
3339
|
+
*/
|
|
3340
|
+
persist(): boolean;
|
|
3341
|
+
/**
|
|
3342
|
+
* Spending policies for a given keychain, returned as a JSON string.
|
|
3343
|
+
* Returns null if the descriptor has no policy.
|
|
3344
|
+
* Mirrors Wallet::policies() — serialized because the Policy tree is complex.
|
|
3345
|
+
*/
|
|
3346
|
+
policies(keychain: KeychainKind): /*throws*/ string | undefined;
|
|
3347
|
+
/**
|
|
3348
|
+
* The public-only descriptor for the given keychain as a string.
|
|
3349
|
+
* Mirrors Wallet::public_descriptor().
|
|
3350
|
+
*/
|
|
3351
|
+
publicDescriptor(keychain: KeychainKind): string;
|
|
3352
|
+
/**
|
|
3353
|
+
* Reveal all addresses up to and including the given derivation index.
|
|
3354
|
+
* Mirrors Wallet::reveal_addresses_to().
|
|
3355
|
+
*/
|
|
3356
|
+
revealAddressesTo(keychain: KeychainKind, index: number): Array<AddressInfo>;
|
|
3357
|
+
/**
|
|
3358
|
+
* Reveal and return the next address at the next derivation index,
|
|
3359
|
+
* incrementing the index even if previous addresses are unused.
|
|
3360
|
+
* Mirrors Wallet::reveal_next_address().
|
|
3361
|
+
*/
|
|
3362
|
+
revealNextAddress(keychain: KeychainKind): AddressInfo;
|
|
3363
|
+
/**
|
|
3364
|
+
* Build, sign, and broadcast a simple payment in one call. Returns txid.
|
|
3365
|
+
* Combines build_tx → sign → broadcast via Esplora.
|
|
3366
|
+
*/
|
|
3367
|
+
send(address: string, amountSats: bigint, feeRate: number, esploraUrl: string, asyncOpts_?: {
|
|
3368
|
+
signal: AbortSignal;
|
|
3369
|
+
}): Promise<string>;
|
|
3370
|
+
/**
|
|
3371
|
+
* How much was sent from / received into the wallet for a raw tx (hex).
|
|
3372
|
+
* Mirrors Wallet::sent_and_received().
|
|
3373
|
+
*/
|
|
3374
|
+
sentAndReceived(txHex: string): SentAndReceived;
|
|
3375
|
+
/**
|
|
3376
|
+
* Sign all inputs in the PSBT that this wallet can sign.
|
|
3377
|
+
* Returns true if the PSBT is fully finalized after signing.
|
|
3378
|
+
* Mirrors Wallet::sign() with default SignOptions.
|
|
3379
|
+
*/
|
|
3380
|
+
sign(psbt: PsbtInterface): boolean;
|
|
3381
|
+
/**
|
|
3382
|
+
* Incremental sync via Electrum.
|
|
3383
|
+
*/
|
|
3384
|
+
syncWithElectrum(url: string, stopGap: bigint): void;
|
|
3385
|
+
/**
|
|
3386
|
+
* Incremental sync via Esplora (only checks revealed SPKs + UTXOs + unconfirmed).
|
|
3387
|
+
* Uses Wallet::start_sync_with_revealed_spks() + bdk_esplora client internally.
|
|
3388
|
+
*/
|
|
3389
|
+
syncWithEsplora(url: string, stopGap: bigint, asyncOpts_?: {
|
|
3390
|
+
signal: AbortSignal;
|
|
3391
|
+
}): Promise<void>;
|
|
3392
|
+
/**
|
|
3393
|
+
* All wallet-relevant canonical transactions.
|
|
3394
|
+
* Mirrors Wallet::transactions() → mapped to TxDetails.
|
|
3395
|
+
*/
|
|
3396
|
+
transactions(): Array<TxDetails>;
|
|
3397
|
+
/**
|
|
3398
|
+
* Details for a single transaction. Returns null if not found.
|
|
3399
|
+
* Mirrors Wallet::tx_details().
|
|
3400
|
+
*/
|
|
3401
|
+
txDetails(txid: string): /*throws*/ TxDetails | undefined;
|
|
3402
|
+
/**
|
|
3403
|
+
* Mark an address index as unused (returns true if previously used).
|
|
3404
|
+
* Mirrors Wallet::unmark_used().
|
|
3405
|
+
*/
|
|
3406
|
+
unmarkUsed(keychain: KeychainKind, index: number): boolean;
|
|
3407
|
+
}
|
|
3408
|
+
export declare class Wallet extends UniffiAbstractObject implements WalletInterface {
|
|
3409
|
+
readonly [uniffiTypeNameSymbol] = "Wallet";
|
|
3410
|
+
readonly [destructorGuardSymbol]: UniffiGcObject;
|
|
3411
|
+
readonly [pointerLiteralSymbol]: UniffiHandle;
|
|
3412
|
+
/**
|
|
3413
|
+
* Create or load a persisted wallet.
|
|
3414
|
+
* descriptor / change_descriptor: output descriptor strings (e.g. "wpkh(tprv…/84'/1'/0'/0/*)")
|
|
3415
|
+
* db_path: file path for the SQLite persistence database.
|
|
3416
|
+
*/
|
|
3417
|
+
constructor(descriptor: string, changeDescriptor: string, network: Network, dbPath: string);
|
|
3418
|
+
/**
|
|
3419
|
+
* Broadcast a finalized PSBT via Electrum. Returns the txid.
|
|
3420
|
+
*/
|
|
3421
|
+
broadcastWithElectrum(url: string, psbt: PsbtInterface): string;
|
|
3422
|
+
/**
|
|
3423
|
+
* Broadcast a finalized PSBT via Esplora. Returns the txid.
|
|
3424
|
+
*/
|
|
3425
|
+
broadcastWithEsplora(url: string, psbt: PsbtInterface, asyncOpts_?: {
|
|
3426
|
+
signal: AbortSignal;
|
|
3427
|
+
}): Promise<string>;
|
|
3428
|
+
/**
|
|
3429
|
+
* Build an RBF fee-bump PSBT for an unconfirmed transaction.
|
|
3430
|
+
* Mirrors Wallet::build_fee_bump().
|
|
3431
|
+
*/
|
|
3432
|
+
buildFeeBump(txid: string, newFeeRate: number): PsbtInterface;
|
|
3433
|
+
/**
|
|
3434
|
+
* Calculate the fee paid by a raw transaction (hex). Returns satoshis.
|
|
3435
|
+
* Mirrors Wallet::calculate_fee().
|
|
3436
|
+
*/
|
|
3437
|
+
calculateFee(txHex: string): bigint;
|
|
3438
|
+
/**
|
|
3439
|
+
* Calculate the fee rate for a raw transaction (hex). Returns sat/vbyte.
|
|
3440
|
+
* Mirrors Wallet::calculate_fee_rate().
|
|
3441
|
+
*/
|
|
3442
|
+
calculateFeeRate(txHex: string): number;
|
|
3443
|
+
/**
|
|
3444
|
+
* Cancel (evict) a transaction from the wallet's view.
|
|
3445
|
+
* Mirrors Wallet::cancel_tx().
|
|
3446
|
+
*/
|
|
3447
|
+
cancelTx(txHex: string): void;
|
|
3448
|
+
/**
|
|
3449
|
+
* All checkpoints in the local chain, ordered by height descending.
|
|
3450
|
+
* Mirrors Wallet::checkpoints().
|
|
3451
|
+
*/
|
|
3452
|
+
checkpoints(): Array<BlockId>;
|
|
3453
|
+
/**
|
|
3454
|
+
* The highest derivation index that has been revealed, or null if none.
|
|
3455
|
+
* Mirrors Wallet::derivation_index().
|
|
3456
|
+
*/
|
|
3457
|
+
derivationIndex(keychain: KeychainKind): /*u32*/ number | undefined;
|
|
3458
|
+
/**
|
|
3459
|
+
* Find the keychain and derivation index for a scriptPubKey (hex).
|
|
3460
|
+
* Returns null if the script does not belong to this wallet.
|
|
3461
|
+
* Mirrors Wallet::derivation_of_spk().
|
|
3462
|
+
*/
|
|
3463
|
+
derivationOfSpk(scriptHex: string): DerivationInfo | undefined;
|
|
3464
|
+
/**
|
|
3465
|
+
* The descriptor checksum for the given keychain.
|
|
3466
|
+
* Mirrors Wallet::descriptor_checksum().
|
|
3467
|
+
*/
|
|
3468
|
+
descriptorChecksum(keychain: KeychainKind): string;
|
|
3469
|
+
/**
|
|
3470
|
+
* Drain the entire wallet to an address. Returns txid.
|
|
3471
|
+
*/
|
|
3472
|
+
drain(address: string, feeRate: number, esploraUrl: string, asyncOpts_?: {
|
|
3473
|
+
signal: AbortSignal;
|
|
3474
|
+
}): Promise<string>;
|
|
3475
|
+
/**
|
|
3476
|
+
* Sign and attempt to finalize all inputs.
|
|
3477
|
+
* Returns true if fully finalized.
|
|
3478
|
+
* Mirrors Wallet::finalize_psbt() with default SignOptions.
|
|
3479
|
+
*/
|
|
3480
|
+
finalizePsbt(psbt: PsbtInterface): boolean;
|
|
3481
|
+
/**
|
|
3482
|
+
* Full scan via an Electrum TCP/TLS server.
|
|
3483
|
+
*/
|
|
3484
|
+
fullScanWithElectrum(url: string, stopGap: bigint): void;
|
|
3485
|
+
/**
|
|
3486
|
+
* Full scan via an Esplora HTTP server (discovers all used addresses).
|
|
3487
|
+
* Uses Wallet::start_full_scan() + bdk_esplora client internally.
|
|
3488
|
+
* stop_gap: how many consecutive unused addresses to scan before stopping.
|
|
3489
|
+
*/
|
|
3490
|
+
fullScanWithEsplora(url: string, stopGap: bigint, asyncOpts_?: {
|
|
3491
|
+
signal: AbortSignal;
|
|
3492
|
+
}): Promise<void>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Get the wallet balance. Mirrors Wallet::balance().
|
|
3495
|
+
*/
|
|
3496
|
+
getBalance(): Balance;
|
|
3497
|
+
/**
|
|
3498
|
+
* Returns the raw transaction hex for a given txid. Null if not found.
|
|
3499
|
+
* Mirrors Wallet::get_tx().
|
|
3500
|
+
*/
|
|
3501
|
+
getTx(txid: string): string | undefined;
|
|
3502
|
+
/**
|
|
3503
|
+
* Get a specific UTXO. Returns null if not found. Mirrors Wallet::get_utxo().
|
|
3504
|
+
*/
|
|
3505
|
+
getUtxo(outpoint: OutPoint): LocalOutput | undefined;
|
|
3506
|
+
/**
|
|
3507
|
+
* Manually insert a TxOut (e.g. for tracking external outputs).
|
|
3508
|
+
* Mirrors Wallet::insert_txout().
|
|
3509
|
+
*/
|
|
3510
|
+
insertTxout(outpoint: OutPoint, txout: TxOut): void;
|
|
3511
|
+
/**
|
|
3512
|
+
* Return true if the given scriptPubKey (hex) belongs to this wallet.
|
|
3513
|
+
* Mirrors Wallet::is_mine().
|
|
3514
|
+
*/
|
|
3515
|
+
isMine(scriptHex: string): boolean;
|
|
3516
|
+
/**
|
|
3517
|
+
* List all keychains and their public descriptors.
|
|
3518
|
+
* Mirrors Wallet::keychains().
|
|
3519
|
+
*/
|
|
3520
|
+
keychains(): Array<KeychainInfo>;
|
|
3521
|
+
/**
|
|
3522
|
+
* The latest checkpoint (tip of the local chain). Null if no blocks applied yet.
|
|
3523
|
+
* Mirrors Wallet::latest_checkpoint().
|
|
3524
|
+
*/
|
|
3525
|
+
latestCheckpoint(): BlockId | undefined;
|
|
3526
|
+
/**
|
|
3527
|
+
* List all wallet outputs (spent and unspent). Mirrors Wallet::list_output().
|
|
3528
|
+
*/
|
|
3529
|
+
listOutput(): Array<LocalOutput>;
|
|
3530
|
+
/**
|
|
3531
|
+
* List all unspent wallet outputs. Mirrors Wallet::list_unspent().
|
|
3532
|
+
*/
|
|
3533
|
+
listUnspent(): Array<LocalOutput>;
|
|
3534
|
+
/**
|
|
3535
|
+
* List all addresses that have been revealed but not yet received funds.
|
|
3536
|
+
* Mirrors Wallet::list_unused_addresses().
|
|
3537
|
+
*/
|
|
3538
|
+
listUnusedAddresses(keychain: KeychainKind): Array<AddressInfo>;
|
|
3539
|
+
/**
|
|
3540
|
+
* Mark an address index as used (returns true if previously unused).
|
|
3541
|
+
* Mirrors Wallet::mark_used().
|
|
3542
|
+
*/
|
|
3543
|
+
markUsed(keychain: KeychainKind, index: number): boolean;
|
|
3544
|
+
/**
|
|
3545
|
+
* The network this wallet is configured for.
|
|
3546
|
+
* Mirrors Wallet::network().
|
|
3547
|
+
*/
|
|
3548
|
+
network(): Network;
|
|
3549
|
+
/**
|
|
3550
|
+
* The next derivation index that will be revealed.
|
|
3551
|
+
* Mirrors Wallet::next_derivation_index().
|
|
3552
|
+
*/
|
|
3553
|
+
nextDerivationIndex(keychain: KeychainKind): number;
|
|
3554
|
+
/**
|
|
3555
|
+
* Return the next address that has not yet received funds.
|
|
3556
|
+
* Mirrors Wallet::next_unused_address().
|
|
3557
|
+
*/
|
|
3558
|
+
nextUnusedAddress(keychain: KeychainKind): AddressInfo;
|
|
3559
|
+
/**
|
|
3560
|
+
* Peek at a specific derivation index without advancing the counter.
|
|
3561
|
+
* Mirrors Wallet::peek_address().
|
|
3562
|
+
*/
|
|
3563
|
+
peekAddress(keychain: KeychainKind, index: number): AddressInfo;
|
|
3564
|
+
/**
|
|
3565
|
+
* Persist any staged changes to the database.
|
|
3566
|
+
* Our FFI wraps PersistedWallet; this calls persist() internally.
|
|
3567
|
+
*/
|
|
3568
|
+
persist(): boolean;
|
|
3569
|
+
/**
|
|
3570
|
+
* Spending policies for a given keychain, returned as a JSON string.
|
|
3571
|
+
* Returns null if the descriptor has no policy.
|
|
3572
|
+
* Mirrors Wallet::policies() — serialized because the Policy tree is complex.
|
|
3573
|
+
*/
|
|
3574
|
+
policies(keychain: KeychainKind): string | undefined;
|
|
3575
|
+
/**
|
|
3576
|
+
* The public-only descriptor for the given keychain as a string.
|
|
3577
|
+
* Mirrors Wallet::public_descriptor().
|
|
3578
|
+
*/
|
|
3579
|
+
publicDescriptor(keychain: KeychainKind): string;
|
|
3580
|
+
/**
|
|
3581
|
+
* Reveal all addresses up to and including the given derivation index.
|
|
3582
|
+
* Mirrors Wallet::reveal_addresses_to().
|
|
3583
|
+
*/
|
|
3584
|
+
revealAddressesTo(keychain: KeychainKind, index: number): Array<AddressInfo>;
|
|
3585
|
+
/**
|
|
3586
|
+
* Reveal and return the next address at the next derivation index,
|
|
3587
|
+
* incrementing the index even if previous addresses are unused.
|
|
3588
|
+
* Mirrors Wallet::reveal_next_address().
|
|
3589
|
+
*/
|
|
3590
|
+
revealNextAddress(keychain: KeychainKind): AddressInfo;
|
|
3591
|
+
/**
|
|
3592
|
+
* Build, sign, and broadcast a simple payment in one call. Returns txid.
|
|
3593
|
+
* Combines build_tx → sign → broadcast via Esplora.
|
|
3594
|
+
*/
|
|
3595
|
+
send(address: string, amountSats: bigint, feeRate: number, esploraUrl: string, asyncOpts_?: {
|
|
3596
|
+
signal: AbortSignal;
|
|
3597
|
+
}): Promise<string>;
|
|
3598
|
+
/**
|
|
3599
|
+
* How much was sent from / received into the wallet for a raw tx (hex).
|
|
3600
|
+
* Mirrors Wallet::sent_and_received().
|
|
3601
|
+
*/
|
|
3602
|
+
sentAndReceived(txHex: string): SentAndReceived;
|
|
3603
|
+
/**
|
|
3604
|
+
* Sign all inputs in the PSBT that this wallet can sign.
|
|
3605
|
+
* Returns true if the PSBT is fully finalized after signing.
|
|
3606
|
+
* Mirrors Wallet::sign() with default SignOptions.
|
|
3607
|
+
*/
|
|
3608
|
+
sign(psbt: PsbtInterface): boolean;
|
|
3609
|
+
/**
|
|
3610
|
+
* Incremental sync via Electrum.
|
|
3611
|
+
*/
|
|
3612
|
+
syncWithElectrum(url: string, stopGap: bigint): void;
|
|
3613
|
+
/**
|
|
3614
|
+
* Incremental sync via Esplora (only checks revealed SPKs + UTXOs + unconfirmed).
|
|
3615
|
+
* Uses Wallet::start_sync_with_revealed_spks() + bdk_esplora client internally.
|
|
3616
|
+
*/
|
|
3617
|
+
syncWithEsplora(url: string, stopGap: bigint, asyncOpts_?: {
|
|
3618
|
+
signal: AbortSignal;
|
|
3619
|
+
}): Promise<void>;
|
|
3620
|
+
/**
|
|
3621
|
+
* All wallet-relevant canonical transactions.
|
|
3622
|
+
* Mirrors Wallet::transactions() → mapped to TxDetails.
|
|
3623
|
+
*/
|
|
3624
|
+
transactions(): Array<TxDetails>;
|
|
3625
|
+
/**
|
|
3626
|
+
* Details for a single transaction. Returns null if not found.
|
|
3627
|
+
* Mirrors Wallet::tx_details().
|
|
3628
|
+
*/
|
|
3629
|
+
txDetails(txid: string): TxDetails | undefined;
|
|
3630
|
+
/**
|
|
3631
|
+
* Mark an address index as unused (returns true if previously used).
|
|
3632
|
+
* Mirrors Wallet::unmark_used().
|
|
3633
|
+
*/
|
|
3634
|
+
unmarkUsed(keychain: KeychainKind, index: number): boolean;
|
|
3635
|
+
/**
|
|
3636
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
3637
|
+
*/
|
|
3638
|
+
uniffiDestroy(): void;
|
|
3639
|
+
static instanceOf(obj: any): obj is Wallet;
|
|
3640
|
+
}
|
|
3641
|
+
/**
|
|
3642
|
+
* This should be called before anything else.
|
|
3643
|
+
*
|
|
3644
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
3645
|
+
*
|
|
3646
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
3647
|
+
* and when the bindings were generated.
|
|
3648
|
+
*
|
|
3649
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
3650
|
+
*/
|
|
3651
|
+
declare function uniffiEnsureInitialized(): void;
|
|
3652
|
+
declare const _default: Readonly<{
|
|
3653
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
3654
|
+
converters: {
|
|
3655
|
+
FfiConverterTypeAddressInfo: {
|
|
3656
|
+
read(from: RustBuffer): AddressInfo;
|
|
3657
|
+
write(value: AddressInfo, into: RustBuffer): void;
|
|
3658
|
+
allocationSize(value: AddressInfo): number;
|
|
3659
|
+
lift(value: UniffiByteArray): AddressInfo;
|
|
3660
|
+
lower(value: AddressInfo): UniffiByteArray;
|
|
3661
|
+
};
|
|
3662
|
+
FfiConverterTypeBalance: {
|
|
3663
|
+
read(from: RustBuffer): Balance;
|
|
3664
|
+
write(value: Balance, into: RustBuffer): void;
|
|
3665
|
+
allocationSize(value: Balance): number;
|
|
3666
|
+
lift(value: UniffiByteArray): Balance;
|
|
3667
|
+
lower(value: Balance): UniffiByteArray;
|
|
3668
|
+
};
|
|
3669
|
+
FfiConverterTypeBdkError: {
|
|
3670
|
+
read(from: RustBuffer): BdkError;
|
|
3671
|
+
write(value: BdkError, into: RustBuffer): void;
|
|
3672
|
+
allocationSize(value: BdkError): number;
|
|
3673
|
+
lift(value: UniffiByteArray): BdkError;
|
|
3674
|
+
lower(value: BdkError): UniffiByteArray;
|
|
3675
|
+
};
|
|
3676
|
+
FfiConverterTypeBlockId: {
|
|
3677
|
+
read(from: RustBuffer): BlockId;
|
|
3678
|
+
write(value: BlockId, into: RustBuffer): void;
|
|
3679
|
+
allocationSize(value: BlockId): number;
|
|
3680
|
+
lift(value: UniffiByteArray): BlockId;
|
|
3681
|
+
lower(value: BlockId): UniffiByteArray;
|
|
3682
|
+
};
|
|
3683
|
+
FfiConverterTypeChangeSpendPolicy: {
|
|
3684
|
+
read(from: RustBuffer): ChangeSpendPolicy;
|
|
3685
|
+
write(value: ChangeSpendPolicy, into: RustBuffer): void;
|
|
3686
|
+
allocationSize(value: ChangeSpendPolicy): number;
|
|
3687
|
+
lift(value: UniffiByteArray): ChangeSpendPolicy;
|
|
3688
|
+
lower(value: ChangeSpendPolicy): UniffiByteArray;
|
|
3689
|
+
};
|
|
3690
|
+
FfiConverterTypeConfirmationBlockTime: {
|
|
3691
|
+
read(from: RustBuffer): ConfirmationBlockTime;
|
|
3692
|
+
write(value: ConfirmationBlockTime, into: RustBuffer): void;
|
|
3693
|
+
allocationSize(value: ConfirmationBlockTime): number;
|
|
3694
|
+
lift(value: UniffiByteArray): ConfirmationBlockTime;
|
|
3695
|
+
lower(value: ConfirmationBlockTime): UniffiByteArray;
|
|
3696
|
+
};
|
|
3697
|
+
FfiConverterTypeDerivationInfo: {
|
|
3698
|
+
read(from: RustBuffer): DerivationInfo;
|
|
3699
|
+
write(value: DerivationInfo, into: RustBuffer): void;
|
|
3700
|
+
allocationSize(value: DerivationInfo): number;
|
|
3701
|
+
lift(value: UniffiByteArray): DerivationInfo;
|
|
3702
|
+
lower(value: DerivationInfo): UniffiByteArray;
|
|
3703
|
+
};
|
|
3704
|
+
FfiConverterTypeDescriptorTemplate: {
|
|
3705
|
+
read(from: RustBuffer): DescriptorTemplate;
|
|
3706
|
+
write(value: DescriptorTemplate, into: RustBuffer): void;
|
|
3707
|
+
allocationSize(value: DescriptorTemplate): number;
|
|
3708
|
+
lift(value: UniffiByteArray): DescriptorTemplate;
|
|
3709
|
+
lower(value: DescriptorTemplate): UniffiByteArray;
|
|
3710
|
+
};
|
|
3711
|
+
FfiConverterTypeKeychainInfo: {
|
|
3712
|
+
read(from: RustBuffer): KeychainInfo;
|
|
3713
|
+
write(value: KeychainInfo, into: RustBuffer): void;
|
|
3714
|
+
allocationSize(value: KeychainInfo): number;
|
|
3715
|
+
lift(value: UniffiByteArray): KeychainInfo;
|
|
3716
|
+
lower(value: KeychainInfo): UniffiByteArray;
|
|
3717
|
+
};
|
|
3718
|
+
FfiConverterTypeKeychainKind: {
|
|
3719
|
+
read(from: RustBuffer): KeychainKind;
|
|
3720
|
+
write(value: KeychainKind, into: RustBuffer): void;
|
|
3721
|
+
allocationSize(value: KeychainKind): number;
|
|
3722
|
+
lift(value: UniffiByteArray): KeychainKind;
|
|
3723
|
+
lower(value: KeychainKind): UniffiByteArray;
|
|
3724
|
+
};
|
|
3725
|
+
FfiConverterTypeLanguage: {
|
|
3726
|
+
read(from: RustBuffer): Language;
|
|
3727
|
+
write(value: Language, into: RustBuffer): void;
|
|
3728
|
+
allocationSize(value: Language): number;
|
|
3729
|
+
lift(value: UniffiByteArray): Language;
|
|
3730
|
+
lower(value: Language): UniffiByteArray;
|
|
3731
|
+
};
|
|
3732
|
+
FfiConverterTypeLocalOutput: {
|
|
3733
|
+
read(from: RustBuffer): LocalOutput;
|
|
3734
|
+
write(value: LocalOutput, into: RustBuffer): void;
|
|
3735
|
+
allocationSize(value: LocalOutput): number;
|
|
3736
|
+
lift(value: UniffiByteArray): LocalOutput;
|
|
3737
|
+
lower(value: LocalOutput): UniffiByteArray;
|
|
3738
|
+
};
|
|
3739
|
+
FfiConverterTypeMnemonic: FfiConverterObject<MnemonicInterface>;
|
|
3740
|
+
FfiConverterTypeNetwork: {
|
|
3741
|
+
read(from: RustBuffer): Network;
|
|
3742
|
+
write(value: Network, into: RustBuffer): void;
|
|
3743
|
+
allocationSize(value: Network): number;
|
|
3744
|
+
lift(value: UniffiByteArray): Network;
|
|
3745
|
+
lower(value: Network): UniffiByteArray;
|
|
3746
|
+
};
|
|
3747
|
+
FfiConverterTypeOutPoint: {
|
|
3748
|
+
read(from: RustBuffer): OutPoint;
|
|
3749
|
+
write(value: OutPoint, into: RustBuffer): void;
|
|
3750
|
+
allocationSize(value: OutPoint): number;
|
|
3751
|
+
lift(value: UniffiByteArray): OutPoint;
|
|
3752
|
+
lower(value: OutPoint): UniffiByteArray;
|
|
3753
|
+
};
|
|
3754
|
+
FfiConverterTypePsbt: FfiConverterObject<PsbtInterface>;
|
|
3755
|
+
FfiConverterTypeRecipient: {
|
|
3756
|
+
read(from: RustBuffer): Recipient;
|
|
3757
|
+
write(value: Recipient, into: RustBuffer): void;
|
|
3758
|
+
allocationSize(value: Recipient): number;
|
|
3759
|
+
lift(value: UniffiByteArray): Recipient;
|
|
3760
|
+
lower(value: Recipient): UniffiByteArray;
|
|
3761
|
+
};
|
|
3762
|
+
FfiConverterTypeSentAndReceived: {
|
|
3763
|
+
read(from: RustBuffer): SentAndReceived;
|
|
3764
|
+
write(value: SentAndReceived, into: RustBuffer): void;
|
|
3765
|
+
allocationSize(value: SentAndReceived): number;
|
|
3766
|
+
lift(value: UniffiByteArray): SentAndReceived;
|
|
3767
|
+
lower(value: SentAndReceived): UniffiByteArray;
|
|
3768
|
+
};
|
|
3769
|
+
FfiConverterTypeSingleKeyDescriptorTemplate: {
|
|
3770
|
+
read(from: RustBuffer): SingleKeyDescriptorTemplate;
|
|
3771
|
+
write(value: SingleKeyDescriptorTemplate, into: RustBuffer): void;
|
|
3772
|
+
allocationSize(value: SingleKeyDescriptorTemplate): number;
|
|
3773
|
+
lift(value: UniffiByteArray): SingleKeyDescriptorTemplate;
|
|
3774
|
+
lower(value: SingleKeyDescriptorTemplate): UniffiByteArray;
|
|
3775
|
+
};
|
|
3776
|
+
FfiConverterTypeTxBuilder: FfiConverterObject<TxBuilderInterface>;
|
|
3777
|
+
FfiConverterTypeTxDetails: {
|
|
3778
|
+
read(from: RustBuffer): TxDetails;
|
|
3779
|
+
write(value: TxDetails, into: RustBuffer): void;
|
|
3780
|
+
allocationSize(value: TxDetails): number;
|
|
3781
|
+
lift(value: UniffiByteArray): TxDetails;
|
|
3782
|
+
lower(value: TxDetails): UniffiByteArray;
|
|
3783
|
+
};
|
|
3784
|
+
FfiConverterTypeTxOrdering: {
|
|
3785
|
+
read(from: RustBuffer): TxOrdering;
|
|
3786
|
+
write(value: TxOrdering, into: RustBuffer): void;
|
|
3787
|
+
allocationSize(value: TxOrdering): number;
|
|
3788
|
+
lift(value: UniffiByteArray): TxOrdering;
|
|
3789
|
+
lower(value: TxOrdering): UniffiByteArray;
|
|
3790
|
+
};
|
|
3791
|
+
FfiConverterTypeTxOut: {
|
|
3792
|
+
read(from: RustBuffer): TxOut;
|
|
3793
|
+
write(value: TxOut, into: RustBuffer): void;
|
|
3794
|
+
allocationSize(value: TxOut): number;
|
|
3795
|
+
lift(value: UniffiByteArray): TxOut;
|
|
3796
|
+
lower(value: TxOut): UniffiByteArray;
|
|
3797
|
+
};
|
|
3798
|
+
FfiConverterTypeWallet: FfiConverterObject<WalletInterface>;
|
|
3799
|
+
FfiConverterTypeWalletEvent: {
|
|
3800
|
+
read(from: RustBuffer): WalletEvent;
|
|
3801
|
+
write(value: WalletEvent, into: RustBuffer): void;
|
|
3802
|
+
allocationSize(value: WalletEvent): number;
|
|
3803
|
+
lift(value: UniffiByteArray): WalletEvent;
|
|
3804
|
+
lower(value: WalletEvent): UniffiByteArray;
|
|
3805
|
+
};
|
|
3806
|
+
FfiConverterTypeWordCount: {
|
|
3807
|
+
read(from: RustBuffer): WordCount;
|
|
3808
|
+
write(value: WordCount, into: RustBuffer): void;
|
|
3809
|
+
allocationSize(value: WordCount): number;
|
|
3810
|
+
lift(value: UniffiByteArray): WordCount;
|
|
3811
|
+
lower(value: WordCount): UniffiByteArray;
|
|
3812
|
+
};
|
|
3813
|
+
};
|
|
3814
|
+
}>;
|
|
3815
|
+
export default _default;
|
|
3816
|
+
//# sourceMappingURL=bdk_ffi.d.ts.map
|