mainnet-js 2.6.7 → 2.7.0
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/dist/index.html +1 -1
- package/dist/{mainnet-2.6.7.js → mainnet-2.7.0.js} +446 -156
- package/dist/module/cli.js +0 -4
- package/dist/module/cli.js.map +1 -1
- package/dist/module/index.d.ts +1 -3
- package/dist/module/index.d.ts.map +1 -1
- package/dist/module/index.js +1 -3
- package/dist/module/index.js.map +1 -1
- package/dist/module/network/ElectrumNetworkProvider.d.ts +21 -27
- package/dist/module/network/ElectrumNetworkProvider.d.ts.map +1 -1
- package/dist/module/network/ElectrumNetworkProvider.js +92 -102
- package/dist/module/network/ElectrumNetworkProvider.js.map +1 -1
- package/dist/module/network/NetworkProvider.d.ts +9 -22
- package/dist/module/network/NetworkProvider.d.ts.map +1 -1
- package/dist/module/network/constant.d.ts +0 -21
- package/dist/module/network/constant.d.ts.map +1 -1
- package/dist/module/network/constant.js +0 -21
- package/dist/module/network/constant.js.map +1 -1
- package/dist/module/network/default.d.ts +2 -2
- package/dist/module/network/default.d.ts.map +1 -1
- package/dist/module/network/default.js +15 -45
- package/dist/module/network/default.js.map +1 -1
- package/dist/module/network/interface.d.ts +2 -8
- package/dist/module/network/interface.d.ts.map +1 -1
- package/dist/module/network/util.d.ts.map +1 -1
- package/dist/module/network/util.js +4 -5
- package/dist/module/network/util.js.map +1 -1
- package/dist/module/rate/ExchangeRate.js +2 -1
- package/dist/module/rate/ExchangeRate.js.map +1 -1
- package/dist/module/transaction/Wif.d.ts.map +1 -1
- package/dist/module/transaction/Wif.js +1 -1
- package/dist/module/transaction/Wif.js.map +1 -1
- package/dist/module/wallet/Base.d.ts +282 -88
- package/dist/module/wallet/Base.d.ts.map +1 -1
- package/dist/module/wallet/Base.js +1058 -215
- package/dist/module/wallet/Base.js.map +1 -1
- package/dist/module/wallet/Util.d.ts +7 -54
- package/dist/module/wallet/Util.d.ts.map +1 -1
- package/dist/module/wallet/Util.js +12 -79
- package/dist/module/wallet/Util.js.map +1 -1
- package/dist/module/wallet/Wif.d.ts +46 -251
- package/dist/module/wallet/Wif.d.ts.map +1 -1
- package/dist/module/wallet/Wif.js +126 -1026
- package/dist/module/wallet/Wif.js.map +1 -1
- package/dist/module/wallet/createWallet.d.ts +2 -1
- package/dist/module/wallet/createWallet.d.ts.map +1 -1
- package/dist/module/wallet/createWallet.js +2 -3
- package/dist/module/wallet/createWallet.js.map +1 -1
- package/dist/module/wallet/interface.d.ts +2 -4
- package/dist/module/wallet/interface.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -12
- package/src/cli.ts +0 -4
- package/src/index.ts +1 -5
- package/src/network/ElectrumNetworkProvider.ts +133 -188
- package/src/network/NetworkProvider.ts +9 -30
- package/src/network/Rpc.test.ts +14 -5
- package/src/network/constant.ts +0 -23
- package/src/network/default.ts +26 -66
- package/src/network/electrum.test.ts +2 -4
- package/src/network/interface.ts +2 -9
- package/src/network/util.ts +6 -7
- package/src/rate/ExchangeRate.test.ts +1 -1
- package/src/rate/ExchangeRate.ts +2 -1
- package/{polyfill/json.js → src/test/json.test.ts} +7 -1
- package/src/transaction/Wif.ts +2 -1
- package/src/wallet/Base.ts +1520 -273
- package/src/wallet/Cashtokens.test.headless.js +1 -1
- package/src/wallet/Cashtokens.test.ts +7 -8
- package/src/wallet/Util.ts +20 -102
- package/src/wallet/Wif.bip39.test.ts +3 -3
- package/src/wallet/Wif.test.ts +31 -25
- package/src/wallet/Wif.ts +174 -1493
- package/src/wallet/Wif.watchOnly.test.ts +5 -5
- package/src/wallet/createWallet.ts +11 -10
- package/src/wallet/interface.ts +3 -4
- package/webpack.config.cjs +4 -55
- package/dist/module/qr/Qr.d.ts +0 -9
- package/dist/module/qr/Qr.d.ts.map +0 -1
- package/dist/module/qr/Qr.js +0 -22
- package/dist/module/qr/Qr.js.map +0 -1
- package/dist/module/qr/interface.d.ts +0 -6
- package/dist/module/qr/interface.d.ts.map +0 -1
- package/dist/module/qr/interface.js +0 -2
- package/dist/module/qr/interface.js.map +0 -1
- package/dist/module/util/eventsource.d.ts +0 -3
- package/dist/module/util/eventsource.d.ts.map +0 -1
- package/dist/module/util/eventsource.js +0 -11
- package/dist/module/util/eventsource.js.map +0 -1
- package/polyfill/README.md +0 -1
- package/polyfill/eventsource.js +0 -6
- package/polyfill/support/types.js +0 -286
- package/polyfill/util.cjs +0 -249
- package/src/network/default.test.ts +0 -37
- package/src/qr/Qr.test.ts +0 -14
- package/src/qr/Qr.ts +0 -24
- package/src/qr/interface.ts +0 -5
- package/src/util/eventsource.ts +0 -12
|
@@ -1,27 +1,37 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { CashAddressNetworkPrefix, IdentitySnapshot } from "@bitauth/libauth";
|
|
2
|
+
import StorageProvider from "../db/StorageProvider.js";
|
|
3
|
+
import { NetworkType, UnitEnum } from "../enum.js";
|
|
4
|
+
import { TransactionHistoryItem } from "../history/interface.js";
|
|
5
|
+
import { HexHeaderI, TxI, UtxoI } from "../interface.js";
|
|
6
|
+
import ElectrumNetworkProvider from "../network/ElectrumNetworkProvider.js";
|
|
7
|
+
import { ElectrumRawTransaction } from "../network/interface.js";
|
|
8
|
+
import { BalanceResponse } from "../util/balanceObjectFromSatoshi.js";
|
|
5
9
|
import { WalletTypeEnum } from "./enum.js";
|
|
6
|
-
import
|
|
10
|
+
import { CancelFn, SendRequestOptionsI, WaitForTransactionOptions, WaitForTransactionResponse, WalletI, WalletInfoI } from "./interface.js";
|
|
11
|
+
import { OpReturnData, SendRequest, SendRequestArray, SendRequestType, SendResponse, TokenBurnRequest, TokenGenesisRequest, TokenMintRequest, TokenSendRequest } from "./model.js";
|
|
12
|
+
import { Util } from "./Util.js";
|
|
13
|
+
import { Wallet } from "./Wif.js";
|
|
7
14
|
/**
|
|
8
15
|
* A class to hold features used by all wallets
|
|
9
16
|
* @class BaseWallet
|
|
10
17
|
*/
|
|
11
18
|
export declare class BaseWallet implements WalletI {
|
|
12
|
-
provider?: NetworkProvider;
|
|
13
|
-
derivationPath: string;
|
|
14
|
-
parentDerivationPath: string;
|
|
15
|
-
parentXPubKey?: string;
|
|
16
|
-
mnemonic?: string;
|
|
17
|
-
address?: string;
|
|
18
|
-
privateKey?: any;
|
|
19
|
-
publicKey?: any;
|
|
20
19
|
static StorageProvider?: typeof StorageProvider;
|
|
21
|
-
|
|
22
|
-
name: string;
|
|
20
|
+
provider: ElectrumNetworkProvider;
|
|
23
21
|
network: NetworkType;
|
|
24
22
|
walletType: WalletTypeEnum;
|
|
23
|
+
_slpSemiAware: boolean;
|
|
24
|
+
publicKeyHash: Uint8Array;
|
|
25
|
+
cashaddr: string;
|
|
26
|
+
tokenaddr: string;
|
|
27
|
+
isTestnet: boolean;
|
|
28
|
+
name: string;
|
|
29
|
+
_util?: Util;
|
|
30
|
+
get networkPrefix(): CashAddressNetworkPrefix;
|
|
31
|
+
get util(): Util;
|
|
32
|
+
static get util(): Util;
|
|
33
|
+
getInfo(): WalletInfoI;
|
|
34
|
+
slpSemiAware(value?: boolean): this;
|
|
25
35
|
protected getNetworkProvider(network?: NetworkType): any;
|
|
26
36
|
/**
|
|
27
37
|
* getDepositAddress - get a wallet deposit address
|
|
@@ -34,66 +44,101 @@ export declare class BaseWallet implements WalletI {
|
|
|
34
44
|
*/
|
|
35
45
|
getDepositAddress(): string;
|
|
36
46
|
/**
|
|
37
|
-
*
|
|
47
|
+
* getTokenDepositAddress - get a cashtoken aware wallet deposit address
|
|
38
48
|
*
|
|
39
|
-
* a
|
|
40
|
-
*
|
|
41
|
-
* @see {@link https://rest-unstable.mainnet.cash/api-docs/#/wallet/depositQr|/wallet/deposit_qr} for REST endpoint
|
|
42
|
-
*
|
|
43
|
-
* @returns The qrcode for the address
|
|
49
|
+
* @returns The cashtoken aware deposit address as a string
|
|
44
50
|
*/
|
|
45
|
-
|
|
46
|
-
getSeed(): MnemonicI;
|
|
51
|
+
getTokenDepositAddress(): string;
|
|
47
52
|
/**
|
|
48
53
|
* constructor for a new wallet
|
|
49
|
-
* @param {string} name name of the wallet
|
|
50
54
|
* @param network network for wallet
|
|
51
55
|
*
|
|
52
56
|
* @throws {Error} if called on BaseWallet
|
|
53
57
|
*/
|
|
54
|
-
constructor(
|
|
58
|
+
constructor(network?: NetworkType);
|
|
59
|
+
/**
|
|
60
|
+
* watchOnly - create a watch-only wallet
|
|
61
|
+
*
|
|
62
|
+
* such kind of wallet does not have a private key and is unable to spend any funds
|
|
63
|
+
* however it still allows to use many utility functions such as getting and watching balance, etc.
|
|
64
|
+
*
|
|
65
|
+
* @param address cashaddress, token aware cashaddress of a wallet
|
|
66
|
+
*
|
|
67
|
+
* @returns instantiated wallet
|
|
68
|
+
*/
|
|
69
|
+
static watchOnly<T extends typeof BaseWallet>(this: T, address: string): Promise<InstanceType<T>>;
|
|
55
70
|
/**
|
|
56
|
-
*
|
|
71
|
+
* named (internal) get a named wallet from the database or create a new one.
|
|
72
|
+
* Note: this function should behave identically if
|
|
57
73
|
*
|
|
58
|
-
* @param
|
|
74
|
+
* @param {string} name name of the wallet
|
|
75
|
+
* @param {string} dbName database name the wallet is stored in
|
|
76
|
+
* @param {boolean} forceNew attempt to overwrite an existing wallet
|
|
59
77
|
*
|
|
60
|
-
* @
|
|
78
|
+
* @throws {Error} if forceNew is true and the wallet already exists
|
|
79
|
+
* @returns a promise to a named wallet
|
|
61
80
|
*/
|
|
62
|
-
|
|
81
|
+
protected named(name: string, dbName?: string, forceNew?: boolean): Promise<this>;
|
|
63
82
|
/**
|
|
64
|
-
*
|
|
83
|
+
* replaceNamed - Replace (recover) named wallet with a new walletId
|
|
65
84
|
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
85
|
+
* If wallet with a provided name does not exist yet, it will be created with a `walletId` supplied
|
|
86
|
+
* If wallet exists it will be overwritten without exception
|
|
68
87
|
*
|
|
69
|
-
* @param
|
|
70
|
-
* @param
|
|
88
|
+
* @param name user friendly wallet alias
|
|
89
|
+
* @param walletId walletId options to steer the creation process
|
|
90
|
+
* @param dbName name under which the wallet will be stored in the database
|
|
71
91
|
*
|
|
72
92
|
* @returns instantiated wallet
|
|
73
93
|
*/
|
|
74
|
-
|
|
94
|
+
protected replaceNamed(name: string, walletId: string, dbName?: string): Promise<this>;
|
|
75
95
|
/**
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
* if `name` parameter is specified, the wallet will also be persisted to DB
|
|
96
|
+
* namedExists - check if a named wallet already exists
|
|
79
97
|
*
|
|
80
98
|
* @param name user friendly wallet alias
|
|
81
99
|
* @param dbName name under which the wallet will be stored in the database
|
|
82
100
|
*
|
|
101
|
+
* @returns boolean
|
|
102
|
+
*/
|
|
103
|
+
protected namedExists(name: string, dbName?: string): Promise<boolean>;
|
|
104
|
+
protected generate(): Promise<this>;
|
|
105
|
+
/**
|
|
106
|
+
* toDbString - store the serialized version of the wallet in the database, not just the name
|
|
107
|
+
*
|
|
108
|
+
* @throws {Error} if called on BaseWallet
|
|
109
|
+
*/
|
|
110
|
+
toDbString(): string;
|
|
111
|
+
toString(): string;
|
|
112
|
+
/**
|
|
113
|
+
* explorerUrl Web url to a transaction on a block explorer
|
|
114
|
+
*
|
|
115
|
+
* @param txId transaction Id
|
|
116
|
+
* @returns Url string
|
|
117
|
+
*/
|
|
118
|
+
explorerUrl(txId: string): string;
|
|
119
|
+
getPublicKeyHash(hex?: boolean): string | Uint8Array;
|
|
120
|
+
/**
|
|
121
|
+
* fromCashaddr - create a watch-only wallet in the network derived from the address
|
|
122
|
+
*
|
|
123
|
+
* such kind of wallet does not have a private key and is unable to spend any funds
|
|
124
|
+
* however it still allows to use many utility functions such as getting and watching balance, etc.
|
|
125
|
+
*
|
|
126
|
+
* @param address cashaddress of a wallet
|
|
127
|
+
*
|
|
83
128
|
* @returns instantiated wallet
|
|
84
129
|
*/
|
|
85
|
-
static
|
|
130
|
+
static fromCashaddr<T extends typeof BaseWallet>(this: T, address: string): Promise<InstanceType<T>>;
|
|
86
131
|
/**
|
|
87
|
-
*
|
|
132
|
+
* fromTokenaddr - create a watch-only wallet in the network derived from the address
|
|
88
133
|
*
|
|
89
134
|
* such kind of wallet does not have a private key and is unable to spend any funds
|
|
90
135
|
* however it still allows to use many utility functions such as getting and watching balance, etc.
|
|
91
136
|
*
|
|
92
|
-
* @param address
|
|
137
|
+
* @param address token aware cashaddress of a wallet
|
|
93
138
|
*
|
|
94
139
|
* @returns instantiated wallet
|
|
95
140
|
*/
|
|
96
|
-
static
|
|
141
|
+
static fromTokenaddr<T extends typeof BaseWallet>(this: T, address: string): Promise<InstanceType<T>>;
|
|
97
142
|
/**
|
|
98
143
|
* named - create a named wallet
|
|
99
144
|
*
|
|
@@ -103,7 +148,7 @@ export declare class BaseWallet implements WalletI {
|
|
|
103
148
|
*
|
|
104
149
|
* @returns instantiated wallet
|
|
105
150
|
*/
|
|
106
|
-
static named<T extends typeof
|
|
151
|
+
static named<T extends typeof Wallet>(this: T, name: string, dbName?: string, force?: boolean): Promise<InstanceType<T>>;
|
|
107
152
|
/**
|
|
108
153
|
* replaceNamed - replace (recover) named wallet with a new walletId
|
|
109
154
|
*
|
|
@@ -116,7 +161,7 @@ export declare class BaseWallet implements WalletI {
|
|
|
116
161
|
*
|
|
117
162
|
* @returns instantiated wallet
|
|
118
163
|
*/
|
|
119
|
-
static replaceNamed<T extends typeof
|
|
164
|
+
static replaceNamed<T extends typeof Wallet>(this: T, name: string, walletId: string, dbName?: string): Promise<InstanceType<T>>;
|
|
120
165
|
/**
|
|
121
166
|
* namedExists - check if a named wallet already exists
|
|
122
167
|
*
|
|
@@ -126,71 +171,220 @@ export declare class BaseWallet implements WalletI {
|
|
|
126
171
|
* @returns boolean
|
|
127
172
|
*/
|
|
128
173
|
static namedExists(name: string, dbName?: string): Promise<boolean>;
|
|
174
|
+
protected fromId(walletId: string): Promise<this>;
|
|
175
|
+
protected watchOnly(address: string): Promise<this>;
|
|
129
176
|
/**
|
|
130
|
-
*
|
|
131
|
-
*
|
|
177
|
+
* utxos Get unspent outputs for the wallet
|
|
178
|
+
*
|
|
132
179
|
*/
|
|
133
|
-
|
|
180
|
+
getUtxos(): Promise<UtxoI[]>;
|
|
181
|
+
getBalance(rawUnit?: string, priceCache?: boolean): Promise<BalanceResponse | number>;
|
|
182
|
+
getBalanceFromUtxos(): Promise<number>;
|
|
183
|
+
getBalanceFromProvider(): Promise<number>;
|
|
184
|
+
getAddressUtxos(address?: string): Promise<UtxoI[]>;
|
|
185
|
+
watchAddress(callback: (txHash: string) => void): Promise<CancelFn>;
|
|
186
|
+
watchAddressTransactions(callback: (tx: ElectrumRawTransaction) => void): Promise<CancelFn>;
|
|
187
|
+
watchAddressTokenTransactions(callback: (tx: ElectrumRawTransaction) => void): Promise<CancelFn>;
|
|
188
|
+
watchBalance(callback: (balance: BalanceResponse) => void): Promise<CancelFn>;
|
|
189
|
+
watchBalanceUsd(callback: (balance: BalanceResponse) => void, usdPriceRefreshInterval?: number): Promise<CancelFn>;
|
|
190
|
+
waitForBalance(value: number, rawUnit?: UnitEnum): Promise<BalanceResponse>;
|
|
191
|
+
watchTokenBalance(tokenId: string, callback: (balance: bigint) => void): Promise<CancelFn>;
|
|
192
|
+
waitForTokenBalance(tokenId: string, amount: bigint): Promise<bigint>;
|
|
193
|
+
getTokenInfo(tokenId: string): Promise<IdentitySnapshot | undefined>;
|
|
194
|
+
protected _getMaxAmountToSend(params?: {
|
|
195
|
+
outputCount?: number;
|
|
196
|
+
options?: SendRequestOptionsI;
|
|
197
|
+
privateKey?: Uint8Array;
|
|
198
|
+
}): Promise<{
|
|
199
|
+
value: number;
|
|
200
|
+
utxos: UtxoI[];
|
|
201
|
+
}>;
|
|
202
|
+
getMaxAmountToSend(params?: {
|
|
203
|
+
outputCount?: number;
|
|
204
|
+
options?: SendRequestOptionsI;
|
|
205
|
+
}): Promise<BalanceResponse>;
|
|
134
206
|
/**
|
|
135
|
-
*
|
|
207
|
+
* send Send some amount to an address
|
|
208
|
+
* this function processes the send requests, encodes the transaction, sends it to the network
|
|
209
|
+
* @returns (depending on the options parameter) the transaction id, new address balance and a link to the transaction on the blockchain explorer
|
|
210
|
+
*
|
|
211
|
+
* This is a first class function with REST analog, maintainers should strive to keep backward-compatibility
|
|
136
212
|
*
|
|
137
|
-
* @throws {Error} if called on BaseWallet
|
|
138
213
|
*/
|
|
139
|
-
|
|
140
|
-
protected fromSeed(mnemonic: string, derivationPath?: string): Promise<this>;
|
|
214
|
+
send(requests: SendRequest | TokenSendRequest | OpReturnData | Array<SendRequest | TokenSendRequest | OpReturnData> | SendRequestArray[], options?: SendRequestOptionsI): Promise<SendResponse>;
|
|
141
215
|
/**
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
* @param
|
|
145
|
-
* @param
|
|
216
|
+
* sendMax Send all available funds to a destination cash address
|
|
217
|
+
*
|
|
218
|
+
* @param {string} cashaddr destination cash address
|
|
219
|
+
* @param {SendRequestOptionsI} options Options of the send requests
|
|
220
|
+
*
|
|
221
|
+
* @returns (depending on the options parameter) the transaction id, new address balance and a link to the transaction on the blockchain explorer
|
|
146
222
|
*/
|
|
147
|
-
|
|
148
|
-
protected watchOnly(address: string): Promise<this>;
|
|
223
|
+
sendMax(cashaddr: string, options?: SendRequestOptionsI): Promise<SendResponse>;
|
|
149
224
|
/**
|
|
150
|
-
*
|
|
151
|
-
* Note: this function should behave identically if
|
|
225
|
+
* sendMaxRaw (internal) Send all available funds to a destination cash address
|
|
152
226
|
*
|
|
153
|
-
* @param
|
|
154
|
-
* @param
|
|
155
|
-
* @param {boolean} forceNew attempt to overwrite an existing wallet
|
|
227
|
+
* @param {string} cashaddr destination cash address
|
|
228
|
+
* @param {SendRequestOptionsI} options Options of the send requests
|
|
156
229
|
*
|
|
157
|
-
* @
|
|
158
|
-
* @returns a promise to a named wallet
|
|
230
|
+
* @returns the transaction id sent to the network
|
|
159
231
|
*/
|
|
160
|
-
protected
|
|
232
|
+
protected sendMaxRaw(cashaddr: string, options?: SendRequestOptionsI, privateKey?: Uint8Array): Promise<SendResponse>;
|
|
161
233
|
/**
|
|
162
|
-
*
|
|
234
|
+
* encodeTransaction Encode and sign a transaction given a list of sendRequests, options and estimate fees.
|
|
235
|
+
* @param {SendRequest[]} sendRequests SendRequests
|
|
236
|
+
* @param {boolean} discardChange=false
|
|
237
|
+
* @param {SendRequestOptionsI} options Options of the send requests
|
|
238
|
+
*/
|
|
239
|
+
protected encodeTransaction(requests: SendRequest | TokenSendRequest | OpReturnData | Array<SendRequest | TokenSendRequest | OpReturnData> | SendRequestArray[], discardChange?: boolean, options?: SendRequestOptionsI, privateKey?: Uint8Array): Promise<{
|
|
240
|
+
encodedTransaction: Uint8Array;
|
|
241
|
+
tokenIds: string[];
|
|
242
|
+
sourceOutputs: any[];
|
|
243
|
+
}>;
|
|
244
|
+
submitTransaction(transaction: Uint8Array, awaitPropagation?: boolean): Promise<string>;
|
|
245
|
+
getRawHistory(fromHeight?: number, toHeight?: number): Promise<TxI[]>;
|
|
246
|
+
/**
|
|
247
|
+
* getHistory gets transaction history of this wallet with most data decoded and ready to present to user
|
|
248
|
+
* @note balance calculations are valid only if querying to the blockchain tip (`toHeight` === -1, `count` === -1)
|
|
249
|
+
* @note this method is heavy on network calls, if invoked in browser use of cache is advised, @see `Config.UseLocalStorageCache`
|
|
250
|
+
* @note this method tries to recreate the history tab view of Electron Cash wallet, however, it may not be 100% accurate if the tnransaction value changes are the same in the same block (ordering)
|
|
251
|
+
*
|
|
252
|
+
* @param unit optional, BCH or currency unit to present balance and balance changes. If unit is currency like USD or EUR, balances will be subject to possible rounding errors. Default 0
|
|
253
|
+
* @param fromHeight optional, if set, history will be limited. Default 0
|
|
254
|
+
* @param toHeight optional, if set, history will be limited. Default -1, meaning that all history items will be returned, including mempool
|
|
255
|
+
* @param start optional, if set, the result set will be paginated with offset `start`
|
|
256
|
+
* @param count optional, if set, the result set will be paginated with `count`. Default -1, meaning that all history items will be returned
|
|
257
|
+
*
|
|
258
|
+
* @returns an array of transaction history items, with input values and addresses encoded in cashaddress format. @see `TransactionHistoryItem` type
|
|
259
|
+
*/
|
|
260
|
+
getHistory({ unit, fromHeight, toHeight, start, count, }: {
|
|
261
|
+
unit?: UnitEnum;
|
|
262
|
+
fromHeight?: number;
|
|
263
|
+
toHeight?: number;
|
|
264
|
+
start?: number;
|
|
265
|
+
count?: number;
|
|
266
|
+
}): Promise<TransactionHistoryItem[]>;
|
|
267
|
+
getLastTransaction(confirmedOnly?: boolean): Promise<ElectrumRawTransaction | null>;
|
|
268
|
+
waitForTransaction(options?: WaitForTransactionOptions): Promise<WaitForTransactionResponse>;
|
|
269
|
+
/**
|
|
270
|
+
* watchBlocks Watch network blocks
|
|
163
271
|
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
272
|
+
* @param callback callback with a block header object
|
|
273
|
+
* @param skipCurrentHeight if set, the notification about current block will not arrive
|
|
166
274
|
*
|
|
167
|
-
* @
|
|
168
|
-
* @param walletId walletId options to steer the creation process
|
|
169
|
-
* @param dbName name under which the wallet will be stored in the database
|
|
170
|
-
*
|
|
171
|
-
* @returns instantiated wallet
|
|
275
|
+
* @returns a function which will cancel watching upon evaluation
|
|
172
276
|
*/
|
|
173
|
-
|
|
277
|
+
watchBlocks(callback: (header: HexHeaderI) => void, skipCurrentHeight?: boolean): Promise<CancelFn>;
|
|
174
278
|
/**
|
|
175
|
-
*
|
|
279
|
+
* waitForBlock Wait for a network block
|
|
176
280
|
*
|
|
177
|
-
* @param
|
|
178
|
-
* @param dbName name under which the wallet will be stored in the database
|
|
281
|
+
* @param height if specified waits for this exact blockchain height, otherwise resolves with the next block
|
|
179
282
|
*
|
|
180
|
-
* @returns boolean
|
|
181
283
|
*/
|
|
182
|
-
|
|
284
|
+
waitForBlock(height?: number): Promise<HexHeaderI>;
|
|
285
|
+
verify(message: string, sig: string, publicKey?: Uint8Array): Promise<import("../index.js").VerifyMessageResponseI>;
|
|
183
286
|
/**
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
* @
|
|
287
|
+
* Create new cashtoken, both funglible and/or non-fungible (NFT)
|
|
288
|
+
* Refer to spec https://github.com/bitjson/cashtokens
|
|
289
|
+
* @param {number} genesisRequest.amount amount of *fungible* tokens to create
|
|
290
|
+
* @param {NFTCapability?} genesisRequest.capability capability of new NFT
|
|
291
|
+
* @param {string?} genesisRequest.commitment NFT commitment message
|
|
292
|
+
* @param {string?} genesisRequest.cashaddr cash address to send the created token UTXO to; if undefined will default to your address
|
|
293
|
+
* @param {number?} genesisRequest.value satoshi value to send alongside with tokens; if undefined will default to 1000 satoshi
|
|
294
|
+
* @param {SendRequestType | SendRequestType[]} sendRequests single or an array of extra send requests (OP_RETURN, value transfer, etc.) to include in genesis transaction
|
|
295
|
+
* @param {SendRequestOptionsI} options Options of the send requests
|
|
187
296
|
*/
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
297
|
+
tokenGenesis(genesisRequest: TokenGenesisRequest, sendRequests?: SendRequestType | SendRequestType[], options?: SendRequestOptionsI): Promise<SendResponse>;
|
|
298
|
+
/**
|
|
299
|
+
* Mint new NFT cashtokens using an existing minting token
|
|
300
|
+
* Refer to spec https://github.com/bitjson/cashtokens
|
|
301
|
+
* @param {string} tokenId tokenId of an NFT to mint
|
|
302
|
+
* @param {TokenMintRequest | TokenMintRequest[]} mintRequests mint requests with new token properties and recipients
|
|
303
|
+
* @param {NFTCapability?} mintRequest.capability capability of new NFT
|
|
304
|
+
* @param {string?} mintRequest.commitment NFT commitment message
|
|
305
|
+
* @param {string?} mintRequest.cashaddr cash address to send the created token UTXO to; if undefined will default to your address
|
|
306
|
+
* @param {number?} mintRequest.value satoshi value to send alongside with tokens; if undefined will default to 1000 satoshi
|
|
307
|
+
* @param {boolean?} deductTokenAmount if minting token contains fungible amount, deduct from it by amount of minted tokens
|
|
308
|
+
* @param {SendRequestOptionsI} options Options of the send requests
|
|
309
|
+
*/
|
|
310
|
+
tokenMint(tokenId: string, mintRequests: TokenMintRequest | Array<TokenMintRequest>, deductTokenAmount?: boolean, options?: SendRequestOptionsI): Promise<SendResponse>;
|
|
311
|
+
/**
|
|
312
|
+
* Perform an explicit token burning by spending a token utxo to an OP_RETURN
|
|
313
|
+
*
|
|
314
|
+
* Behaves differently for fungible and non-fungible tokens:
|
|
315
|
+
* * NFTs are always "destroyed"
|
|
316
|
+
* * FTs' amount is reduced by the amount specified, if 0 FT amount is left and no NFT present, the token is "destroyed"
|
|
317
|
+
*
|
|
318
|
+
* Refer to spec https://github.com/bitjson/cashtokens
|
|
319
|
+
* @param {string} burnRequest.tokenId tokenId of a token to burn
|
|
320
|
+
* @param {NFTCapability} burnRequest.capability capability of the NFT token to select, optional
|
|
321
|
+
* @param {string?} burnRequest.commitment commitment of the NFT token to select, optional
|
|
322
|
+
* @param {number?} burnRequest.amount amount of fungible tokens to burn, optional
|
|
323
|
+
* @param {string?} burnRequest.cashaddr address to return token and satoshi change to
|
|
324
|
+
* @param {string?} message optional message to include in OP_RETURN
|
|
325
|
+
* @param {SendRequestOptionsI} options Options of the send requests
|
|
326
|
+
*/
|
|
327
|
+
tokenBurn(burnRequest: TokenBurnRequest, message?: string, options?: SendRequestOptionsI): Promise<SendResponse>;
|
|
328
|
+
/**
|
|
329
|
+
* getTokenUtxos Get unspent token outputs for the wallet
|
|
330
|
+
* will return utxos only for the specified token if `tokenId` provided
|
|
331
|
+
* @param {string?} tokenId tokenId (category) to filter utxos by, if not set will return utxos from all tokens
|
|
332
|
+
* @returns {UtxoI[]} token utxos
|
|
333
|
+
*/
|
|
334
|
+
getTokenUtxos(tokenId?: string): Promise<UtxoI[]>;
|
|
335
|
+
/**
|
|
336
|
+
* getTokenBalance Gets fungible token balance
|
|
337
|
+
* for NFT token balance see @ref getNftTokenBalance
|
|
338
|
+
* @param {string} tokenId tokenId to get balance for
|
|
339
|
+
* @returns {bigint} fungible token balance
|
|
340
|
+
*/
|
|
341
|
+
getTokenBalance(tokenId: string): Promise<bigint>;
|
|
342
|
+
/**
|
|
343
|
+
* getNftTokenBalance Gets non-fungible token (NFT) balance for a particular tokenId
|
|
344
|
+
* disregards fungible token balances
|
|
345
|
+
* for fungible token balance see @ref getTokenBalance
|
|
346
|
+
* @param {string} tokenId tokenId to get balance for
|
|
347
|
+
* @returns {number} non-fungible token balance
|
|
348
|
+
*/
|
|
349
|
+
getNftTokenBalance(tokenId: string): Promise<number>;
|
|
350
|
+
/**
|
|
351
|
+
* getAllTokenBalances Gets all fungible token balances in this wallet
|
|
352
|
+
* @returns {Object} a map [tokenId => balance] for all tokens in this wallet
|
|
353
|
+
*/
|
|
354
|
+
getAllTokenBalances(): Promise<{
|
|
355
|
+
[tokenId: string]: bigint;
|
|
356
|
+
}>;
|
|
357
|
+
/**
|
|
358
|
+
* getAllNftTokenBalances Gets all non-fungible token (NFT) balances in this wallet
|
|
359
|
+
* @returns {Object} a map [tokenId => balance] for all NFTs in this wallet
|
|
360
|
+
*/
|
|
361
|
+
getAllNftTokenBalances(): Promise<{
|
|
362
|
+
[tokenId: string]: number;
|
|
363
|
+
}>;
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Class to manage a mainnet watch wallet.
|
|
367
|
+
*/
|
|
368
|
+
export declare class WatchWallet extends BaseWallet {
|
|
369
|
+
static networkPrefix: CashAddressNetworkPrefix;
|
|
370
|
+
static walletType: WalletTypeEnum;
|
|
371
|
+
constructor();
|
|
372
|
+
}
|
|
373
|
+
/**
|
|
374
|
+
* Class to manage a testnet watch wallet.
|
|
375
|
+
*/
|
|
376
|
+
export declare class TestNetWatchWallet extends BaseWallet {
|
|
377
|
+
static networkPrefix: CashAddressNetworkPrefix;
|
|
378
|
+
static walletType: WalletTypeEnum;
|
|
379
|
+
constructor();
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Class to manage a regtest watch wallet.
|
|
383
|
+
*/
|
|
384
|
+
export declare class RegTestWatchWallet extends BaseWallet {
|
|
385
|
+
static networkPrefix: CashAddressNetworkPrefix;
|
|
386
|
+
static walletType: WalletTypeEnum;
|
|
387
|
+
constructor();
|
|
194
388
|
}
|
|
195
389
|
/**
|
|
196
390
|
* getNamedWalletId - get the full wallet id from the database
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/wallet/Base.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Base.d.ts","sourceRoot":"","sources":["../../../src/wallet/Base.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,EAIxB,gBAAgB,EACjB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAGL,WAAW,EAEX,QAAQ,EACT,MAAM,YAAY,CAAC;AAEpB,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAiB,GAAG,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAGxE,OAAO,uBAAuB,MAAM,uCAAuC,CAAC;AAE5E,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAOjE,OAAO,EAEL,eAAe,EAEhB,MAAM,qCAAqC,CAAC;AAgB7C,OAAO,EAAiB,cAAc,EAAE,MAAM,WAAW,CAAC;AAC1D,OAAO,EACL,QAAQ,EACR,mBAAmB,EACnB,yBAAyB,EACzB,0BAA0B,EAC1B,OAAO,EACP,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAKlC;;;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