beignet 0.0.21 → 0.0.23
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/electrum/index.js +105 -42
- package/dist/electrum/index.js.map +1 -1
- package/dist/types/electrum/index.d.ts +11 -4
- package/dist/types/electrum.js +8 -1
- package/dist/types/electrum.js.map +1 -1
- package/dist/types/types/electrum.d.ts +6 -0
- package/dist/types/types/transaction.d.ts +4 -0
- package/dist/types/types/wallet.d.ts +7 -1
- package/dist/types/utils/helpers.d.ts +2 -0
- package/dist/types/utils/wallet.d.ts +19 -1
- package/dist/types/wallet/constants.d.ts +0 -5
- package/dist/types/wallet/index.d.ts +14 -3
- package/dist/types/wallet.js.map +1 -1
- package/dist/utils/helpers.js +11 -1
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/wallet.js +48 -1
- package/dist/utils/wallet.js.map +1 -1
- package/dist/wallet/constants.js +1 -7
- package/dist/wallet/constants.js.map +1 -1
- package/dist/wallet/index.js +181 -86
- package/dist/wallet/index.js.map +1 -1
- package/docs/html/assets/search.js +1 -1
- package/docs/html/classes/Electrum.html +79 -70
- package/docs/html/classes/Transaction.html +59 -28
- package/docs/html/classes/Wallet.html +224 -174
- package/docs/html/enums/EAddressType.html +22 -7
- package/docs/html/enums/EAvailableNetworks.html +19 -11
- package/docs/html/enums/EBoostType.html +14 -6
- package/docs/html/enums/EElectrumNetworks.html +15 -7
- package/docs/html/enums/EFeeId.html +17 -9
- package/docs/html/enums/EPaymentType.html +14 -6
- package/docs/html/enums/EProtocol.html +14 -6
- package/docs/html/enums/EUnit.html +15 -7
- package/docs/html/functions/availableNetworks.html +12 -4
- package/docs/html/functions/constructByteCountParam.html +12 -4
- package/docs/html/functions/decodeOpReturnMessage.html +12 -4
- package/docs/html/functions/decodeRawTransaction.html +12 -4
- package/docs/html/functions/err.html +12 -4
- package/docs/html/functions/formatKeyDerivationPath.html +12 -4
- package/docs/html/functions/formatPeerData.html +12 -4
- package/docs/html/functions/generateMnemonic.html +12 -4
- package/docs/html/functions/generateWalletId.html +12 -4
- package/docs/html/functions/getAddressFromKeyPair.html +222 -0
- package/docs/html/functions/getAddressFromScriptPubKey.html +12 -4
- package/docs/html/functions/getAddressTypeFromPath.html +12 -4
- package/docs/html/functions/getAddressesFromPrivateKey.html +222 -0
- package/docs/html/functions/getByteCount.html +12 -4
- package/docs/html/functions/getDataFallback.html +12 -4
- package/docs/html/functions/getDefaultPort.html +12 -4
- package/docs/html/functions/getDefaultWalletData.html +12 -4
- package/docs/html/functions/getDefaultWalletDataKeys.html +12 -4
- package/docs/html/functions/getElectrumNetwork.html +216 -0
- package/docs/html/functions/getHighestUsedIndexFromTxHashes.html +12 -4
- package/docs/html/functions/getKeyDerivationPath.html +12 -4
- package/docs/html/functions/getKeyDerivationPathObject.html +12 -4
- package/docs/html/functions/getKeyDerivationPathString.html +12 -4
- package/docs/html/functions/getKeyValue.html +12 -4
- package/docs/html/functions/getPeers.html +12 -4
- package/docs/html/functions/getProtocolForPort.html +12 -4
- package/docs/html/functions/getScriptHash.html +12 -4
- package/docs/html/functions/getSeed.html +12 -4
- package/docs/html/functions/getSeedHash.html +12 -4
- package/docs/html/functions/getSha256.html +12 -4
- package/docs/html/functions/getStorageKeyValues.html +12 -4
- package/docs/html/{variables/mostUsedExchangeTickers.html → functions/getTapRootAddressFromPublicKey.html} +74 -97
- package/docs/html/functions/getTxFee.html +12 -4
- package/docs/html/functions/getWalletDataStorageKey.html +12 -4
- package/docs/html/functions/isP2trPrefix.html +217 -0
- package/docs/html/functions/isValidBech32mEncodedString.html +12 -4
- package/docs/html/functions/objectKeys-1.html +12 -4
- package/docs/html/functions/objectsMatch.html +12 -4
- package/docs/html/functions/ok.html +12 -4
- package/docs/html/functions/parseOnChainPaymentRequest.html +12 -4
- package/docs/html/functions/reduceValue.html +12 -4
- package/docs/html/functions/removeDustOutputs.html +12 -4
- package/docs/html/functions/setReplaceByFee.html +12 -4
- package/docs/html/functions/shuffleArray.html +12 -4
- package/docs/html/functions/{getExchangeRates.html → sleep.html} +22 -12
- package/docs/html/functions/validateAddress.html +12 -4
- package/docs/html/functions/validateMnemonic.html +12 -4
- package/docs/html/functions/validateTransaction.html +12 -4
- package/docs/html/index.html +22 -6
- package/docs/html/interfaces/IAddInput.html +16 -8
- package/docs/html/interfaces/IAddress.html +17 -9
- package/docs/html/interfaces/IAddressData.html +15 -7
- package/docs/html/interfaces/IAddressType.html +12 -4
- package/docs/html/interfaces/IAddressTypeData.html +18 -10
- package/docs/html/interfaces/IAddresses.html +12 -4
- package/docs/html/interfaces/IBoostedTransaction.html +16 -8
- package/docs/html/interfaces/IBoostedTransactions.html +12 -4
- package/docs/html/interfaces/ICreateTransaction.html +14 -6
- package/docs/html/interfaces/ICustomGetAddress.html +15 -7
- package/docs/html/interfaces/ICustomGetScriptHash.html +14 -6
- package/docs/html/interfaces/IElectrumGetAddressBalanceRes.html +15 -7
- package/docs/html/interfaces/IFormattedPeerData.html +17 -9
- package/docs/html/interfaces/IFormattedTransaction.html +31 -23
- package/docs/html/interfaces/IFormattedTransactions.html +12 -4
- package/docs/html/interfaces/IGenerateAddresses.html +19 -11
- package/docs/html/interfaces/IGenerateAddressesResponse.html +14 -6
- package/docs/html/interfaces/IGetAddress.html +15 -7
- package/docs/html/interfaces/IGetAddressBalanceRes.html +14 -6
- package/docs/html/interfaces/IGetAddressByPath.html +14 -6
- package/docs/html/interfaces/IGetAddressHistoryResponse.html +19 -11
- package/docs/html/interfaces/IGetAddressResponse.html +15 -7
- package/docs/html/interfaces/IGetAddressScriptHashBalances.html +17 -9
- package/docs/html/interfaces/IGetAddressScriptHashesHistoryResponse.html +17 -9
- package/docs/html/interfaces/{IExchangeRates.html → IGetAddressesFromKeyPair.html} +45 -23
- package/docs/html/interfaces/IGetAddressesFromPrivateKey.html +234 -0
- package/docs/html/interfaces/IGetDerivationPath.html +18 -10
- package/docs/html/interfaces/IGetFeeEstimatesResponse.html +16 -8
- package/docs/html/interfaces/IGetHeaderResponse.html +17 -9
- package/docs/html/interfaces/IGetNextAvailableAddressResponse.html +16 -8
- package/docs/html/interfaces/IGetTransactions.html +17 -9
- package/docs/html/interfaces/IGetTransactionsFromInputs.html +17 -9
- package/docs/html/interfaces/IGetUtxosResponse.html +14 -6
- package/docs/html/interfaces/IHeader.html +15 -7
- package/docs/html/interfaces/IIndexes.html +16 -8
- package/docs/html/interfaces/IKeyDerivationPath.html +17 -9
- package/docs/html/interfaces/IKeyDerivationPathData.html +14 -6
- package/docs/html/interfaces/INewBlock.html +14 -6
- package/docs/html/interfaces/IOnchainFees.html +17 -9
- package/docs/html/interfaces/IOutput.html +15 -7
- package/docs/html/interfaces/IPeerData.html +15 -7
- package/docs/html/interfaces/IPrivateKeyInfo.html +248 -0
- package/docs/html/interfaces/IRbfData.html +18 -10
- package/docs/html/interfaces/ISend.html +14 -6
- package/docs/html/interfaces/ISendTransaction.html +28 -20
- package/docs/html/interfaces/ISendTx.html +15 -7
- package/docs/html/interfaces/ISetupTransaction.html +17 -9
- package/docs/html/interfaces/ISubscribeToAddress.html +16 -8
- package/docs/html/interfaces/ISubscribeToHeader.html +16 -8
- package/docs/html/interfaces/ISweepPrivateKey.html +255 -0
- package/docs/html/interfaces/ISweepPrivateKeyRes.html +241 -0
- package/docs/html/interfaces/ITargets.html +16 -8
- package/docs/html/interfaces/ITransaction.html +17 -9
- package/docs/html/interfaces/ITxHash.html +13 -5
- package/docs/html/interfaces/ITxHashes.html +15 -7
- package/docs/html/interfaces/IUtxo.html +27 -21
- package/docs/html/interfaces/IVin.html +17 -9
- package/docs/html/interfaces/IVout.html +15 -7
- package/docs/html/interfaces/IWallet.html +53 -20
- package/docs/html/interfaces/IWalletData.html +30 -29
- package/docs/html/types/ElectrumConnectionPubSub.html +12 -4
- package/docs/html/types/ElectrumConnectionSubscription.html +13 -5
- package/docs/html/types/InputData.html +12 -4
- package/docs/html/types/ObjectKeys.html +12 -4
- package/docs/html/types/Result.html +12 -4
- package/docs/html/types/TAddressIndexInfo.html +12 -4
- package/docs/html/types/TAddressLabel.html +12 -4
- package/docs/html/types/TAddressType.html +12 -4
- package/docs/html/types/TAddressTypeContent.html +12 -4
- package/docs/html/types/TAddressTypes.html +12 -4
- package/docs/html/types/TAvailableNetworks.html +12 -4
- package/docs/html/types/TConnectToElectrumRes.html +12 -4
- package/docs/html/types/TDecodeRawTx.html +12 -4
- package/docs/html/types/TElectrumNetworks.html +12 -4
- package/docs/html/types/TGetAddressHistory.html +12 -4
- package/docs/html/types/TGetByteCountInput.html +12 -4
- package/docs/html/types/TGetByteCountInputs.html +12 -4
- package/docs/html/types/TGetByteCountOutput.html +12 -4
- package/docs/html/types/TGetByteCountOutputs.html +12 -4
- package/docs/html/types/TGetData.html +12 -4
- package/docs/html/types/TGetTotalFeeObj.html +12 -4
- package/docs/html/types/TKeyDerivationAccount.html +12 -4
- package/docs/html/types/TKeyDerivationChange.html +12 -4
- package/docs/html/types/TKeyDerivationCoinType.html +12 -4
- package/docs/html/types/TKeyDerivationIndex.html +12 -4
- package/docs/html/types/TKeyDerivationPurpose.html +12 -4
- package/docs/html/types/TMessageDataMap.html +12 -4
- package/docs/html/types/TMessageKeys.html +12 -4
- package/docs/html/types/TOnMessage.html +12 -4
- package/docs/html/types/TProcessUnconfirmedTransactions.html +12 -4
- package/docs/html/types/TProtocol.html +12 -4
- package/docs/html/types/TServer.html +12 -4
- package/docs/html/types/TSetData.html +12 -4
- package/docs/html/types/TSetupTransactionResponse.html +12 -4
- package/docs/html/types/TStorage.html +12 -4
- package/docs/html/types/TSubscribedReceive.html +12 -4
- package/docs/html/types/TTransactionMessage.html +12 -4
- package/docs/html/types/TTxResponse.html +12 -4
- package/docs/html/types/TTxResult.html +12 -4
- package/docs/html/types/TUnspentAddressScriptHashData.html +12 -4
- package/docs/html/types/TWalletDataKeys.html +12 -4
- package/docs/html/variables/defaultElectrumPorts.html +12 -4
- package/docs/html/variables/electrumConnection.html +12 -4
- package/docs/markdown/README.md +224 -128
- package/docs/markdown/classes/Electrum.md +74 -72
- package/docs/markdown/classes/Transaction.md +48 -23
- package/docs/markdown/classes/Wallet.md +240 -181
- package/docs/markdown/enums/EAddressType.md +14 -3
- package/docs/markdown/enums/EAvailableNetworks.md +7 -7
- package/docs/markdown/enums/EBoostType.md +2 -2
- package/docs/markdown/enums/EElectrumNetworks.md +3 -3
- package/docs/markdown/enums/EFeeId.md +5 -5
- package/docs/markdown/enums/EPaymentType.md +2 -2
- package/docs/markdown/enums/EProtocol.md +2 -2
- package/docs/markdown/enums/EUnit.md +3 -3
- package/docs/markdown/interfaces/IAddInput.md +4 -4
- package/docs/markdown/interfaces/IAddress.md +5 -5
- package/docs/markdown/interfaces/IAddressData.md +3 -3
- package/docs/markdown/interfaces/IAddressTypeData.md +6 -6
- package/docs/markdown/interfaces/IBoostedTransaction.md +4 -4
- package/docs/markdown/interfaces/ICreateTransaction.md +2 -2
- package/docs/markdown/interfaces/ICustomGetAddress.md +3 -3
- package/docs/markdown/interfaces/ICustomGetScriptHash.md +2 -2
- package/docs/markdown/interfaces/IElectrumGetAddressBalanceRes.md +3 -3
- package/docs/markdown/interfaces/IFormattedPeerData.md +5 -5
- package/docs/markdown/interfaces/IFormattedTransaction.md +19 -19
- package/docs/markdown/interfaces/IGenerateAddresses.md +7 -7
- package/docs/markdown/interfaces/IGenerateAddressesResponse.md +2 -2
- package/docs/markdown/interfaces/IGetAddress.md +3 -3
- package/docs/markdown/interfaces/IGetAddressBalanceRes.md +2 -2
- package/docs/markdown/interfaces/IGetAddressByPath.md +2 -2
- package/docs/markdown/interfaces/IGetAddressHistoryResponse.md +7 -7
- package/docs/markdown/interfaces/IGetAddressResponse.md +3 -3
- package/docs/markdown/interfaces/IGetAddressScriptHashBalances.md +5 -5
- package/docs/markdown/interfaces/IGetAddressScriptHashesHistoryResponse.md +5 -5
- package/docs/markdown/interfaces/IGetAddressesFromKeyPair.md +30 -0
- package/docs/markdown/interfaces/IGetAddressesFromPrivateKey.md +30 -0
- package/docs/markdown/interfaces/IGetDerivationPath.md +6 -6
- package/docs/markdown/interfaces/IGetFeeEstimatesResponse.md +4 -4
- package/docs/markdown/interfaces/IGetHeaderResponse.md +5 -5
- package/docs/markdown/interfaces/IGetNextAvailableAddressResponse.md +4 -4
- package/docs/markdown/interfaces/IGetTransactions.md +5 -5
- package/docs/markdown/interfaces/IGetTransactionsFromInputs.md +5 -5
- package/docs/markdown/interfaces/IGetUtxosResponse.md +2 -2
- package/docs/markdown/interfaces/IHeader.md +3 -3
- package/docs/markdown/interfaces/IIndexes.md +4 -4
- package/docs/markdown/interfaces/IKeyDerivationPath.md +5 -5
- package/docs/markdown/interfaces/IKeyDerivationPathData.md +2 -2
- package/docs/markdown/interfaces/INewBlock.md +2 -2
- package/docs/markdown/interfaces/IOnchainFees.md +5 -5
- package/docs/markdown/interfaces/IOutput.md +3 -3
- package/docs/markdown/interfaces/IPeerData.md +3 -3
- package/docs/markdown/interfaces/IPrivateKeyInfo.md +52 -0
- package/docs/markdown/interfaces/IRbfData.md +6 -6
- package/docs/markdown/interfaces/ISend.md +2 -2
- package/docs/markdown/interfaces/ISendTransaction.md +16 -16
- package/docs/markdown/interfaces/ISendTx.md +3 -3
- package/docs/markdown/interfaces/ISetupTransaction.md +5 -5
- package/docs/markdown/interfaces/ISubscribeToAddress.md +4 -4
- package/docs/markdown/interfaces/ISubscribeToHeader.md +4 -4
- package/docs/markdown/interfaces/ISweepPrivateKey.md +63 -0
- package/docs/markdown/interfaces/ISweepPrivateKeyRes.md +41 -0
- package/docs/markdown/interfaces/ITargets.md +4 -4
- package/docs/markdown/interfaces/ITransaction.md +5 -5
- package/docs/markdown/interfaces/ITxHash.md +1 -1
- package/docs/markdown/interfaces/ITxHashes.md +3 -3
- package/docs/markdown/interfaces/IUtxo.md +18 -23
- package/docs/markdown/interfaces/IVin.md +5 -5
- package/docs/markdown/interfaces/IVout.md +3 -3
- package/docs/markdown/interfaces/IWallet.md +50 -15
- package/docs/markdown/interfaces/IWalletData.md +18 -29
- package/package.json +3 -3
- package/src/electrum/index.ts +147 -60
- package/src/types/electrum.ts +7 -0
- package/src/types/transaction.ts +5 -0
- package/src/types/wallet.ts +7 -1
- package/src/utils/helpers.ts +14 -0
- package/src/utils/wallet.ts +73 -0
- package/src/wallet/constants.ts +0 -8
- package/src/wallet/index.ts +262 -118
- package/tests/wallet.test.ts +71 -1
- package/dist/mempool/index.js +0 -28
- package/dist/mempool/index.js.map +0 -1
- package/dist/types/mempool/index.d.ts +0 -15
- package/dist/types/mempool.js +0 -3
- package/dist/types/mempool.js.map +0 -1
- package/dist/types/types/mempool.d.ts +0 -16
- package/dist/types/utils/exchange-rate.d.ts +0 -30
- package/dist/utils/exchange-rate.js +0 -49
- package/dist/utils/exchange-rate.js.map +0 -1
- package/docs/markdown/interfaces/IExchangeRates.md +0 -7
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
- [\_customGetAddress](Wallet.md#_customgetaddress)
|
|
14
14
|
- [\_customGetScriptHash](Wallet.md#_customgetscripthash)
|
|
15
15
|
- [\_data](Wallet.md#_data)
|
|
16
|
+
- [\_disableMessagesOnCreate](Wallet.md#_disablemessagesoncreate)
|
|
16
17
|
- [\_getData](Wallet.md#_getdata)
|
|
17
18
|
- [\_mnemonic](Wallet.md#_mnemonic)
|
|
18
19
|
- [\_network](Wallet.md#_network)
|
|
@@ -21,18 +22,20 @@
|
|
|
21
22
|
- [\_root](Wallet.md#_root)
|
|
22
23
|
- [\_seed](Wallet.md#_seed)
|
|
23
24
|
- [\_setData](Wallet.md#_setdata)
|
|
25
|
+
- [addressType](Wallet.md#addresstype)
|
|
26
|
+
- [addressTypesToMonitor](Wallet.md#addresstypestomonitor)
|
|
27
|
+
- [disableMessages](Wallet.md#disablemessages)
|
|
24
28
|
- [electrum](Wallet.md#electrum)
|
|
25
29
|
- [electrumOptions](Wallet.md#electrumoptions)
|
|
26
|
-
- [exchangeRates](Wallet.md#exchangerates)
|
|
27
30
|
- [feeEstimates](Wallet.md#feeestimates)
|
|
28
31
|
- [id](Wallet.md#id)
|
|
29
32
|
- [isRefreshing](Wallet.md#isrefreshing)
|
|
30
33
|
- [isSwitchingNetworks](Wallet.md#isswitchingnetworks)
|
|
31
34
|
- [name](Wallet.md#name)
|
|
32
|
-
- [onMessage](Wallet.md#onmessage)
|
|
33
35
|
- [rbf](Wallet.md#rbf)
|
|
34
36
|
- [savingOperations](Wallet.md#savingoperations)
|
|
35
37
|
- [selectedFeeId](Wallet.md#selectedfeeid)
|
|
38
|
+
- [sendMessage](Wallet.md#sendmessage)
|
|
36
39
|
- [transaction](Wallet.md#transaction)
|
|
37
40
|
|
|
38
41
|
### Accessors
|
|
@@ -69,6 +72,7 @@
|
|
|
69
72
|
- [getAddressFromScriptHash](Wallet.md#getaddressfromscripthash)
|
|
70
73
|
- [getAddressIndexInfo](Wallet.md#getaddressindexinfo)
|
|
71
74
|
- [getAddressesBalance](Wallet.md#getaddressesbalance)
|
|
75
|
+
- [getAddressesFromPrivateKey](Wallet.md#getaddressesfromprivatekey)
|
|
72
76
|
- [getBalance](Wallet.md#getbalance)
|
|
73
77
|
- [getBip32Interface](Wallet.md#getbip32interface)
|
|
74
78
|
- [getBitcoinNetwork](Wallet.md#getbitcoinnetwork)
|
|
@@ -76,7 +80,6 @@
|
|
|
76
80
|
- [getBoostedTransactionParents](Wallet.md#getboostedtransactionparents)
|
|
77
81
|
- [getBoostedTransactions](Wallet.md#getboostedtransactions)
|
|
78
82
|
- [getChangeAddress](Wallet.md#getchangeaddress)
|
|
79
|
-
- [getExchangeRate](Wallet.md#getexchangerate)
|
|
80
83
|
- [getFeeEstimates](Wallet.md#getfeeestimates)
|
|
81
84
|
- [getFeeInfo](Wallet.md#getfeeinfo)
|
|
82
85
|
- [getGapLimit](Wallet.md#getgaplimit)
|
|
@@ -84,6 +87,7 @@
|
|
|
84
87
|
- [getInputData](Wallet.md#getinputdata)
|
|
85
88
|
- [getNextAvailableAddress](Wallet.md#getnextavailableaddress)
|
|
86
89
|
- [getPrivateKey](Wallet.md#getprivatekey)
|
|
90
|
+
- [getPrivateKeyInfo](Wallet.md#getprivatekeyinfo)
|
|
87
91
|
- [getRbfData](Wallet.md#getrbfdata)
|
|
88
92
|
- [getReceiveAddress](Wallet.md#getreceiveaddress)
|
|
89
93
|
- [getScriptHash](Wallet.md#getscripthash)
|
|
@@ -111,12 +115,12 @@
|
|
|
111
115
|
- [setupFeeForOnChainTransaction](Wallet.md#setupfeeforonchaintransaction)
|
|
112
116
|
- [setupTransaction](Wallet.md#setuptransaction)
|
|
113
117
|
- [storageIdCheck](Wallet.md#storageidcheck)
|
|
118
|
+
- [sweepPrivateKey](Wallet.md#sweepprivatekey)
|
|
114
119
|
- [switchNetwork](Wallet.md#switchnetwork)
|
|
115
120
|
- [updateAddressIndex](Wallet.md#updateaddressindex)
|
|
116
121
|
- [updateAddressIndexes](Wallet.md#updateaddressindexes)
|
|
117
122
|
- [updateAddressType](Wallet.md#updateaddresstype)
|
|
118
123
|
- [updateAndSaveWalletData](Wallet.md#updateandsavewalletdata)
|
|
119
|
-
- [updateExchangeRates](Wallet.md#updateexchangerates)
|
|
120
124
|
- [updateFeeEstimates](Wallet.md#updatefeeestimates)
|
|
121
125
|
- [updateGhostTransactions](Wallet.md#updateghosttransactions)
|
|
122
126
|
- [updateHeader](Wallet.md#updateheader)
|
|
@@ -140,7 +144,7 @@
|
|
|
140
144
|
|
|
141
145
|
#### Defined in
|
|
142
146
|
|
|
143
|
-
[wallet/index.ts:
|
|
147
|
+
[wallet/index.ts:149](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L149)
|
|
144
148
|
|
|
145
149
|
## Properties
|
|
146
150
|
|
|
@@ -164,7 +168,7 @@
|
|
|
164
168
|
|
|
165
169
|
#### Defined in
|
|
166
170
|
|
|
167
|
-
[wallet/index.ts:
|
|
171
|
+
[wallet/index.ts:118](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L118)
|
|
168
172
|
|
|
169
173
|
___
|
|
170
174
|
|
|
@@ -188,7 +192,7 @@ ___
|
|
|
188
192
|
|
|
189
193
|
#### Defined in
|
|
190
194
|
|
|
191
|
-
[wallet/index.ts:
|
|
195
|
+
[wallet/index.ts:121](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L121)
|
|
192
196
|
|
|
193
197
|
___
|
|
194
198
|
|
|
@@ -198,7 +202,17 @@ ___
|
|
|
198
202
|
|
|
199
203
|
#### Defined in
|
|
200
204
|
|
|
201
|
-
[wallet/index.ts:
|
|
205
|
+
[wallet/index.ts:115](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L115)
|
|
206
|
+
|
|
207
|
+
___
|
|
208
|
+
|
|
209
|
+
### \_disableMessagesOnCreate
|
|
210
|
+
|
|
211
|
+
• `Private` **\_disableMessagesOnCreate**: `boolean`
|
|
212
|
+
|
|
213
|
+
#### Defined in
|
|
214
|
+
|
|
215
|
+
[wallet/index.ts:127](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L127)
|
|
202
216
|
|
|
203
217
|
___
|
|
204
218
|
|
|
@@ -208,7 +222,7 @@ ___
|
|
|
208
222
|
|
|
209
223
|
#### Defined in
|
|
210
224
|
|
|
211
|
-
[wallet/index.ts:
|
|
225
|
+
[wallet/index.ts:116](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L116)
|
|
212
226
|
|
|
213
227
|
___
|
|
214
228
|
|
|
@@ -218,7 +232,7 @@ ___
|
|
|
218
232
|
|
|
219
233
|
#### Defined in
|
|
220
234
|
|
|
221
|
-
[wallet/index.ts:
|
|
235
|
+
[wallet/index.ts:111](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L111)
|
|
222
236
|
|
|
223
237
|
___
|
|
224
238
|
|
|
@@ -228,7 +242,7 @@ ___
|
|
|
228
242
|
|
|
229
243
|
#### Defined in
|
|
230
244
|
|
|
231
|
-
[wallet/index.ts:
|
|
245
|
+
[wallet/index.ts:110](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L110)
|
|
232
246
|
|
|
233
247
|
___
|
|
234
248
|
|
|
@@ -238,7 +252,7 @@ ___
|
|
|
238
252
|
|
|
239
253
|
#### Defined in
|
|
240
254
|
|
|
241
|
-
[wallet/index.ts:
|
|
255
|
+
[wallet/index.ts:112](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L112)
|
|
242
256
|
|
|
243
257
|
___
|
|
244
258
|
|
|
@@ -248,7 +262,7 @@ ___
|
|
|
248
262
|
|
|
249
263
|
#### Defined in
|
|
250
264
|
|
|
251
|
-
[wallet/index.ts:
|
|
265
|
+
[wallet/index.ts:124](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L124)
|
|
252
266
|
|
|
253
267
|
___
|
|
254
268
|
|
|
@@ -258,7 +272,7 @@ ___
|
|
|
258
272
|
|
|
259
273
|
#### Defined in
|
|
260
274
|
|
|
261
|
-
[wallet/index.ts:
|
|
275
|
+
[wallet/index.ts:114](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L114)
|
|
262
276
|
|
|
263
277
|
___
|
|
264
278
|
|
|
@@ -268,7 +282,7 @@ ___
|
|
|
268
282
|
|
|
269
283
|
#### Defined in
|
|
270
284
|
|
|
271
|
-
[wallet/index.ts:
|
|
285
|
+
[wallet/index.ts:113](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L113)
|
|
272
286
|
|
|
273
287
|
___
|
|
274
288
|
|
|
@@ -278,7 +292,37 @@ ___
|
|
|
278
292
|
|
|
279
293
|
#### Defined in
|
|
280
294
|
|
|
281
|
-
[wallet/index.ts:
|
|
295
|
+
[wallet/index.ts:117](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L117)
|
|
296
|
+
|
|
297
|
+
___
|
|
298
|
+
|
|
299
|
+
### addressType
|
|
300
|
+
|
|
301
|
+
• **addressType**: [`EAddressType`](../enums/EAddressType.md)
|
|
302
|
+
|
|
303
|
+
#### Defined in
|
|
304
|
+
|
|
305
|
+
[wallet/index.ts:142](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L142)
|
|
306
|
+
|
|
307
|
+
___
|
|
308
|
+
|
|
309
|
+
### addressTypesToMonitor
|
|
310
|
+
|
|
311
|
+
• **addressTypesToMonitor**: [`EAddressType`](../enums/EAddressType.md)[]
|
|
312
|
+
|
|
313
|
+
#### Defined in
|
|
314
|
+
|
|
315
|
+
[wallet/index.ts:129](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L129)
|
|
316
|
+
|
|
317
|
+
___
|
|
318
|
+
|
|
319
|
+
### disableMessages
|
|
320
|
+
|
|
321
|
+
• **disableMessages**: `boolean`
|
|
322
|
+
|
|
323
|
+
#### Defined in
|
|
324
|
+
|
|
325
|
+
[wallet/index.ts:148](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L148)
|
|
282
326
|
|
|
283
327
|
___
|
|
284
328
|
|
|
@@ -288,7 +332,7 @@ ___
|
|
|
288
332
|
|
|
289
333
|
#### Defined in
|
|
290
334
|
|
|
291
|
-
[wallet/index.ts:
|
|
335
|
+
[wallet/index.ts:141](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L141)
|
|
292
336
|
|
|
293
337
|
___
|
|
294
338
|
|
|
@@ -300,23 +344,15 @@ ___
|
|
|
300
344
|
|
|
301
345
|
| Name | Type |
|
|
302
346
|
| :------ | :------ |
|
|
347
|
+
| `batchDelay?` | `number` |
|
|
348
|
+
| `batchLimit?` | `number` |
|
|
303
349
|
| `net?` | `Server` |
|
|
304
350
|
| `servers?` | [`TServer`](../README.md#tserver) \| [`TServer`](../README.md#tserver)[] |
|
|
305
351
|
| `tls?` | `TLSSocket` |
|
|
306
352
|
|
|
307
353
|
#### Defined in
|
|
308
354
|
|
|
309
|
-
[wallet/index.ts:
|
|
310
|
-
|
|
311
|
-
___
|
|
312
|
-
|
|
313
|
-
### exchangeRates
|
|
314
|
-
|
|
315
|
-
• **exchangeRates**: [`IExchangeRates`](../interfaces/IExchangeRates.md)
|
|
316
|
-
|
|
317
|
-
#### Defined in
|
|
318
|
-
|
|
319
|
-
[wallet/index.ts:132](https://github.com/synonymdev/beignet/blob/583604f/src/wallet/index.ts#L132)
|
|
355
|
+
[wallet/index.ts:134](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L134)
|
|
320
356
|
|
|
321
357
|
___
|
|
322
358
|
|
|
@@ -326,7 +362,7 @@ ___
|
|
|
326
362
|
|
|
327
363
|
#### Defined in
|
|
328
364
|
|
|
329
|
-
[wallet/index.ts:
|
|
365
|
+
[wallet/index.ts:145](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L145)
|
|
330
366
|
|
|
331
367
|
___
|
|
332
368
|
|
|
@@ -336,7 +372,7 @@ ___
|
|
|
336
372
|
|
|
337
373
|
#### Defined in
|
|
338
374
|
|
|
339
|
-
[wallet/index.ts:
|
|
375
|
+
[wallet/index.ts:132](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L132)
|
|
340
376
|
|
|
341
377
|
___
|
|
342
378
|
|
|
@@ -346,7 +382,7 @@ ___
|
|
|
346
382
|
|
|
347
383
|
#### Defined in
|
|
348
384
|
|
|
349
|
-
[wallet/index.ts:
|
|
385
|
+
[wallet/index.ts:130](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L130)
|
|
350
386
|
|
|
351
387
|
___
|
|
352
388
|
|
|
@@ -356,7 +392,7 @@ ___
|
|
|
356
392
|
|
|
357
393
|
#### Defined in
|
|
358
394
|
|
|
359
|
-
[wallet/index.ts:
|
|
395
|
+
[wallet/index.ts:131](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L131)
|
|
360
396
|
|
|
361
397
|
___
|
|
362
398
|
|
|
@@ -366,17 +402,7 @@ ___
|
|
|
366
402
|
|
|
367
403
|
#### Defined in
|
|
368
404
|
|
|
369
|
-
[wallet/index.ts:
|
|
370
|
-
|
|
371
|
-
___
|
|
372
|
-
|
|
373
|
-
### onMessage
|
|
374
|
-
|
|
375
|
-
• **onMessage**: [`TOnMessage`](../README.md#tonmessage)
|
|
376
|
-
|
|
377
|
-
#### Defined in
|
|
378
|
-
|
|
379
|
-
[wallet/index.ts:133](https://github.com/synonymdev/beignet/blob/583604f/src/wallet/index.ts#L133)
|
|
405
|
+
[wallet/index.ts:133](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L133)
|
|
380
406
|
|
|
381
407
|
___
|
|
382
408
|
|
|
@@ -386,7 +412,7 @@ ___
|
|
|
386
412
|
|
|
387
413
|
#### Defined in
|
|
388
414
|
|
|
389
|
-
[wallet/index.ts:
|
|
415
|
+
[wallet/index.ts:146](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L146)
|
|
390
416
|
|
|
391
417
|
___
|
|
392
418
|
|
|
@@ -404,7 +430,7 @@ Saves the wallet data object to storage if able.
|
|
|
404
430
|
|
|
405
431
|
#### Defined in
|
|
406
432
|
|
|
407
|
-
[wallet/index.ts:
|
|
433
|
+
[wallet/index.ts:1655](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1655)
|
|
408
434
|
|
|
409
435
|
___
|
|
410
436
|
|
|
@@ -414,7 +440,17 @@ ___
|
|
|
414
440
|
|
|
415
441
|
#### Defined in
|
|
416
442
|
|
|
417
|
-
[wallet/index.ts:
|
|
443
|
+
[wallet/index.ts:147](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L147)
|
|
444
|
+
|
|
445
|
+
___
|
|
446
|
+
|
|
447
|
+
### sendMessage
|
|
448
|
+
|
|
449
|
+
• **sendMessage**: [`TOnMessage`](../README.md#tonmessage)
|
|
450
|
+
|
|
451
|
+
#### Defined in
|
|
452
|
+
|
|
453
|
+
[wallet/index.ts:143](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L143)
|
|
418
454
|
|
|
419
455
|
___
|
|
420
456
|
|
|
@@ -424,7 +460,7 @@ ___
|
|
|
424
460
|
|
|
425
461
|
#### Defined in
|
|
426
462
|
|
|
427
|
-
[wallet/index.ts:
|
|
463
|
+
[wallet/index.ts:144](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L144)
|
|
428
464
|
|
|
429
465
|
## Accessors
|
|
430
466
|
|
|
@@ -438,7 +474,7 @@ ___
|
|
|
438
474
|
|
|
439
475
|
#### Defined in
|
|
440
476
|
|
|
441
|
-
[wallet/index.ts:
|
|
477
|
+
[wallet/index.ts:217](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L217)
|
|
442
478
|
|
|
443
479
|
___
|
|
444
480
|
|
|
@@ -452,13 +488,13 @@ ___
|
|
|
452
488
|
|
|
453
489
|
#### Defined in
|
|
454
490
|
|
|
455
|
-
[wallet/index.ts:
|
|
491
|
+
[wallet/index.ts:221](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L221)
|
|
456
492
|
|
|
457
493
|
## Methods
|
|
458
494
|
|
|
459
495
|
### \_getAddress
|
|
460
496
|
|
|
461
|
-
▸ `Private` **_getAddress**(`path`, `addressType`): `Promise`<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)
|
|
497
|
+
▸ `Private` **_getAddress**(`path`, `addressType`): `Promise`<[`Result`](../README.md#result)<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
|
|
462
498
|
|
|
463
499
|
Returns the address for the specified path and address type.
|
|
464
500
|
|
|
@@ -471,11 +507,11 @@ Returns the address for the specified path and address type.
|
|
|
471
507
|
|
|
472
508
|
#### Returns
|
|
473
509
|
|
|
474
|
-
`Promise`<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)
|
|
510
|
+
`Promise`<[`Result`](../README.md#result)<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
|
|
475
511
|
|
|
476
512
|
#### Defined in
|
|
477
513
|
|
|
478
|
-
[wallet/index.ts:
|
|
514
|
+
[wallet/index.ts:509](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L509)
|
|
479
515
|
|
|
480
516
|
___
|
|
481
517
|
|
|
@@ -495,7 +531,7 @@ ___
|
|
|
495
531
|
|
|
496
532
|
#### Defined in
|
|
497
533
|
|
|
498
|
-
[wallet/index.ts:
|
|
534
|
+
[wallet/index.ts:336](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L336)
|
|
499
535
|
|
|
500
536
|
___
|
|
501
537
|
|
|
@@ -515,7 +551,7 @@ ___
|
|
|
515
551
|
|
|
516
552
|
#### Defined in
|
|
517
553
|
|
|
518
|
-
[wallet/index.ts:
|
|
554
|
+
[wallet/index.ts:326](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L326)
|
|
519
555
|
|
|
520
556
|
___
|
|
521
557
|
|
|
@@ -539,7 +575,7 @@ This method will generate addresses as specified and return an object of filtere
|
|
|
539
575
|
|
|
540
576
|
#### Defined in
|
|
541
577
|
|
|
542
|
-
[wallet/index.ts:
|
|
578
|
+
[wallet/index.ts:1219](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1219)
|
|
543
579
|
|
|
544
580
|
___
|
|
545
581
|
|
|
@@ -565,7 +601,7 @@ Adds a boosted transaction id to the boostedTransactions object.
|
|
|
565
601
|
|
|
566
602
|
#### Defined in
|
|
567
603
|
|
|
568
|
-
[wallet/index.ts:
|
|
604
|
+
[wallet/index.ts:3086](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3086)
|
|
569
605
|
|
|
570
606
|
___
|
|
571
607
|
|
|
@@ -588,7 +624,7 @@ Sets "exists" to false for a given on-chain transaction id.
|
|
|
588
624
|
|
|
589
625
|
#### Defined in
|
|
590
626
|
|
|
591
|
-
[wallet/index.ts:
|
|
627
|
+
[wallet/index.ts:3071](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3071)
|
|
592
628
|
|
|
593
629
|
___
|
|
594
630
|
|
|
@@ -611,7 +647,7 @@ Adds a specified input to the current transaction.
|
|
|
611
647
|
|
|
612
648
|
#### Defined in
|
|
613
649
|
|
|
614
|
-
[wallet/index.ts:
|
|
650
|
+
[wallet/index.ts:3203](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3203)
|
|
615
651
|
|
|
616
652
|
___
|
|
617
653
|
|
|
@@ -634,7 +670,7 @@ Adds a specified tag to the current transaction.
|
|
|
634
670
|
|
|
635
671
|
#### Defined in
|
|
636
672
|
|
|
637
|
-
[wallet/index.ts:
|
|
673
|
+
[wallet/index.ts:3254](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3254)
|
|
638
674
|
|
|
639
675
|
___
|
|
640
676
|
|
|
@@ -659,7 +695,7 @@ Parses and adds unconfirmed transactions to the store.
|
|
|
659
695
|
|
|
660
696
|
#### Defined in
|
|
661
697
|
|
|
662
|
-
[wallet/index.ts:
|
|
698
|
+
[wallet/index.ts:2123](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2123)
|
|
663
699
|
|
|
664
700
|
___
|
|
665
701
|
|
|
@@ -683,7 +719,7 @@ Returns the number of confirmations for a given block height.
|
|
|
683
719
|
|
|
684
720
|
#### Defined in
|
|
685
721
|
|
|
686
|
-
[wallet/index.ts:
|
|
722
|
+
[wallet/index.ts:2165](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2165)
|
|
687
723
|
|
|
688
724
|
___
|
|
689
725
|
|
|
@@ -700,7 +736,7 @@ Will attempt to reconnect if not initially available.
|
|
|
700
736
|
|
|
701
737
|
#### Defined in
|
|
702
738
|
|
|
703
|
-
[wallet/index.ts:
|
|
739
|
+
[wallet/index.ts:847](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L847)
|
|
704
740
|
|
|
705
741
|
___
|
|
706
742
|
|
|
@@ -720,7 +756,7 @@ will be removed from the store and updated in the activity list.
|
|
|
720
756
|
|
|
721
757
|
#### Defined in
|
|
722
758
|
|
|
723
|
-
[wallet/index.ts:
|
|
759
|
+
[wallet/index.ts:1828](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1828)
|
|
724
760
|
|
|
725
761
|
___
|
|
726
762
|
|
|
@@ -738,7 +774,7 @@ Clears the addresses and changeAddresses object for a given wallet and network.
|
|
|
738
774
|
|
|
739
775
|
#### Defined in
|
|
740
776
|
|
|
741
|
-
[wallet/index.ts:
|
|
777
|
+
[wallet/index.ts:2083](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2083)
|
|
742
778
|
|
|
743
779
|
___
|
|
744
780
|
|
|
@@ -754,7 +790,7 @@ Clears the transactions object for a given wallet and network from storage.
|
|
|
754
790
|
|
|
755
791
|
#### Defined in
|
|
756
792
|
|
|
757
|
-
[wallet/index.ts:
|
|
793
|
+
[wallet/index.ts:2071](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2071)
|
|
758
794
|
|
|
759
795
|
___
|
|
760
796
|
|
|
@@ -772,7 +808,7 @@ Clears the UTXO array and balance from storage.
|
|
|
772
808
|
|
|
773
809
|
#### Defined in
|
|
774
810
|
|
|
775
|
-
[wallet/index.ts:
|
|
811
|
+
[wallet/index.ts:2056](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2056)
|
|
776
812
|
|
|
777
813
|
___
|
|
778
814
|
|
|
@@ -796,7 +832,7 @@ Returns the block height for a given number of confirmations from storage.
|
|
|
796
832
|
|
|
797
833
|
#### Defined in
|
|
798
834
|
|
|
799
|
-
[wallet/index.ts:
|
|
835
|
+
[wallet/index.ts:1951](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1951)
|
|
800
836
|
|
|
801
837
|
___
|
|
802
838
|
|
|
@@ -818,7 +854,7 @@ Attempts to connect to the specified Electrum server(s).
|
|
|
818
854
|
|
|
819
855
|
#### Defined in
|
|
820
856
|
|
|
821
|
-
[wallet/index.ts:
|
|
857
|
+
[wallet/index.ts:608](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L608)
|
|
822
858
|
|
|
823
859
|
___
|
|
824
860
|
|
|
@@ -841,7 +877,7 @@ Deletes a given on-chain transaction by id.
|
|
|
841
877
|
|
|
842
878
|
#### Defined in
|
|
843
879
|
|
|
844
|
-
[wallet/index.ts:
|
|
880
|
+
[wallet/index.ts:3055](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3055)
|
|
845
881
|
|
|
846
882
|
___
|
|
847
883
|
|
|
@@ -866,7 +902,7 @@ Formats the provided transaction.
|
|
|
866
902
|
|
|
867
903
|
#### Defined in
|
|
868
904
|
|
|
869
|
-
[wallet/index.ts:
|
|
905
|
+
[wallet/index.ts:2191](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2191)
|
|
870
906
|
|
|
871
907
|
___
|
|
872
908
|
|
|
@@ -890,7 +926,7 @@ Generates a series of addresses based on the specified params.
|
|
|
890
926
|
|
|
891
927
|
#### Defined in
|
|
892
928
|
|
|
893
|
-
[wallet/index.ts:
|
|
929
|
+
[wallet/index.ts:739](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L739)
|
|
894
930
|
|
|
895
931
|
___
|
|
896
932
|
|
|
@@ -916,7 +952,7 @@ Generate a new receive address for the provided addresstype up to the set gap li
|
|
|
916
952
|
|
|
917
953
|
#### Defined in
|
|
918
954
|
|
|
919
|
-
[wallet/index.ts:
|
|
955
|
+
[wallet/index.ts:1498](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1498)
|
|
920
956
|
|
|
921
957
|
___
|
|
922
958
|
|
|
@@ -939,7 +975,7 @@ index and whether it is a change address.
|
|
|
939
975
|
|
|
940
976
|
#### Defined in
|
|
941
977
|
|
|
942
|
-
[wallet/index.ts:
|
|
978
|
+
[wallet/index.ts:548](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L548)
|
|
943
979
|
|
|
944
980
|
___
|
|
945
981
|
|
|
@@ -961,7 +997,7 @@ Returns the address balance for the specified address.
|
|
|
961
997
|
|
|
962
998
|
#### Defined in
|
|
963
999
|
|
|
964
|
-
[wallet/index.ts:
|
|
1000
|
+
[wallet/index.ts:629](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L629)
|
|
965
1001
|
|
|
966
1002
|
___
|
|
967
1003
|
|
|
@@ -983,7 +1019,7 @@ Get address for a given keyPair, network and type.
|
|
|
983
1019
|
|
|
984
1020
|
#### Defined in
|
|
985
1021
|
|
|
986
|
-
[wallet/index.ts:
|
|
1022
|
+
[wallet/index.ts:582](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L582)
|
|
987
1023
|
|
|
988
1024
|
___
|
|
989
1025
|
|
|
@@ -1005,7 +1041,7 @@ Returns the address from a provided script hash in storage.
|
|
|
1005
1041
|
|
|
1006
1042
|
#### Defined in
|
|
1007
1043
|
|
|
1008
|
-
[wallet/index.ts:
|
|
1044
|
+
[wallet/index.ts:2688](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2688)
|
|
1009
1045
|
|
|
1010
1046
|
___
|
|
1011
1047
|
|
|
@@ -1021,7 +1057,7 @@ Returns current address index information.
|
|
|
1021
1057
|
|
|
1022
1058
|
#### Defined in
|
|
1023
1059
|
|
|
1024
|
-
[wallet/index.ts:
|
|
1060
|
+
[wallet/index.ts:2803](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2803)
|
|
1025
1061
|
|
|
1026
1062
|
___
|
|
1027
1063
|
|
|
@@ -1045,7 +1081,30 @@ Returns combined balance of provided addresses.
|
|
|
1045
1081
|
|
|
1046
1082
|
#### Defined in
|
|
1047
1083
|
|
|
1048
|
-
[wallet/index.ts:
|
|
1084
|
+
[wallet/index.ts:647](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L647)
|
|
1085
|
+
|
|
1086
|
+
___
|
|
1087
|
+
|
|
1088
|
+
### getAddressesFromPrivateKey
|
|
1089
|
+
|
|
1090
|
+
▸ **getAddressesFromPrivateKey**(`privateKey`, `_addressTypes?`): [`Result`](../README.md#result)<[`IGetAddressesFromPrivateKey`](../interfaces/IGetAddressesFromPrivateKey.md)\>
|
|
1091
|
+
|
|
1092
|
+
Get addresses from a given private key.
|
|
1093
|
+
|
|
1094
|
+
#### Parameters
|
|
1095
|
+
|
|
1096
|
+
| Name | Type |
|
|
1097
|
+
| :------ | :------ |
|
|
1098
|
+
| `privateKey` | `string` |
|
|
1099
|
+
| `_addressTypes?` | [`EAddressType`](../enums/EAddressType.md)[] |
|
|
1100
|
+
|
|
1101
|
+
#### Returns
|
|
1102
|
+
|
|
1103
|
+
[`Result`](../README.md#result)<[`IGetAddressesFromPrivateKey`](../interfaces/IGetAddressesFromPrivateKey.md)\>
|
|
1104
|
+
|
|
1105
|
+
#### Defined in
|
|
1106
|
+
|
|
1107
|
+
[wallet/index.ts:3378](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3378)
|
|
1049
1108
|
|
|
1050
1109
|
___
|
|
1051
1110
|
|
|
@@ -1061,7 +1120,7 @@ Returns the known balance from storage.
|
|
|
1061
1120
|
|
|
1062
1121
|
#### Defined in
|
|
1063
1122
|
|
|
1064
|
-
[wallet/index.ts:
|
|
1123
|
+
[wallet/index.ts:723](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L723)
|
|
1065
1124
|
|
|
1066
1125
|
___
|
|
1067
1126
|
|
|
@@ -1077,7 +1136,7 @@ Creates a BIP32Interface from the selected wallet's mnemonic and passphrase
|
|
|
1077
1136
|
|
|
1078
1137
|
#### Defined in
|
|
1079
1138
|
|
|
1080
|
-
[wallet/index.ts:
|
|
1139
|
+
[wallet/index.ts:3187](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3187)
|
|
1081
1140
|
|
|
1082
1141
|
___
|
|
1083
1142
|
|
|
@@ -1099,7 +1158,7 @@ Returns the Network object of the currently selected network (bitcoin or testnet
|
|
|
1099
1158
|
|
|
1100
1159
|
#### Defined in
|
|
1101
1160
|
|
|
1102
|
-
[wallet/index.ts:
|
|
1161
|
+
[wallet/index.ts:488](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L488)
|
|
1103
1162
|
|
|
1104
1163
|
___
|
|
1105
1164
|
|
|
@@ -1120,7 +1179,7 @@ Returns an array of transactions that can be boosted with cpfp and rbf.
|
|
|
1120
1179
|
|
|
1121
1180
|
#### Defined in
|
|
1122
1181
|
|
|
1123
|
-
[wallet/index.ts:
|
|
1182
|
+
[wallet/index.ts:3170](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3170)
|
|
1124
1183
|
|
|
1125
1184
|
___
|
|
1126
1185
|
|
|
@@ -1144,7 +1203,7 @@ Returns an array of parents for a boosted transaction id.
|
|
|
1144
1203
|
|
|
1145
1204
|
#### Defined in
|
|
1146
1205
|
|
|
1147
|
-
[wallet/index.ts:
|
|
1206
|
+
[wallet/index.ts:3133](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3133)
|
|
1148
1207
|
|
|
1149
1208
|
___
|
|
1150
1209
|
|
|
@@ -1160,7 +1219,7 @@ Returns boosted transactions object.
|
|
|
1160
1219
|
|
|
1161
1220
|
#### Defined in
|
|
1162
1221
|
|
|
1163
|
-
[wallet/index.ts:
|
|
1222
|
+
[wallet/index.ts:3154](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3154)
|
|
1164
1223
|
|
|
1165
1224
|
___
|
|
1166
1225
|
|
|
@@ -1184,29 +1243,7 @@ Retrieves the next available change address data.
|
|
|
1184
1243
|
|
|
1185
1244
|
#### Defined in
|
|
1186
1245
|
|
|
1187
|
-
[wallet/index.ts:
|
|
1188
|
-
|
|
1189
|
-
___
|
|
1190
|
-
|
|
1191
|
-
### getExchangeRate
|
|
1192
|
-
|
|
1193
|
-
▸ **getExchangeRate**(`currency?`): `number`
|
|
1194
|
-
|
|
1195
|
-
Returns exchange rate data from storage.
|
|
1196
|
-
|
|
1197
|
-
#### Parameters
|
|
1198
|
-
|
|
1199
|
-
| Name | Type | Default value |
|
|
1200
|
-
| :------ | :------ | :------ |
|
|
1201
|
-
| `currency` | `string` | `'EUR'` |
|
|
1202
|
-
|
|
1203
|
-
#### Returns
|
|
1204
|
-
|
|
1205
|
-
`number`
|
|
1206
|
-
|
|
1207
|
-
#### Defined in
|
|
1208
|
-
|
|
1209
|
-
[wallet/index.ts:2416](https://github.com/synonymdev/beignet/blob/583604f/src/wallet/index.ts#L2416)
|
|
1246
|
+
[wallet/index.ts:2415](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2415)
|
|
1210
1247
|
|
|
1211
1248
|
___
|
|
1212
1249
|
|
|
@@ -1230,7 +1267,7 @@ Returns the current fee estimates for the provided network.
|
|
|
1230
1267
|
|
|
1231
1268
|
#### Defined in
|
|
1232
1269
|
|
|
1233
|
-
[wallet/index.ts:
|
|
1270
|
+
[wallet/index.ts:2448](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2448)
|
|
1234
1271
|
|
|
1235
1272
|
___
|
|
1236
1273
|
|
|
@@ -1256,7 +1293,7 @@ Returns a fee object for the current transaction.
|
|
|
1256
1293
|
|
|
1257
1294
|
#### Defined in
|
|
1258
1295
|
|
|
1259
|
-
[wallet/index.ts:
|
|
1296
|
+
[wallet/index.ts:2497](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2497)
|
|
1260
1297
|
|
|
1261
1298
|
___
|
|
1262
1299
|
|
|
@@ -1279,7 +1316,7 @@ Returns the difference between the current address index and the last used addre
|
|
|
1279
1316
|
|
|
1280
1317
|
#### Defined in
|
|
1281
1318
|
|
|
1282
|
-
[wallet/index.ts:
|
|
1319
|
+
[wallet/index.ts:1584](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1584)
|
|
1283
1320
|
|
|
1284
1321
|
___
|
|
1285
1322
|
|
|
@@ -1303,7 +1340,7 @@ Retrives the highest stored address index for the provided address type.
|
|
|
1303
1340
|
|
|
1304
1341
|
#### Defined in
|
|
1305
1342
|
|
|
1306
|
-
[wallet/index.ts:
|
|
1343
|
+
[wallet/index.ts:1179](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1179)
|
|
1307
1344
|
|
|
1308
1345
|
___
|
|
1309
1346
|
|
|
@@ -1328,7 +1365,7 @@ Returns formatted input data from the inputs array.
|
|
|
1328
1365
|
|
|
1329
1366
|
#### Defined in
|
|
1330
1367
|
|
|
1331
|
-
[wallet/index.ts:
|
|
1368
|
+
[wallet/index.ts:2359](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2359)
|
|
1332
1369
|
|
|
1333
1370
|
___
|
|
1334
1371
|
|
|
@@ -1350,7 +1387,7 @@ Returns the next available address for the given addresstype.
|
|
|
1350
1387
|
|
|
1351
1388
|
#### Defined in
|
|
1352
1389
|
|
|
1353
|
-
[wallet/index.ts:
|
|
1390
|
+
[wallet/index.ts:863](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L863)
|
|
1354
1391
|
|
|
1355
1392
|
___
|
|
1356
1393
|
|
|
@@ -1372,7 +1409,31 @@ Returns private key for the provided path.
|
|
|
1372
1409
|
|
|
1373
1410
|
#### Defined in
|
|
1374
1411
|
|
|
1375
|
-
[wallet/index.ts:
|
|
1412
|
+
[wallet/index.ts:701](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L701)
|
|
1413
|
+
|
|
1414
|
+
___
|
|
1415
|
+
|
|
1416
|
+
### getPrivateKeyInfo
|
|
1417
|
+
|
|
1418
|
+
▸ **getPrivateKeyInfo**(`privateKey`): `Promise`<[`Result`](../README.md#result)<[`IPrivateKeyInfo`](../interfaces/IPrivateKeyInfo.md)\>\>
|
|
1419
|
+
|
|
1420
|
+
Returns the balance, utxos, and keyPair info for a given private key.
|
|
1421
|
+
|
|
1422
|
+
#### Parameters
|
|
1423
|
+
|
|
1424
|
+
| Name | Type |
|
|
1425
|
+
| :------ | :------ |
|
|
1426
|
+
| `privateKey` | `string` |
|
|
1427
|
+
|
|
1428
|
+
#### Returns
|
|
1429
|
+
|
|
1430
|
+
`Promise`<[`Result`](../README.md#result)<[`IPrivateKeyInfo`](../interfaces/IPrivateKeyInfo.md)\>\>
|
|
1431
|
+
|
|
1432
|
+
**`Async`**
|
|
1433
|
+
|
|
1434
|
+
#### Defined in
|
|
1435
|
+
|
|
1436
|
+
[wallet/index.ts:3400](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3400)
|
|
1376
1437
|
|
|
1377
1438
|
___
|
|
1378
1439
|
|
|
@@ -1396,7 +1457,7 @@ replace-by-fee transaction for any 0-conf, RBF-enabled tx.
|
|
|
1396
1457
|
|
|
1397
1458
|
#### Defined in
|
|
1398
1459
|
|
|
1399
|
-
[wallet/index.ts:
|
|
1460
|
+
[wallet/index.ts:2873](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2873)
|
|
1400
1461
|
|
|
1401
1462
|
___
|
|
1402
1463
|
|
|
@@ -1419,7 +1480,7 @@ Returns the next available receive address.
|
|
|
1419
1480
|
|
|
1420
1481
|
#### Defined in
|
|
1421
1482
|
|
|
1422
|
-
[wallet/index.ts:
|
|
1483
|
+
[wallet/index.ts:2825](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2825)
|
|
1423
1484
|
|
|
1424
1485
|
___
|
|
1425
1486
|
|
|
@@ -1443,7 +1504,7 @@ Get scriptHash for a given address
|
|
|
1443
1504
|
|
|
1444
1505
|
#### Defined in
|
|
1445
1506
|
|
|
1446
|
-
[wallet/index.ts:
|
|
1507
|
+
[wallet/index.ts:682](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L682)
|
|
1447
1508
|
|
|
1448
1509
|
___
|
|
1449
1510
|
|
|
@@ -1465,7 +1526,7 @@ Returns the balance for the specified scriptHash.
|
|
|
1465
1526
|
|
|
1466
1527
|
#### Defined in
|
|
1467
1528
|
|
|
1468
|
-
[wallet/index.ts:
|
|
1529
|
+
[wallet/index.ts:711](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L711)
|
|
1469
1530
|
|
|
1470
1531
|
___
|
|
1471
1532
|
|
|
@@ -1481,7 +1542,7 @@ Returns the current wallet's unconfirmed transactions from storage.
|
|
|
1481
1542
|
|
|
1482
1543
|
#### Defined in
|
|
1483
1544
|
|
|
1484
|
-
[wallet/index.ts:
|
|
1545
|
+
[wallet/index.ts:1939](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1939)
|
|
1485
1546
|
|
|
1486
1547
|
___
|
|
1487
1548
|
|
|
@@ -1503,7 +1564,7 @@ Retrieves and sets UTXO's for the current wallet from Electrum.
|
|
|
1503
1564
|
|
|
1504
1565
|
#### Defined in
|
|
1505
1566
|
|
|
1506
|
-
[wallet/index.ts:
|
|
1567
|
+
[wallet/index.ts:1617](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1617)
|
|
1507
1568
|
|
|
1508
1569
|
___
|
|
1509
1570
|
|
|
@@ -1520,7 +1581,7 @@ Otherwise, it falls back to the default wallet data object.
|
|
|
1520
1581
|
|
|
1521
1582
|
#### Defined in
|
|
1522
1583
|
|
|
1523
|
-
[wallet/index.ts:
|
|
1584
|
+
[wallet/index.ts:404](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L404)
|
|
1524
1585
|
|
|
1525
1586
|
___
|
|
1526
1587
|
|
|
@@ -1542,7 +1603,7 @@ Returns the key used for storing wallet data in the key/value pair.
|
|
|
1542
1603
|
|
|
1543
1604
|
#### Defined in
|
|
1544
1605
|
|
|
1545
|
-
[wallet/index.ts:
|
|
1606
|
+
[wallet/index.ts:395](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L395)
|
|
1546
1607
|
|
|
1547
1608
|
___
|
|
1548
1609
|
|
|
@@ -1564,7 +1625,7 @@ Ensures the provided mnemonic matches the one stored in the wallet and is valid.
|
|
|
1564
1625
|
|
|
1565
1626
|
#### Defined in
|
|
1566
1627
|
|
|
1567
|
-
[wallet/index.ts:
|
|
1628
|
+
[wallet/index.ts:498](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L498)
|
|
1568
1629
|
|
|
1569
1630
|
___
|
|
1570
1631
|
|
|
@@ -1580,7 +1641,7 @@ Returns the current wallet's UTXO's from storage.
|
|
|
1580
1641
|
|
|
1581
1642
|
#### Defined in
|
|
1582
1643
|
|
|
1583
|
-
[wallet/index.ts:
|
|
1644
|
+
[wallet/index.ts:1643](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1643)
|
|
1584
1645
|
|
|
1585
1646
|
___
|
|
1586
1647
|
|
|
@@ -1601,7 +1662,7 @@ This method processes all transactions with less than 6 confirmations and return
|
|
|
1601
1662
|
|
|
1602
1663
|
#### Defined in
|
|
1603
1664
|
|
|
1604
|
-
[wallet/index.ts:
|
|
1665
|
+
[wallet/index.ts:1869](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1869)
|
|
1605
1666
|
|
|
1606
1667
|
___
|
|
1607
1668
|
|
|
@@ -1617,7 +1678,6 @@ Refreshes/Syncs the wallet data.
|
|
|
1617
1678
|
| :------ | :------ |
|
|
1618
1679
|
| `«destructured»` | `Object` |
|
|
1619
1680
|
| › `scanAllAddresses` | `undefined` \| `boolean` |
|
|
1620
|
-
| › `updateAllAddressTypes` | `undefined` \| `boolean` |
|
|
1621
1681
|
|
|
1622
1682
|
#### Returns
|
|
1623
1683
|
|
|
@@ -1625,7 +1685,7 @@ Refreshes/Syncs the wallet data.
|
|
|
1625
1685
|
|
|
1626
1686
|
#### Defined in
|
|
1627
1687
|
|
|
1628
|
-
[wallet/index.ts:
|
|
1688
|
+
[wallet/index.ts:295](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L295)
|
|
1629
1689
|
|
|
1630
1690
|
___
|
|
1631
1691
|
|
|
@@ -1651,7 +1711,7 @@ This method will compare a set of specified addresses to the currently stored ad
|
|
|
1651
1711
|
|
|
1652
1712
|
#### Defined in
|
|
1653
1713
|
|
|
1654
|
-
[wallet/index.ts:
|
|
1714
|
+
[wallet/index.ts:1293](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1293)
|
|
1655
1715
|
|
|
1656
1716
|
___
|
|
1657
1717
|
|
|
@@ -1674,7 +1734,7 @@ Removes the specified input from the current transaction.
|
|
|
1674
1734
|
|
|
1675
1735
|
#### Defined in
|
|
1676
1736
|
|
|
1677
|
-
[wallet/index.ts:
|
|
1737
|
+
[wallet/index.ts:3228](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3228)
|
|
1678
1738
|
|
|
1679
1739
|
___
|
|
1680
1740
|
|
|
@@ -1697,7 +1757,7 @@ Removes a specified tag from the current transaction.
|
|
|
1697
1757
|
|
|
1698
1758
|
#### Defined in
|
|
1699
1759
|
|
|
1700
|
-
[wallet/index.ts:
|
|
1760
|
+
[wallet/index.ts:3277](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3277)
|
|
1701
1761
|
|
|
1702
1762
|
___
|
|
1703
1763
|
|
|
@@ -1725,7 +1785,7 @@ the app will rescan the wallet's addresses from index zero.
|
|
|
1725
1785
|
|
|
1726
1786
|
#### Defined in
|
|
1727
1787
|
|
|
1728
|
-
[wallet/index.ts:
|
|
1788
|
+
[wallet/index.ts:2028](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2028)
|
|
1729
1789
|
|
|
1730
1790
|
___
|
|
1731
1791
|
|
|
@@ -1741,7 +1801,7 @@ Resets address indexes back to the app's default/original state.
|
|
|
1741
1801
|
|
|
1742
1802
|
#### Defined in
|
|
1743
1803
|
|
|
1744
|
-
[wallet/index.ts:
|
|
1804
|
+
[wallet/index.ts:1470](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1470)
|
|
1745
1805
|
|
|
1746
1806
|
___
|
|
1747
1807
|
|
|
@@ -1757,7 +1817,7 @@ This completely resets the send transaction state.
|
|
|
1757
1817
|
|
|
1758
1818
|
#### Defined in
|
|
1759
1819
|
|
|
1760
|
-
[wallet/index.ts:
|
|
1820
|
+
[wallet/index.ts:3162](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3162)
|
|
1761
1821
|
|
|
1762
1822
|
___
|
|
1763
1823
|
|
|
@@ -1784,7 +1844,7 @@ ___
|
|
|
1784
1844
|
|
|
1785
1845
|
#### Defined in
|
|
1786
1846
|
|
|
1787
|
-
[wallet/index.ts:
|
|
1847
|
+
[wallet/index.ts:1656](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1656)
|
|
1788
1848
|
|
|
1789
1849
|
___
|
|
1790
1850
|
|
|
@@ -1815,7 +1875,7 @@ Sets up and creates a transaction to a single output/recipient.
|
|
|
1815
1875
|
|
|
1816
1876
|
#### Defined in
|
|
1817
1877
|
|
|
1818
|
-
[wallet/index.ts:
|
|
1878
|
+
[wallet/index.ts:2657](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2657)
|
|
1819
1879
|
|
|
1820
1880
|
___
|
|
1821
1881
|
|
|
@@ -1842,7 +1902,7 @@ Sets up and creates a transaction to multiple outputs.
|
|
|
1842
1902
|
|
|
1843
1903
|
#### Defined in
|
|
1844
1904
|
|
|
1845
|
-
[wallet/index.ts:
|
|
1905
|
+
[wallet/index.ts:2525](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2525)
|
|
1846
1906
|
|
|
1847
1907
|
___
|
|
1848
1908
|
|
|
@@ -1868,7 +1928,7 @@ Sends the maximum amount of sats to a given address at the specified satsPerByte
|
|
|
1868
1928
|
|
|
1869
1929
|
#### Defined in
|
|
1870
1930
|
|
|
1871
|
-
[wallet/index.ts:
|
|
1931
|
+
[wallet/index.ts:2601](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2601)
|
|
1872
1932
|
|
|
1873
1933
|
___
|
|
1874
1934
|
|
|
@@ -1884,7 +1944,7 @@ Sets the wallet data object.
|
|
|
1884
1944
|
|
|
1885
1945
|
#### Defined in
|
|
1886
1946
|
|
|
1887
|
-
[wallet/index.ts:
|
|
1947
|
+
[wallet/index.ts:347](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L347)
|
|
1888
1948
|
|
|
1889
1949
|
___
|
|
1890
1950
|
|
|
@@ -1903,7 +1963,7 @@ Will also generate and store address and changeAddress at index 0.
|
|
|
1903
1963
|
|
|
1904
1964
|
#### Defined in
|
|
1905
1965
|
|
|
1906
|
-
[wallet/index.ts:
|
|
1966
|
+
[wallet/index.ts:2708](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2708)
|
|
1907
1967
|
|
|
1908
1968
|
___
|
|
1909
1969
|
|
|
@@ -1927,7 +1987,7 @@ Updates the fee rate for the current transaction to the preferred value if none
|
|
|
1927
1987
|
|
|
1928
1988
|
#### Defined in
|
|
1929
1989
|
|
|
1930
|
-
[wallet/index.ts:
|
|
1990
|
+
[wallet/index.ts:3302](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3302)
|
|
1931
1991
|
|
|
1932
1992
|
___
|
|
1933
1993
|
|
|
@@ -1950,7 +2010,7 @@ Sets up the transaction object with existing inputs and change address informati
|
|
|
1950
2010
|
|
|
1951
2011
|
#### Defined in
|
|
1952
2012
|
|
|
1953
|
-
[wallet/index.ts:
|
|
2013
|
+
[wallet/index.ts:2483](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2483)
|
|
1954
2014
|
|
|
1955
2015
|
___
|
|
1956
2016
|
|
|
@@ -1974,7 +2034,31 @@ Ensure we are not overwriting wallet data of a different wallet by checking that
|
|
|
1974
2034
|
|
|
1975
2035
|
#### Defined in
|
|
1976
2036
|
|
|
1977
|
-
[wallet/index.ts:
|
|
2037
|
+
[wallet/index.ts:370](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L370)
|
|
2038
|
+
|
|
2039
|
+
___
|
|
2040
|
+
|
|
2041
|
+
### sweepPrivateKey
|
|
2042
|
+
|
|
2043
|
+
▸ **sweepPrivateKey**(`«destructured»`): `Promise`<[`Result`](../README.md#result)<[`ISweepPrivateKeyRes`](../interfaces/ISweepPrivateKeyRes.md)\>\>
|
|
2044
|
+
|
|
2045
|
+
Sweeps a private key to a given address.
|
|
2046
|
+
|
|
2047
|
+
#### Parameters
|
|
2048
|
+
|
|
2049
|
+
| Name | Type |
|
|
2050
|
+
| :------ | :------ |
|
|
2051
|
+
| `«destructured»` | [`ISweepPrivateKey`](../interfaces/ISweepPrivateKey.md) |
|
|
2052
|
+
|
|
2053
|
+
#### Returns
|
|
2054
|
+
|
|
2055
|
+
`Promise`<[`Result`](../README.md#result)<[`ISweepPrivateKeyRes`](../interfaces/ISweepPrivateKeyRes.md)\>\>
|
|
2056
|
+
|
|
2057
|
+
**`Async`**
|
|
2058
|
+
|
|
2059
|
+
#### Defined in
|
|
2060
|
+
|
|
2061
|
+
[wallet/index.ts:3444](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3444)
|
|
1978
2062
|
|
|
1979
2063
|
___
|
|
1980
2064
|
|
|
@@ -1995,7 +2079,7 @@ ___
|
|
|
1995
2079
|
|
|
1996
2080
|
#### Defined in
|
|
1997
2081
|
|
|
1998
|
-
[wallet/index.ts:
|
|
2082
|
+
[wallet/index.ts:241](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L241)
|
|
1999
2083
|
|
|
2000
2084
|
___
|
|
2001
2085
|
|
|
@@ -2021,23 +2105,16 @@ Updates the address index for a given address type.
|
|
|
2021
2105
|
|
|
2022
2106
|
#### Defined in
|
|
2023
2107
|
|
|
2024
|
-
[wallet/index.ts:
|
|
2108
|
+
[wallet/index.ts:2758](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2758)
|
|
2025
2109
|
|
|
2026
2110
|
___
|
|
2027
2111
|
|
|
2028
2112
|
### updateAddressIndexes
|
|
2029
2113
|
|
|
2030
|
-
▸ `Private` **updateAddressIndexes**(
|
|
2114
|
+
▸ `Private` **updateAddressIndexes**(): `Promise`<[`Result`](../README.md#result)<`string`\>\>
|
|
2031
2115
|
|
|
2032
2116
|
This method updates the next available (zero-balance) address & changeAddress index.
|
|
2033
2117
|
|
|
2034
|
-
#### Parameters
|
|
2035
|
-
|
|
2036
|
-
| Name | Type |
|
|
2037
|
-
| :------ | :------ |
|
|
2038
|
-
| `addressType?` | `Object` |
|
|
2039
|
-
| `addressType.addressType?` | [`EAddressType`](../enums/EAddressType.md) |
|
|
2040
|
-
|
|
2041
2118
|
#### Returns
|
|
2042
2119
|
|
|
2043
2120
|
`Promise`<[`Result`](../README.md#result)<`string`\>\>
|
|
@@ -2046,7 +2123,7 @@ This method updates the next available (zero-balance) address & changeAddress in
|
|
|
2046
2123
|
|
|
2047
2124
|
#### Defined in
|
|
2048
2125
|
|
|
2049
|
-
[wallet/index.ts:
|
|
2126
|
+
[wallet/index.ts:1342](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1342)
|
|
2050
2127
|
|
|
2051
2128
|
___
|
|
2052
2129
|
|
|
@@ -2068,7 +2145,7 @@ Updates the address type for the current wallet.
|
|
|
2068
2145
|
|
|
2069
2146
|
#### Defined in
|
|
2070
2147
|
|
|
2071
|
-
[wallet/index.ts:
|
|
2148
|
+
[wallet/index.ts:280](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L280)
|
|
2072
2149
|
|
|
2073
2150
|
___
|
|
2074
2151
|
|
|
@@ -2090,25 +2167,7 @@ ___
|
|
|
2090
2167
|
|
|
2091
2168
|
#### Defined in
|
|
2092
2169
|
|
|
2093
|
-
[wallet/index.ts:
|
|
2094
|
-
|
|
2095
|
-
___
|
|
2096
|
-
|
|
2097
|
-
### updateExchangeRates
|
|
2098
|
-
|
|
2099
|
-
▸ **updateExchangeRates**(): `Promise`<[`Result`](../README.md#result)<[`IExchangeRates`](../interfaces/IExchangeRates.md)\>\>
|
|
2100
|
-
|
|
2101
|
-
Updates the exchange rates for the current network.
|
|
2102
|
-
|
|
2103
|
-
#### Returns
|
|
2104
|
-
|
|
2105
|
-
`Promise`<[`Result`](../README.md#result)<[`IExchangeRates`](../interfaces/IExchangeRates.md)\>\>
|
|
2106
|
-
|
|
2107
|
-
**`Async`**
|
|
2108
|
-
|
|
2109
|
-
#### Defined in
|
|
2110
|
-
|
|
2111
|
-
[wallet/index.ts:3382](https://github.com/synonymdev/beignet/blob/583604f/src/wallet/index.ts#L3382)
|
|
2170
|
+
[wallet/index.ts:1688](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1688)
|
|
2112
2171
|
|
|
2113
2172
|
___
|
|
2114
2173
|
|
|
@@ -2132,7 +2191,7 @@ Updates the fee estimates for the current network.
|
|
|
2132
2191
|
|
|
2133
2192
|
#### Defined in
|
|
2134
2193
|
|
|
2135
|
-
[wallet/index.ts:
|
|
2194
|
+
[wallet/index.ts:3355](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3355)
|
|
2136
2195
|
|
|
2137
2196
|
___
|
|
2138
2197
|
|
|
@@ -2157,7 +2216,7 @@ Removes transactions from the store and activity list.
|
|
|
2157
2216
|
|
|
2158
2217
|
#### Defined in
|
|
2159
2218
|
|
|
2160
|
-
[wallet/index.ts:
|
|
2219
|
+
[wallet/index.ts:1985](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1985)
|
|
2161
2220
|
|
|
2162
2221
|
___
|
|
2163
2222
|
|
|
@@ -2179,7 +2238,7 @@ Updates & Saves header information to storage.
|
|
|
2179
2238
|
|
|
2180
2239
|
#### Defined in
|
|
2181
2240
|
|
|
2182
|
-
[wallet/index.ts:
|
|
2241
|
+
[wallet/index.ts:1973](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1973)
|
|
2183
2242
|
|
|
2184
2243
|
___
|
|
2185
2244
|
|
|
@@ -2203,7 +2262,7 @@ Updates the confirmation state of activity item transactions that were reorg'd o
|
|
|
2203
2262
|
|
|
2204
2263
|
#### Defined in
|
|
2205
2264
|
|
|
2206
|
-
[wallet/index.ts:
|
|
2265
|
+
[wallet/index.ts:2100](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2100)
|
|
2207
2266
|
|
|
2208
2267
|
___
|
|
2209
2268
|
|
|
@@ -2227,7 +2286,7 @@ Retrieves, formats & stores the transaction history for the selected wallet/netw
|
|
|
2227
2286
|
|
|
2228
2287
|
#### Defined in
|
|
2229
2288
|
|
|
2230
|
-
[wallet/index.ts:
|
|
2289
|
+
[wallet/index.ts:1709](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L1709)
|
|
2231
2290
|
|
|
2232
2291
|
___
|
|
2233
2292
|
|
|
@@ -2250,7 +2309,7 @@ Used to temporarily update the balance until the Electrum server catches up afte
|
|
|
2250
2309
|
|
|
2251
2310
|
#### Defined in
|
|
2252
2311
|
|
|
2253
|
-
[wallet/index.ts:
|
|
2312
|
+
[wallet/index.ts:3338](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L3338)
|
|
2254
2313
|
|
|
2255
2314
|
___
|
|
2256
2315
|
|
|
@@ -2272,7 +2331,7 @@ Attempts to validate a given address.
|
|
|
2272
2331
|
|
|
2273
2332
|
#### Defined in
|
|
2274
2333
|
|
|
2275
|
-
[wallet/index.ts:
|
|
2334
|
+
[wallet/index.ts:2405](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L2405)
|
|
2276
2335
|
|
|
2277
2336
|
___
|
|
2278
2337
|
|
|
@@ -2292,4 +2351,4 @@ ___
|
|
|
2292
2351
|
|
|
2293
2352
|
#### Defined in
|
|
2294
2353
|
|
|
2295
|
-
[wallet/index.ts:
|
|
2354
|
+
[wallet/index.ts:225](https://github.com/synonymdev/beignet/blob/05d5011/src/wallet/index.ts#L225)
|