beignet 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (329) hide show
  1. package/.eslintignore +4 -0
  2. package/.eslintrc +40 -0
  3. package/.prettierrc +9 -0
  4. package/LICENSE +21 -0
  5. package/README.md +166 -0
  6. package/dist/electrum/constants.js +31 -0
  7. package/dist/electrum/constants.js.map +1 -0
  8. package/dist/electrum/index.js +552 -0
  9. package/dist/electrum/index.js.map +1 -0
  10. package/dist/index.js +23 -0
  11. package/dist/index.js.map +1 -0
  12. package/dist/shapes/electrum.js +14 -0
  13. package/dist/shapes/electrum.js.map +1 -0
  14. package/dist/shapes/index.js +19 -0
  15. package/dist/shapes/index.js.map +1 -0
  16. package/dist/shapes/wallet.js +115 -0
  17. package/dist/shapes/wallet.js.map +1 -0
  18. package/dist/transaction/index.js +692 -0
  19. package/dist/transaction/index.js.map +1 -0
  20. package/dist/types/electrum/constants.d.ts +7 -0
  21. package/dist/types/electrum/index.d.ts +85 -0
  22. package/dist/types/electrum.js +9 -0
  23. package/dist/types/electrum.js.map +1 -0
  24. package/dist/types/index.d.ts +6 -0
  25. package/dist/types/index.js +20 -0
  26. package/dist/types/index.js.map +1 -0
  27. package/dist/types/shapes/electrum.d.ts +5 -0
  28. package/dist/types/shapes/index.d.ts +2 -0
  29. package/dist/types/shapes/wallet.d.ts +10 -0
  30. package/dist/types/transaction/index.d.ts +92 -0
  31. package/dist/types/transaction.js +12 -0
  32. package/dist/types/transaction.js.map +1 -0
  33. package/dist/types/types/electrum.d.ts +113 -0
  34. package/dist/types/types/index.d.ts +3 -0
  35. package/dist/types/types/transaction.d.ts +51 -0
  36. package/dist/types/types/wallet.d.ts +400 -0
  37. package/dist/types/utils/conversion.d.ts +10 -0
  38. package/dist/types/utils/derivation-path.d.ts +19 -0
  39. package/dist/types/utils/electrum.d.ts +10 -0
  40. package/dist/types/utils/exchange-rate.d.ts +30 -0
  41. package/dist/types/utils/helpers.d.ts +23 -0
  42. package/dist/types/utils/index.d.ts +7 -0
  43. package/dist/types/utils/result.d.ts +16 -0
  44. package/dist/types/utils/transaction.d.ts +21 -0
  45. package/dist/types/utils/wallet.d.ts +47 -0
  46. package/dist/types/wallet/constants.d.ts +12 -0
  47. package/dist/types/wallet/index.d.ts +214 -0
  48. package/dist/types/wallet.js +36 -0
  49. package/dist/types/wallet.js.map +1 -0
  50. package/dist/utils/conversion.js +52 -0
  51. package/dist/utils/conversion.js.map +1 -0
  52. package/dist/utils/derivation-path.js +104 -0
  53. package/dist/utils/derivation-path.js.map +1 -0
  54. package/dist/utils/electrum.js +149 -0
  55. package/dist/utils/electrum.js.map +1 -0
  56. package/dist/utils/exchange-rate.js +49 -0
  57. package/dist/utils/exchange-rate.js.map +1 -0
  58. package/dist/utils/helpers.js +137 -0
  59. package/dist/utils/helpers.js.map +1 -0
  60. package/dist/utils/index.js +24 -0
  61. package/dist/utils/index.js.map +1 -0
  62. package/dist/utils/result.js +36 -0
  63. package/dist/utils/result.js.map +1 -0
  64. package/dist/utils/transaction.js +327 -0
  65. package/dist/utils/transaction.js.map +1 -0
  66. package/dist/utils/wallet.js +227 -0
  67. package/dist/utils/wallet.js.map +1 -0
  68. package/dist/wallet/constants.js +15 -0
  69. package/dist/wallet/constants.js.map +1 -0
  70. package/dist/wallet/index.js +2113 -0
  71. package/dist/wallet/index.js.map +1 -0
  72. package/docs/html/.nojekyll +1 -0
  73. package/docs/html/assets/highlight.css +22 -0
  74. package/docs/html/assets/main.js +58 -0
  75. package/docs/html/assets/search.js +1 -0
  76. package/docs/html/assets/style.css +1367 -0
  77. package/docs/html/classes/Electrum.html +812 -0
  78. package/docs/html/classes/Transaction.html +687 -0
  79. package/docs/html/classes/Wallet.html +2030 -0
  80. package/docs/html/enums/EAddressType.html +227 -0
  81. package/docs/html/enums/EAvailableNetworks.html +255 -0
  82. package/docs/html/enums/EBoostType.html +220 -0
  83. package/docs/html/enums/EFeeId.html +241 -0
  84. package/docs/html/enums/EPaymentType.html +220 -0
  85. package/docs/html/enums/EProtocol.html +220 -0
  86. package/docs/html/enums/EUnit.html +227 -0
  87. package/docs/html/functions/availableNetworks.html +200 -0
  88. package/docs/html/functions/constructByteCountParam.html +210 -0
  89. package/docs/html/functions/decodeOpReturnMessage.html +202 -0
  90. package/docs/html/functions/decodeRawTransaction.html +210 -0
  91. package/docs/html/functions/err.html +214 -0
  92. package/docs/html/functions/formatKeyDerivationPath.html +219 -0
  93. package/docs/html/functions/formatPeerData.html +207 -0
  94. package/docs/html/functions/generateMnemonic.html +223 -0
  95. package/docs/html/functions/generateWalletId.html +202 -0
  96. package/docs/html/functions/getAddressFromScriptPubKey.html +209 -0
  97. package/docs/html/functions/getAddressTypeFromPath.html +206 -0
  98. package/docs/html/functions/getByteCount.html +206 -0
  99. package/docs/html/functions/getDataFallback.html +207 -0
  100. package/docs/html/functions/getDefaultPort.html +209 -0
  101. package/docs/html/functions/getDefaultWalletData.html +200 -0
  102. package/docs/html/functions/getDefaultWalletDataKeys.html +200 -0
  103. package/docs/html/functions/getExchangeRates.html +200 -0
  104. package/docs/html/functions/getHighestUsedIndexFromTxHashes.html +216 -0
  105. package/docs/html/functions/getKeyDerivationPath.html +211 -0
  106. package/docs/html/functions/getKeyDerivationPathObject.html +216 -0
  107. package/docs/html/functions/getKeyDerivationPathString.html +220 -0
  108. package/docs/html/functions/getKeyValue.html +206 -0
  109. package/docs/html/functions/getPeers.html +211 -0
  110. package/docs/html/functions/getProtocolForPort.html +209 -0
  111. package/docs/html/functions/getScriptHash.html +210 -0
  112. package/docs/html/functions/getSeed.html +209 -0
  113. package/docs/html/functions/getSeedHash.html +206 -0
  114. package/docs/html/functions/getSha256.html +206 -0
  115. package/docs/html/functions/getStorageKeyValues.html +209 -0
  116. package/docs/html/functions/getTxFee.html +210 -0
  117. package/docs/html/functions/getWalletDataStorageKey.html +206 -0
  118. package/docs/html/functions/isValidBech32mEncodedString.html +211 -0
  119. package/docs/html/functions/objectKeys-1.html +211 -0
  120. package/docs/html/functions/objectsMatch.html +210 -0
  121. package/docs/html/functions/ok.html +214 -0
  122. package/docs/html/functions/parseOnChainPaymentRequest.html +204 -0
  123. package/docs/html/functions/reduceValue.html +215 -0
  124. package/docs/html/functions/removeDustOutputs.html +206 -0
  125. package/docs/html/functions/setReplaceByFee.html +210 -0
  126. package/docs/html/functions/shuffleArray.html +211 -0
  127. package/docs/html/functions/validateAddress.html +216 -0
  128. package/docs/html/functions/validateMnemonic.html +206 -0
  129. package/docs/html/functions/validateTransaction.html +206 -0
  130. package/docs/html/index.html +360 -0
  131. package/docs/html/interfaces/IAddInput.html +231 -0
  132. package/docs/html/interfaces/IAddress.html +247 -0
  133. package/docs/html/interfaces/IAddressData.html +231 -0
  134. package/docs/html/interfaces/IAddressType.html +199 -0
  135. package/docs/html/interfaces/IAddressTypeData.html +252 -0
  136. package/docs/html/interfaces/IAddresses.html +199 -0
  137. package/docs/html/interfaces/IBoostedTransaction.html +238 -0
  138. package/docs/html/interfaces/IBoostedTransactions.html +199 -0
  139. package/docs/html/interfaces/ICreateTransaction.html +224 -0
  140. package/docs/html/interfaces/ICustomGetAddress.html +231 -0
  141. package/docs/html/interfaces/ICustomGetScriptHash.html +224 -0
  142. package/docs/html/interfaces/IElectrumGetAddressBalanceRes.html +235 -0
  143. package/docs/html/interfaces/IExchangeRates.html +210 -0
  144. package/docs/html/interfaces/IFormattedPeerData.html +245 -0
  145. package/docs/html/interfaces/IFormattedTransaction.html +343 -0
  146. package/docs/html/interfaces/IFormattedTransactions.html +199 -0
  147. package/docs/html/interfaces/IGenerateAddresses.html +252 -0
  148. package/docs/html/interfaces/IGenerateAddressesResponse.html +224 -0
  149. package/docs/html/interfaces/IGetAddress.html +231 -0
  150. package/docs/html/interfaces/IGetAddressBalanceRes.html +226 -0
  151. package/docs/html/interfaces/IGetAddressByPath.html +224 -0
  152. package/docs/html/interfaces/IGetAddressHistoryResponse.html +269 -0
  153. package/docs/html/interfaces/IGetAddressResponse.html +231 -0
  154. package/docs/html/interfaces/IGetAddressScriptHashesHistoryResponse.html +245 -0
  155. package/docs/html/interfaces/IGetDerivationPath.html +259 -0
  156. package/docs/html/interfaces/IGetFeeEstimatesResponse.html +238 -0
  157. package/docs/html/interfaces/IGetHeaderResponse.html +245 -0
  158. package/docs/html/interfaces/IGetNextAvailableAddressResponse.html +238 -0
  159. package/docs/html/interfaces/IGetTransactions.html +245 -0
  160. package/docs/html/interfaces/IGetTransactionsFromInputs.html +245 -0
  161. package/docs/html/interfaces/IGetUtxosResponse.html +224 -0
  162. package/docs/html/interfaces/IHeader.html +231 -0
  163. package/docs/html/interfaces/IIndexes.html +238 -0
  164. package/docs/html/interfaces/IKeyDerivationPath.html +247 -0
  165. package/docs/html/interfaces/IKeyDerivationPathData.html +224 -0
  166. package/docs/html/interfaces/INewBlock.html +224 -0
  167. package/docs/html/interfaces/IOnchainFees.html +245 -0
  168. package/docs/html/interfaces/IOutput.html +231 -0
  169. package/docs/html/interfaces/IPeerData.html +231 -0
  170. package/docs/html/interfaces/IRbfData.html +252 -0
  171. package/docs/html/interfaces/ISend.html +224 -0
  172. package/docs/html/interfaces/ISendTransaction.html +322 -0
  173. package/docs/html/interfaces/ISendTx.html +231 -0
  174. package/docs/html/interfaces/ISetupTransaction.html +238 -0
  175. package/docs/html/interfaces/ISubscribeToAddress.html +247 -0
  176. package/docs/html/interfaces/ISubscribeToHeader.html +245 -0
  177. package/docs/html/interfaces/ITargets.html +238 -0
  178. package/docs/html/interfaces/ITransaction.html +281 -0
  179. package/docs/html/interfaces/ITxHash.html +217 -0
  180. package/docs/html/interfaces/ITxHashes.html +235 -0
  181. package/docs/html/interfaces/IUtxo.html +275 -0
  182. package/docs/html/interfaces/IVin.html +252 -0
  183. package/docs/html/interfaces/IVout.html +246 -0
  184. package/docs/html/interfaces/IWallet.html +350 -0
  185. package/docs/html/interfaces/IWalletData.html +343 -0
  186. package/docs/html/types/ElectrumConnectionPubSub.html +233 -0
  187. package/docs/html/types/ElectrumConnectionSubscription.html +204 -0
  188. package/docs/html/types/InputData.html +203 -0
  189. package/docs/html/types/ObjectKeys.html +198 -0
  190. package/docs/html/types/Result.html +201 -0
  191. package/docs/html/types/TAddressIndexInfo.html +204 -0
  192. package/docs/html/types/TAddressLabel.html +193 -0
  193. package/docs/html/types/TAddressType.html +193 -0
  194. package/docs/html/types/TAddressTypeContent.html +198 -0
  195. package/docs/html/types/TAddressTypes.html +193 -0
  196. package/docs/html/types/TAvailableNetworks.html +193 -0
  197. package/docs/html/types/TConnectToElectrumRes.html +193 -0
  198. package/docs/html/types/TDecodeRawTx.html +214 -0
  199. package/docs/html/types/TElectrumNetworks.html +193 -0
  200. package/docs/html/types/TGetAddressHistory.html +200 -0
  201. package/docs/html/types/TGetByteCountInput.html +193 -0
  202. package/docs/html/types/TGetByteCountInputs.html +193 -0
  203. package/docs/html/types/TGetByteCountOutput.html +193 -0
  204. package/docs/html/types/TGetByteCountOutputs.html +193 -0
  205. package/docs/html/types/TGetData.html +211 -0
  206. package/docs/html/types/TGetTotalFeeObj.html +204 -0
  207. package/docs/html/types/TKeyDerivationAccount.html +193 -0
  208. package/docs/html/types/TKeyDerivationChange.html +193 -0
  209. package/docs/html/types/TKeyDerivationCoinType.html +193 -0
  210. package/docs/html/types/TKeyDerivationIndex.html +193 -0
  211. package/docs/html/types/TKeyDerivationPurpose.html +193 -0
  212. package/docs/html/types/TMessageDataMap.html +210 -0
  213. package/docs/html/types/TMessageKeys.html +193 -0
  214. package/docs/html/types/TOnMessage.html +213 -0
  215. package/docs/html/types/TProcessUnconfirmedTransactions.html +202 -0
  216. package/docs/html/types/TProtocol.html +193 -0
  217. package/docs/html/types/TServer.html +204 -0
  218. package/docs/html/types/TSetData.html +213 -0
  219. package/docs/html/types/TSetupTransactionResponse.html +193 -0
  220. package/docs/html/types/TStorage.html +200 -0
  221. package/docs/html/types/TSubscribedReceive.html +193 -0
  222. package/docs/html/types/TTransactionMessage.html +198 -0
  223. package/docs/html/types/TTxResponse.html +206 -0
  224. package/docs/html/types/TTxResult.html +200 -0
  225. package/docs/html/types/TUnspentAddressScriptHashData.html +198 -0
  226. package/docs/html/types/TWalletDataKeys.html +193 -0
  227. package/docs/html/variables/defaultElectrumPorts.html +193 -0
  228. package/docs/html/variables/electrumConnection.html +199 -0
  229. package/docs/html/variables/mostUsedExchangeTickers.html +241 -0
  230. package/docs/markdown/.nojekyll +1 -0
  231. package/docs/markdown/README.md +1875 -0
  232. package/docs/markdown/classes/Electrum.md +718 -0
  233. package/docs/markdown/classes/Transaction.md +536 -0
  234. package/docs/markdown/classes/Wallet.md +2189 -0
  235. package/docs/markdown/enums/EAddressType.md +41 -0
  236. package/docs/markdown/enums/EAvailableNetworks.md +85 -0
  237. package/docs/markdown/enums/EBoostType.md +30 -0
  238. package/docs/markdown/enums/EFeeId.md +63 -0
  239. package/docs/markdown/enums/EPaymentType.md +30 -0
  240. package/docs/markdown/enums/EProtocol.md +30 -0
  241. package/docs/markdown/enums/EUnit.md +41 -0
  242. package/docs/markdown/interfaces/IAddInput.md +41 -0
  243. package/docs/markdown/interfaces/IAddress.md +69 -0
  244. package/docs/markdown/interfaces/IAddressData.md +41 -0
  245. package/docs/markdown/interfaces/IAddressType.md +7 -0
  246. package/docs/markdown/interfaces/IAddressTypeData.md +74 -0
  247. package/docs/markdown/interfaces/IAddresses.md +7 -0
  248. package/docs/markdown/interfaces/IBoostedTransaction.md +52 -0
  249. package/docs/markdown/interfaces/IBoostedTransactions.md +7 -0
  250. package/docs/markdown/interfaces/ICreateTransaction.md +30 -0
  251. package/docs/markdown/interfaces/ICustomGetAddress.md +41 -0
  252. package/docs/markdown/interfaces/ICustomGetScriptHash.md +30 -0
  253. package/docs/markdown/interfaces/IElectrumGetAddressBalanceRes.md +55 -0
  254. package/docs/markdown/interfaces/IExchangeRates.md +7 -0
  255. package/docs/markdown/interfaces/IFormattedPeerData.md +63 -0
  256. package/docs/markdown/interfaces/IFormattedTransaction.md +217 -0
  257. package/docs/markdown/interfaces/IFormattedTransactions.md +7 -0
  258. package/docs/markdown/interfaces/IGenerateAddresses.md +74 -0
  259. package/docs/markdown/interfaces/IGenerateAddressesResponse.md +30 -0
  260. package/docs/markdown/interfaces/IGetAddress.md +41 -0
  261. package/docs/markdown/interfaces/IGetAddressBalanceRes.md +36 -0
  262. package/docs/markdown/interfaces/IGetAddressByPath.md +30 -0
  263. package/docs/markdown/interfaces/IGetAddressHistoryResponse.md +121 -0
  264. package/docs/markdown/interfaces/IGetAddressResponse.md +41 -0
  265. package/docs/markdown/interfaces/IGetAddressScriptHashesHistoryResponse.md +63 -0
  266. package/docs/markdown/interfaces/IGetDerivationPath.md +100 -0
  267. package/docs/markdown/interfaces/IGetFeeEstimatesResponse.md +52 -0
  268. package/docs/markdown/interfaces/IGetHeaderResponse.md +63 -0
  269. package/docs/markdown/interfaces/IGetNextAvailableAddressResponse.md +52 -0
  270. package/docs/markdown/interfaces/IGetTransactions.md +63 -0
  271. package/docs/markdown/interfaces/IGetTransactionsFromInputs.md +63 -0
  272. package/docs/markdown/interfaces/IGetUtxosResponse.md +30 -0
  273. package/docs/markdown/interfaces/IHeader.md +41 -0
  274. package/docs/markdown/interfaces/IIndexes.md +52 -0
  275. package/docs/markdown/interfaces/IKeyDerivationPath.md +69 -0
  276. package/docs/markdown/interfaces/IKeyDerivationPathData.md +30 -0
  277. package/docs/markdown/interfaces/INewBlock.md +30 -0
  278. package/docs/markdown/interfaces/IOnchainFees.md +63 -0
  279. package/docs/markdown/interfaces/IOutput.md +41 -0
  280. package/docs/markdown/interfaces/IPeerData.md +41 -0
  281. package/docs/markdown/interfaces/IRbfData.md +74 -0
  282. package/docs/markdown/interfaces/ISend.md +30 -0
  283. package/docs/markdown/interfaces/ISendTransaction.md +184 -0
  284. package/docs/markdown/interfaces/ISendTx.md +41 -0
  285. package/docs/markdown/interfaces/ISetupTransaction.md +52 -0
  286. package/docs/markdown/interfaces/ISubscribeToAddress.md +60 -0
  287. package/docs/markdown/interfaces/ISubscribeToHeader.md +59 -0
  288. package/docs/markdown/interfaces/ITargets.md +52 -0
  289. package/docs/markdown/interfaces/ITransaction.md +88 -0
  290. package/docs/markdown/interfaces/ITxHash.md +19 -0
  291. package/docs/markdown/interfaces/ITxHashes.md +55 -0
  292. package/docs/markdown/interfaces/IUtxo.md +112 -0
  293. package/docs/markdown/interfaces/IVin.md +70 -0
  294. package/docs/markdown/interfaces/IVout.md +52 -0
  295. package/docs/markdown/interfaces/IWallet.md +209 -0
  296. package/docs/markdown/interfaces/IWalletData.md +217 -0
  297. package/example/helpers.ts +76 -0
  298. package/example/index.ts +77 -0
  299. package/package.json +69 -0
  300. package/src/electrum/constants.ts +28 -0
  301. package/src/electrum/index.ts +838 -0
  302. package/src/index.ts +6 -0
  303. package/src/shapes/electrum.ts +13 -0
  304. package/src/shapes/index.ts +2 -0
  305. package/src/shapes/wallet.ts +133 -0
  306. package/src/transaction/index.ts +1078 -0
  307. package/src/types/electrum.ts +139 -0
  308. package/src/types/index.ts +3 -0
  309. package/src/types/transaction.ts +58 -0
  310. package/src/types/wallet.ts +503 -0
  311. package/src/utils/conversion.ts +88 -0
  312. package/src/utils/derivation-path.ts +171 -0
  313. package/src/utils/electrum.ts +188 -0
  314. package/src/utils/exchange-rate.ts +70 -0
  315. package/src/utils/helpers.ts +191 -0
  316. package/src/utils/index.ts +7 -0
  317. package/src/utils/result.ts +79 -0
  318. package/src/utils/transaction.ts +417 -0
  319. package/src/utils/wallet.ts +351 -0
  320. package/src/wallet/constants.ts +24 -0
  321. package/src/wallet/index.ts +3304 -0
  322. package/tests/constants.ts +9 -0
  323. package/tests/derivation.test.ts +146 -0
  324. package/tests/electrum.test.ts +137 -0
  325. package/tests/storage.test.ts +222 -0
  326. package/tests/transaction.test.ts +187 -0
  327. package/tests/wallet.test.ts +307 -0
  328. package/tsconfig.json +32 -0
  329. package/typedoc.json +5 -0
@@ -0,0 +1,2189 @@
1
+ [beignet](../README.md) / Wallet
2
+
3
+ # Class: Wallet
4
+
5
+ ## Table of contents
6
+
7
+ ### Constructors
8
+
9
+ - [constructor](Wallet.md#constructor)
10
+
11
+ ### Properties
12
+
13
+ - [\_customGetAddress](Wallet.md#_customgetaddress)
14
+ - [\_customGetScriptHash](Wallet.md#_customgetscripthash)
15
+ - [\_data](Wallet.md#_data)
16
+ - [\_getData](Wallet.md#_getdata)
17
+ - [\_mnemonic](Wallet.md#_mnemonic)
18
+ - [\_network](Wallet.md#_network)
19
+ - [\_passphrase](Wallet.md#_passphrase)
20
+ - [\_root](Wallet.md#_root)
21
+ - [\_seed](Wallet.md#_seed)
22
+ - [\_setData](Wallet.md#_setdata)
23
+ - [electrum](Wallet.md#electrum)
24
+ - [electrumOptions](Wallet.md#electrumoptions)
25
+ - [exchangeRates](Wallet.md#exchangerates)
26
+ - [feeEstimates](Wallet.md#feeestimates)
27
+ - [id](Wallet.md#id)
28
+ - [isSwitchingNetworks](Wallet.md#isswitchingnetworks)
29
+ - [name](Wallet.md#name)
30
+ - [onMessage](Wallet.md#onmessage)
31
+ - [rbf](Wallet.md#rbf)
32
+ - [selectedFeeId](Wallet.md#selectedfeeid)
33
+ - [transaction](Wallet.md#transaction)
34
+
35
+ ### Accessors
36
+
37
+ - [data](Wallet.md#data)
38
+ - [network](Wallet.md#network)
39
+
40
+ ### Methods
41
+
42
+ - [\_getAddress](Wallet.md#_getaddress)
43
+ - [addAddresses](Wallet.md#addaddresses)
44
+ - [addBoostedTransaction](Wallet.md#addboostedtransaction)
45
+ - [addGhostTransaction](Wallet.md#addghosttransaction)
46
+ - [addTxInput](Wallet.md#addtxinput)
47
+ - [addTxTag](Wallet.md#addtxtag)
48
+ - [addUnconfirmedTransactions](Wallet.md#addunconfirmedtransactions)
49
+ - [blockHeightToConfirmations](Wallet.md#blockheighttoconfirmations)
50
+ - [checkElectrumConnection](Wallet.md#checkelectrumconnection)
51
+ - [checkUnconfirmedTransactions](Wallet.md#checkunconfirmedtransactions)
52
+ - [clearAddresses](Wallet.md#clearaddresses)
53
+ - [clearTransactions](Wallet.md#cleartransactions)
54
+ - [clearUtxos](Wallet.md#clearutxos)
55
+ - [confirmationsToBlockHeight](Wallet.md#confirmationstoblockheight)
56
+ - [connectToElectrum](Wallet.md#connecttoelectrum)
57
+ - [deleteOnChainTransactionById](Wallet.md#deleteonchaintransactionbyid)
58
+ - [formatTransactions](Wallet.md#formattransactions)
59
+ - [generateAddresses](Wallet.md#generateaddresses)
60
+ - [generateNewReceiveAddress](Wallet.md#generatenewreceiveaddress)
61
+ - [getAddress](Wallet.md#getaddress)
62
+ - [getAddressBalance](Wallet.md#getaddressbalance)
63
+ - [getAddressByPath](Wallet.md#getaddressbypath)
64
+ - [getAddressFromScriptHash](Wallet.md#getaddressfromscripthash)
65
+ - [getAddressIndexInfo](Wallet.md#getaddressindexinfo)
66
+ - [getAddressesBalance](Wallet.md#getaddressesbalance)
67
+ - [getBalance](Wallet.md#getbalance)
68
+ - [getBip32Interface](Wallet.md#getbip32interface)
69
+ - [getBitcoinNetwork](Wallet.md#getbitcoinnetwork)
70
+ - [getBoostableTransactions](Wallet.md#getboostabletransactions)
71
+ - [getBoostedTransactionParents](Wallet.md#getboostedtransactionparents)
72
+ - [getBoostedTransactions](Wallet.md#getboostedtransactions)
73
+ - [getChangeAddress](Wallet.md#getchangeaddress)
74
+ - [getExchangeRate](Wallet.md#getexchangerate)
75
+ - [getFeeEstimates](Wallet.md#getfeeestimates)
76
+ - [getFeeInfo](Wallet.md#getfeeinfo)
77
+ - [getGapLimit](Wallet.md#getgaplimit)
78
+ - [getHighestStoredAddressIndex](Wallet.md#gethigheststoredaddressindex)
79
+ - [getInputData](Wallet.md#getinputdata)
80
+ - [getNextAvailableAddress](Wallet.md#getnextavailableaddress)
81
+ - [getPrivateKey](Wallet.md#getprivatekey)
82
+ - [getRbfData](Wallet.md#getrbfdata)
83
+ - [getReceiveAddress](Wallet.md#getreceiveaddress)
84
+ - [getScriptHash](Wallet.md#getscripthash)
85
+ - [getScriptHashBalance](Wallet.md#getscripthashbalance)
86
+ - [getUnconfirmedTransactions](Wallet.md#getunconfirmedtransactions)
87
+ - [getUtxos](Wallet.md#getutxos)
88
+ - [getWalletData](Wallet.md#getwalletdata)
89
+ - [getWalletDataKey](Wallet.md#getwalletdatakey)
90
+ - [isValid](Wallet.md#isvalid)
91
+ - [listUtxos](Wallet.md#listutxos)
92
+ - [processUnconfirmedTransactions](Wallet.md#processunconfirmedtransactions)
93
+ - [refreshWallet](Wallet.md#refreshwallet)
94
+ - [removeDuplicateAddresses](Wallet.md#removeduplicateaddresses)
95
+ - [removeTxInput](Wallet.md#removetxinput)
96
+ - [removeTxTag](Wallet.md#removetxtag)
97
+ - [rescanAddresses](Wallet.md#rescanaddresses)
98
+ - [resetAddressIndexes](Wallet.md#resetaddressindexes)
99
+ - [resetSendTransaction](Wallet.md#resetsendtransaction)
100
+ - [saveWalletData](Wallet.md#savewalletdata)
101
+ - [send](Wallet.md#send)
102
+ - [sendMany](Wallet.md#sendmany)
103
+ - [setWalletData](Wallet.md#setwalletdata)
104
+ - [setZeroIndexAddresses](Wallet.md#setzeroindexaddresses)
105
+ - [setupFeeForOnChainTransaction](Wallet.md#setupfeeforonchaintransaction)
106
+ - [setupTransaction](Wallet.md#setuptransaction)
107
+ - [storageIdCheck](Wallet.md#storageidcheck)
108
+ - [switchNetwork](Wallet.md#switchnetwork)
109
+ - [updateAddressIndex](Wallet.md#updateaddressindex)
110
+ - [updateAddressIndexes](Wallet.md#updateaddressindexes)
111
+ - [updateAddressType](Wallet.md#updateaddresstype)
112
+ - [updateAndSaveWalletData](Wallet.md#updateandsavewalletdata)
113
+ - [updateExchangeRates](Wallet.md#updateexchangerates)
114
+ - [updateFeeEstimates](Wallet.md#updatefeeestimates)
115
+ - [updateGhostTransactions](Wallet.md#updateghosttransactions)
116
+ - [updateHeader](Wallet.md#updateheader)
117
+ - [updateTransactionHeights](Wallet.md#updatetransactionheights)
118
+ - [updateTransactions](Wallet.md#updatetransactions)
119
+ - [updateWalletBalance](Wallet.md#updatewalletbalance)
120
+ - [validateAddress](Wallet.md#validateaddress)
121
+ - [create](Wallet.md#create)
122
+
123
+ ## Constructors
124
+
125
+ ### constructor
126
+
127
+ • `Private` **new Wallet**(`«destructured»`)
128
+
129
+ #### Parameters
130
+
131
+ | Name | Type |
132
+ | :------ | :------ |
133
+ | `«destructured»` | [`IWallet`](../interfaces/IWallet.md) |
134
+
135
+ #### Defined in
136
+
137
+ [wallet/index.ts:129](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L129)
138
+
139
+ ## Properties
140
+
141
+ ### \_customGetAddress
142
+
143
+ • `Private` `Optional` **\_customGetAddress**: (`data`: [`ICustomGetAddress`](../interfaces/ICustomGetAddress.md)) => `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
144
+
145
+ #### Type declaration
146
+
147
+ ▸ (`data`): `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
148
+
149
+ ##### Parameters
150
+
151
+ | Name | Type |
152
+ | :------ | :------ |
153
+ | `data` | [`ICustomGetAddress`](../interfaces/ICustomGetAddress.md) |
154
+
155
+ ##### Returns
156
+
157
+ `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
158
+
159
+ #### Defined in
160
+
161
+ [wallet/index.ts:107](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L107)
162
+
163
+ ___
164
+
165
+ ### \_customGetScriptHash
166
+
167
+ • `Private` `Optional` **\_customGetScriptHash**: (`data`: [`ICustomGetScriptHash`](../interfaces/ICustomGetScriptHash.md)) => `Promise`\<`string`\>
168
+
169
+ #### Type declaration
170
+
171
+ ▸ (`data`): `Promise`\<`string`\>
172
+
173
+ ##### Parameters
174
+
175
+ | Name | Type |
176
+ | :------ | :------ |
177
+ | `data` | [`ICustomGetScriptHash`](../interfaces/ICustomGetScriptHash.md) |
178
+
179
+ ##### Returns
180
+
181
+ `Promise`\<`string`\>
182
+
183
+ #### Defined in
184
+
185
+ [wallet/index.ts:110](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L110)
186
+
187
+ ___
188
+
189
+ ### \_data
190
+
191
+ • `Private` **\_data**: [`IWalletData`](../interfaces/IWalletData.md)
192
+
193
+ #### Defined in
194
+
195
+ [wallet/index.ts:104](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L104)
196
+
197
+ ___
198
+
199
+ ### \_getData
200
+
201
+ • `Private` **\_getData**: [`TGetData`](../README.md#tgetdata)
202
+
203
+ #### Defined in
204
+
205
+ [wallet/index.ts:105](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L105)
206
+
207
+ ___
208
+
209
+ ### \_mnemonic
210
+
211
+ • `Private` `Readonly` **\_mnemonic**: `string`
212
+
213
+ #### Defined in
214
+
215
+ [wallet/index.ts:100](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L100)
216
+
217
+ ___
218
+
219
+ ### \_network
220
+
221
+ • `Private` **\_network**: [`EAvailableNetworks`](../enums/EAvailableNetworks.md)
222
+
223
+ #### Defined in
224
+
225
+ [wallet/index.ts:99](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L99)
226
+
227
+ ___
228
+
229
+ ### \_passphrase
230
+
231
+ • `Private` `Readonly` **\_passphrase**: `string`
232
+
233
+ #### Defined in
234
+
235
+ [wallet/index.ts:101](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L101)
236
+
237
+ ___
238
+
239
+ ### \_root
240
+
241
+ • `Private` `Readonly` **\_root**: `BIP32Interface`
242
+
243
+ #### Defined in
244
+
245
+ [wallet/index.ts:103](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L103)
246
+
247
+ ___
248
+
249
+ ### \_seed
250
+
251
+ • `Private` `Readonly` **\_seed**: `Buffer`
252
+
253
+ #### Defined in
254
+
255
+ [wallet/index.ts:102](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L102)
256
+
257
+ ___
258
+
259
+ ### \_setData
260
+
261
+ • `Private` `Optional` **\_setData**: [`TSetData`](../README.md#tsetdata)
262
+
263
+ #### Defined in
264
+
265
+ [wallet/index.ts:106](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L106)
266
+
267
+ ___
268
+
269
+ ### electrum
270
+
271
+ • **electrum**: [`Electrum`](Electrum.md)
272
+
273
+ #### Defined in
274
+
275
+ [wallet/index.ts:122](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L122)
276
+
277
+ ___
278
+
279
+ ### electrumOptions
280
+
281
+ • `Optional` **electrumOptions**: `Object`
282
+
283
+ #### Type declaration
284
+
285
+ | Name | Type |
286
+ | :------ | :------ |
287
+ | `net?` | `Server` |
288
+ | `servers?` | [`TServer`](../README.md#tserver) \| [`TServer`](../README.md#tserver)[] |
289
+ | `tls?` | `TLSSocket` |
290
+
291
+ #### Defined in
292
+
293
+ [wallet/index.ts:117](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L117)
294
+
295
+ ___
296
+
297
+ ### exchangeRates
298
+
299
+ • **exchangeRates**: [`IExchangeRates`](../interfaces/IExchangeRates.md)
300
+
301
+ #### Defined in
302
+
303
+ [wallet/index.ts:123](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L123)
304
+
305
+ ___
306
+
307
+ ### feeEstimates
308
+
309
+ • **feeEstimates**: [`IOnchainFees`](../interfaces/IOnchainFees.md)
310
+
311
+ #### Defined in
312
+
313
+ [wallet/index.ts:126](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L126)
314
+
315
+ ___
316
+
317
+ ### id
318
+
319
+ • `Readonly` **id**: `string`
320
+
321
+ #### Defined in
322
+
323
+ [wallet/index.ts:115](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L115)
324
+
325
+ ___
326
+
327
+ ### isSwitchingNetworks
328
+
329
+ • **isSwitchingNetworks**: `boolean`
330
+
331
+ #### Defined in
332
+
333
+ [wallet/index.ts:114](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L114)
334
+
335
+ ___
336
+
337
+ ### name
338
+
339
+ • `Readonly` **name**: `string`
340
+
341
+ #### Defined in
342
+
343
+ [wallet/index.ts:116](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L116)
344
+
345
+ ___
346
+
347
+ ### onMessage
348
+
349
+ • `Optional` **onMessage**: [`TOnMessage`](../README.md#tonmessage)
350
+
351
+ #### Defined in
352
+
353
+ [wallet/index.ts:124](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L124)
354
+
355
+ ___
356
+
357
+ ### rbf
358
+
359
+ • **rbf**: `boolean`
360
+
361
+ #### Defined in
362
+
363
+ [wallet/index.ts:127](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L127)
364
+
365
+ ___
366
+
367
+ ### selectedFeeId
368
+
369
+ • **selectedFeeId**: [`EFeeId`](../enums/EFeeId.md)
370
+
371
+ #### Defined in
372
+
373
+ [wallet/index.ts:128](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L128)
374
+
375
+ ___
376
+
377
+ ### transaction
378
+
379
+ • **transaction**: [`Transaction`](Transaction.md)
380
+
381
+ #### Defined in
382
+
383
+ [wallet/index.ts:125](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L125)
384
+
385
+ ## Accessors
386
+
387
+ ### data
388
+
389
+ • `get` **data**(): [`IWalletData`](../interfaces/IWalletData.md)
390
+
391
+ #### Returns
392
+
393
+ [`IWalletData`](../interfaces/IWalletData.md)
394
+
395
+ #### Defined in
396
+
397
+ [wallet/index.ts:181](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L181)
398
+
399
+ ___
400
+
401
+ ### network
402
+
403
+ • `get` **network**(): [`EAvailableNetworks`](../enums/EAvailableNetworks.md)
404
+
405
+ #### Returns
406
+
407
+ [`EAvailableNetworks`](../enums/EAvailableNetworks.md)
408
+
409
+ #### Defined in
410
+
411
+ [wallet/index.ts:185](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L185)
412
+
413
+ ## Methods
414
+
415
+ ### \_getAddress
416
+
417
+ ▸ `Private` **_getAddress**(`path`, `addressType`): `Promise`\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>
418
+
419
+ Returns the address for the specified path and address type.
420
+
421
+ #### Parameters
422
+
423
+ | Name | Type |
424
+ | :------ | :------ |
425
+ | `path` | `string` |
426
+ | `addressType` | [`EAddressType`](../enums/EAddressType.md) |
427
+
428
+ #### Returns
429
+
430
+ `Promise`\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>
431
+
432
+ #### Defined in
433
+
434
+ [wallet/index.ts:444](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L444)
435
+
436
+ ___
437
+
438
+ ### addAddresses
439
+
440
+ ▸ `Private` **addAddresses**(`«destructured»?`): `Promise`\<[`Result`](../README.md#result)\<[`IGenerateAddressesResponse`](../interfaces/IGenerateAddressesResponse.md)\>\>
441
+
442
+ This method will generate addresses as specified and return an object of filtered addresses to ensure no duplicates are returned.
443
+
444
+ #### Parameters
445
+
446
+ | Name | Type |
447
+ | :------ | :------ |
448
+ | `«destructured»` | [`IGenerateAddresses`](../interfaces/IGenerateAddresses.md) |
449
+
450
+ #### Returns
451
+
452
+ `Promise`\<[`Result`](../README.md#result)\<[`IGenerateAddressesResponse`](../interfaces/IGenerateAddressesResponse.md)\>\>
453
+
454
+ **`Async`**
455
+
456
+ #### Defined in
457
+
458
+ [wallet/index.ts:1171](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1171)
459
+
460
+ ___
461
+
462
+ ### addBoostedTransaction
463
+
464
+ ▸ **addBoostedTransaction**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<[`IBoostedTransaction`](../interfaces/IBoostedTransaction.md)\>\>
465
+
466
+ Adds a boosted transaction id to the boostedTransactions object.
467
+
468
+ #### Parameters
469
+
470
+ | Name | Type |
471
+ | :------ | :------ |
472
+ | `«destructured»` | `Object` |
473
+ | › `fee` | `number` |
474
+ | › `newTxId` | `string` |
475
+ | › `oldTxId` | `string` |
476
+ | › `type?` | [`EBoostType`](../enums/EBoostType.md) |
477
+
478
+ #### Returns
479
+
480
+ `Promise`\<[`Result`](../README.md#result)\<[`IBoostedTransaction`](../interfaces/IBoostedTransaction.md)\>\>
481
+
482
+ #### Defined in
483
+
484
+ [wallet/index.ts:2960](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2960)
485
+
486
+ ___
487
+
488
+ ### addGhostTransaction
489
+
490
+ ▸ **addGhostTransaction**(`txid`): `Promise`\<`void`\>
491
+
492
+ Sets "exists" to false for a given on-chain transaction id.
493
+
494
+ #### Parameters
495
+
496
+ | Name | Type |
497
+ | :------ | :------ |
498
+ | `txid` | `Object` |
499
+ | `txid.txid` | `string` |
500
+
501
+ #### Returns
502
+
503
+ `Promise`\<`void`\>
504
+
505
+ #### Defined in
506
+
507
+ [wallet/index.ts:2945](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2945)
508
+
509
+ ___
510
+
511
+ ### addTxInput
512
+
513
+ ▸ **addTxInput**(`input`): [`Result`](../README.md#result)\<[`IUtxo`](../interfaces/IUtxo.md)[]\>
514
+
515
+ Adds a specified input to the current transaction.
516
+
517
+ #### Parameters
518
+
519
+ | Name | Type |
520
+ | :------ | :------ |
521
+ | `input` | `Object` |
522
+ | `input.input` | [`IUtxo`](../interfaces/IUtxo.md) |
523
+
524
+ #### Returns
525
+
526
+ [`Result`](../README.md#result)\<[`IUtxo`](../interfaces/IUtxo.md)[]\>
527
+
528
+ #### Defined in
529
+
530
+ [wallet/index.ts:3073](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3073)
531
+
532
+ ___
533
+
534
+ ### addTxTag
535
+
536
+ ▸ **addTxTag**(`tag`): [`Result`](../README.md#result)\<`string`\>
537
+
538
+ Adds a specified tag to the current transaction.
539
+
540
+ #### Parameters
541
+
542
+ | Name | Type |
543
+ | :------ | :------ |
544
+ | `tag` | `Object` |
545
+ | `tag.tag` | `string` |
546
+
547
+ #### Returns
548
+
549
+ [`Result`](../README.md#result)\<`string`\>
550
+
551
+ #### Defined in
552
+
553
+ [wallet/index.ts:3121](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3121)
554
+
555
+ ___
556
+
557
+ ### addUnconfirmedTransactions
558
+
559
+ ▸ `Private` **addUnconfirmedTransactions**(`transactions`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
560
+
561
+ Parses and adds unconfirmed transactions to the store.
562
+
563
+ #### Parameters
564
+
565
+ | Name | Type |
566
+ | :------ | :------ |
567
+ | `transactions` | `Object` |
568
+ | `transactions.transactions` | [`IFormattedTransactions`](../interfaces/IFormattedTransactions.md) |
569
+
570
+ #### Returns
571
+
572
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
573
+
574
+ **`Async`**
575
+
576
+ #### Defined in
577
+
578
+ [wallet/index.ts:2070](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2070)
579
+
580
+ ___
581
+
582
+ ### blockHeightToConfirmations
583
+
584
+ ▸ **blockHeightToConfirmations**(`«destructured»`): `number`
585
+
586
+ Returns the number of confirmations for a given block height.
587
+
588
+ #### Parameters
589
+
590
+ | Name | Type |
591
+ | :------ | :------ |
592
+ | `«destructured»` | `Object` |
593
+ | › `blockHeight?` | `number` |
594
+ | › `currentHeight?` | `number` |
595
+
596
+ #### Returns
597
+
598
+ `number`
599
+
600
+ #### Defined in
601
+
602
+ [wallet/index.ts:2112](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2112)
603
+
604
+ ___
605
+
606
+ ### checkElectrumConnection
607
+
608
+ ▸ **checkElectrumConnection**(): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
609
+
610
+ Ensures the connection to Electrum is still available.
611
+ Will attempt to reconnect if not initially available.
612
+
613
+ #### Returns
614
+
615
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
616
+
617
+ #### Defined in
618
+
619
+ [wallet/index.ts:809](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L809)
620
+
621
+ ___
622
+
623
+ ### checkUnconfirmedTransactions
624
+
625
+ ▸ `Private` **checkUnconfirmedTransactions**(): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
626
+
627
+ Checks existing unconfirmed transactions that have been received and removes any that have >= 6 confirmations.
628
+ If the tx is reorg'd or bumped from the mempool and no longer exists, the transaction
629
+ will be removed from the store and updated in the activity list.
630
+
631
+ #### Returns
632
+
633
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
634
+
635
+ **`Async`**
636
+
637
+ #### Defined in
638
+
639
+ [wallet/index.ts:1773](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1773)
640
+
641
+ ___
642
+
643
+ ### clearAddresses
644
+
645
+ ▸ `Private` **clearAddresses**(): `Promise`\<`string`\>
646
+
647
+ Clears the addresses and changeAddresses object for a given wallet and network.
648
+
649
+ #### Returns
650
+
651
+ `Promise`\<`string`\>
652
+
653
+ **`Async`**
654
+
655
+ #### Defined in
656
+
657
+ [wallet/index.ts:2030](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2030)
658
+
659
+ ___
660
+
661
+ ### clearTransactions
662
+
663
+ ▸ `Private` **clearTransactions**(): `Promise`\<`string`\>
664
+
665
+ Clears the transactions object for a given wallet and network from storage.
666
+
667
+ #### Returns
668
+
669
+ `Promise`\<`string`\>
670
+
671
+ #### Defined in
672
+
673
+ [wallet/index.ts:2018](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2018)
674
+
675
+ ___
676
+
677
+ ### clearUtxos
678
+
679
+ ▸ `Private` **clearUtxos**(): `Promise`\<`string`\>
680
+
681
+ Clears the UTXO array and balance from storage.
682
+
683
+ #### Returns
684
+
685
+ `Promise`\<`string`\>
686
+
687
+ **`Async`**
688
+
689
+ #### Defined in
690
+
691
+ [wallet/index.ts:2003](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2003)
692
+
693
+ ___
694
+
695
+ ### confirmationsToBlockHeight
696
+
697
+ ▸ **confirmationsToBlockHeight**(`«destructured»`): `number`
698
+
699
+ Returns the block height for a given number of confirmations from storage.
700
+
701
+ #### Parameters
702
+
703
+ | Name | Type |
704
+ | :------ | :------ |
705
+ | `«destructured»` | `Object` |
706
+ | › `confirmations` | `number` |
707
+ | › `currentHeight?` | `number` |
708
+
709
+ #### Returns
710
+
711
+ `number`
712
+
713
+ #### Defined in
714
+
715
+ [wallet/index.ts:1898](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1898)
716
+
717
+ ___
718
+
719
+ ### connectToElectrum
720
+
721
+ ▸ **connectToElectrum**(`servers?`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
722
+
723
+ Attempts to connect to the specified Electrum server(s).
724
+
725
+ #### Parameters
726
+
727
+ | Name | Type |
728
+ | :------ | :------ |
729
+ | `servers?` | [`TServer`](../README.md#tserver) \| [`TServer`](../README.md#tserver)[] |
730
+
731
+ #### Returns
732
+
733
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
734
+
735
+ #### Defined in
736
+
737
+ [wallet/index.ts:570](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L570)
738
+
739
+ ___
740
+
741
+ ### deleteOnChainTransactionById
742
+
743
+ ▸ **deleteOnChainTransactionById**(`txid`): `Promise`\<`void`\>
744
+
745
+ Deletes a given on-chain transaction by id.
746
+
747
+ #### Parameters
748
+
749
+ | Name | Type |
750
+ | :------ | :------ |
751
+ | `txid` | `Object` |
752
+ | `txid.txid` | `string` |
753
+
754
+ #### Returns
755
+
756
+ `Promise`\<`void`\>
757
+
758
+ #### Defined in
759
+
760
+ [wallet/index.ts:2929](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2929)
761
+
762
+ ___
763
+
764
+ ### formatTransactions
765
+
766
+ ▸ **formatTransactions**(`transactions`): `Promise`\<[`Result`](../README.md#result)\<[`IFormattedTransactions`](../interfaces/IFormattedTransactions.md)\>\>
767
+
768
+ Formats the provided transaction.
769
+
770
+ #### Parameters
771
+
772
+ | Name | Type |
773
+ | :------ | :------ |
774
+ | `transactions` | `Object` |
775
+ | `transactions.transactions` | [`ITransaction`](../interfaces/ITransaction.md)\<[`IUtxo`](../interfaces/IUtxo.md)\>[] |
776
+
777
+ #### Returns
778
+
779
+ `Promise`\<[`Result`](../README.md#result)\<[`IFormattedTransactions`](../interfaces/IFormattedTransactions.md)\>\>
780
+
781
+ **`Async`**
782
+
783
+ #### Defined in
784
+
785
+ [wallet/index.ts:2138](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2138)
786
+
787
+ ___
788
+
789
+ ### generateAddresses
790
+
791
+ ▸ **generateAddresses**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<[`IGenerateAddressesResponse`](../interfaces/IGenerateAddressesResponse.md)\>\>
792
+
793
+ Generates a series of addresses based on the specified params.
794
+
795
+ #### Parameters
796
+
797
+ | Name | Type |
798
+ | :------ | :------ |
799
+ | `«destructured»` | [`IGenerateAddresses`](../interfaces/IGenerateAddresses.md) |
800
+
801
+ #### Returns
802
+
803
+ `Promise`\<[`Result`](../README.md#result)\<[`IGenerateAddressesResponse`](../interfaces/IGenerateAddressesResponse.md)\>\>
804
+
805
+ **`Async`**
806
+
807
+ #### Defined in
808
+
809
+ [wallet/index.ts:701](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L701)
810
+
811
+ ___
812
+
813
+ ### generateNewReceiveAddress
814
+
815
+ ▸ **generateNewReceiveAddress**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<[`IAddress`](../interfaces/IAddress.md)\>\>
816
+
817
+ Generate a new receive address for the provided addresstype up to the set gap limit.
818
+
819
+ #### Parameters
820
+
821
+ | Name | Type |
822
+ | :------ | :------ |
823
+ | `«destructured»` | `Object` |
824
+ | › `addressType?` | [`EAddressType`](../enums/EAddressType.md) |
825
+ | › `keyDerivationPath?` | [`IKeyDerivationPath`](../interfaces/IKeyDerivationPath.md) |
826
+
827
+ #### Returns
828
+
829
+ `Promise`\<[`Result`](../README.md#result)\<[`IAddress`](../interfaces/IAddress.md)\>\>
830
+
831
+ **`Async`**
832
+
833
+ #### Defined in
834
+
835
+ [wallet/index.ts:1455](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1455)
836
+
837
+ ___
838
+
839
+ ### getAddress
840
+
841
+ ▸ **getAddress**(`«destructured»?`): `Promise`\<`string`\>
842
+
843
+ Returns a single Bitcoin address based on the provided address type,
844
+ index and whether it is a change address.
845
+
846
+ #### Parameters
847
+
848
+ | Name | Type |
849
+ | :------ | :------ |
850
+ | `«destructured»` | [`IGetAddress`](../interfaces/IGetAddress.md) |
851
+
852
+ #### Returns
853
+
854
+ `Promise`\<`string`\>
855
+
856
+ #### Defined in
857
+
858
+ [wallet/index.ts:510](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L510)
859
+
860
+ ___
861
+
862
+ ### getAddressBalance
863
+
864
+ ▸ **getAddressBalance**(`address`): `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressBalanceRes`](../interfaces/IGetAddressBalanceRes.md)\>\>
865
+
866
+ Returns the address balance for the specified address.
867
+
868
+ #### Parameters
869
+
870
+ | Name | Type |
871
+ | :------ | :------ |
872
+ | `address` | `string` |
873
+
874
+ #### Returns
875
+
876
+ `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressBalanceRes`](../interfaces/IGetAddressBalanceRes.md)\>\>
877
+
878
+ #### Defined in
879
+
880
+ [wallet/index.ts:591](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L591)
881
+
882
+ ___
883
+
884
+ ### getAddressByPath
885
+
886
+ ▸ **getAddressByPath**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
887
+
888
+ Get address for a given keyPair, network and type.
889
+
890
+ #### Parameters
891
+
892
+ | Name | Type |
893
+ | :------ | :------ |
894
+ | `«destructured»` | [`IGetAddressByPath`](../interfaces/IGetAddressByPath.md) |
895
+
896
+ #### Returns
897
+
898
+ `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressResponse`](../interfaces/IGetAddressResponse.md)\>\>
899
+
900
+ #### Defined in
901
+
902
+ [wallet/index.ts:544](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L544)
903
+
904
+ ___
905
+
906
+ ### getAddressFromScriptHash
907
+
908
+ ▸ **getAddressFromScriptHash**(`scriptHash`): `undefined` \| [`IAddress`](../interfaces/IAddress.md)
909
+
910
+ Returns the address from a provided script hash in storage.
911
+
912
+ #### Parameters
913
+
914
+ | Name | Type |
915
+ | :------ | :------ |
916
+ | `scriptHash` | `string` |
917
+
918
+ #### Returns
919
+
920
+ `undefined` \| [`IAddress`](../interfaces/IAddress.md)
921
+
922
+ #### Defined in
923
+
924
+ [wallet/index.ts:2589](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2589)
925
+
926
+ ___
927
+
928
+ ### getAddressIndexInfo
929
+
930
+ ▸ **getAddressIndexInfo**(): [`TAddressIndexInfo`](../README.md#taddressindexinfo)
931
+
932
+ Returns current address index information.
933
+
934
+ #### Returns
935
+
936
+ [`TAddressIndexInfo`](../README.md#taddressindexinfo)
937
+
938
+ #### Defined in
939
+
940
+ [wallet/index.ts:2677](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2677)
941
+
942
+ ___
943
+
944
+ ### getAddressesBalance
945
+
946
+ ▸ **getAddressesBalance**(`addresses?`): `Promise`\<[`Result`](../README.md#result)\<`number`\>\>
947
+
948
+ Returns combined balance of provided addresses.
949
+
950
+ #### Parameters
951
+
952
+ | Name | Type | Default value |
953
+ | :------ | :------ | :------ |
954
+ | `addresses` | `string`[] | `[]` |
955
+
956
+ #### Returns
957
+
958
+ `Promise`\<[`Result`](../README.md#result)\<`number`\>\>
959
+
960
+ **`Async`**
961
+
962
+ #### Defined in
963
+
964
+ [wallet/index.ts:609](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L609)
965
+
966
+ ___
967
+
968
+ ### getBalance
969
+
970
+ ▸ **getBalance**(): `number`
971
+
972
+ Returns the known balance from storage.
973
+
974
+ #### Returns
975
+
976
+ `number`
977
+
978
+ #### Defined in
979
+
980
+ [wallet/index.ts:685](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L685)
981
+
982
+ ___
983
+
984
+ ### getBip32Interface
985
+
986
+ ▸ **getBip32Interface**(): `Promise`\<[`Result`](../README.md#result)\<`BIP32Interface`\>\>
987
+
988
+ Creates a BIP32Interface from the selected wallet's mnemonic and passphrase
989
+
990
+ #### Returns
991
+
992
+ `Promise`\<[`Result`](../README.md#result)\<`BIP32Interface`\>\>
993
+
994
+ #### Defined in
995
+
996
+ [wallet/index.ts:3061](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3061)
997
+
998
+ ___
999
+
1000
+ ### getBitcoinNetwork
1001
+
1002
+ ▸ `Private` **getBitcoinNetwork**(`network?`): `Network`
1003
+
1004
+ Returns the Network object of the currently selected network (bitcoin or testnet).
1005
+
1006
+ #### Parameters
1007
+
1008
+ | Name | Type |
1009
+ | :------ | :------ |
1010
+ | `network?` | [`TAvailableNetworks`](../README.md#tavailablenetworks) |
1011
+
1012
+ #### Returns
1013
+
1014
+ `Network`
1015
+
1016
+ #### Defined in
1017
+
1018
+ [wallet/index.ts:423](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L423)
1019
+
1020
+ ___
1021
+
1022
+ ### getBoostableTransactions
1023
+
1024
+ ▸ **getBoostableTransactions**(): `Object`
1025
+
1026
+ Returns an array of transactions that can be boosted with cpfp and rbf.
1027
+
1028
+ #### Returns
1029
+
1030
+ `Object`
1031
+
1032
+ | Name | Type |
1033
+ | :------ | :------ |
1034
+ | `cpfp` | [`IFormattedTransaction`](../interfaces/IFormattedTransaction.md)[] |
1035
+ | `rbf` | [`IFormattedTransaction`](../interfaces/IFormattedTransaction.md)[] |
1036
+
1037
+ #### Defined in
1038
+
1039
+ [wallet/index.ts:3044](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3044)
1040
+
1041
+ ___
1042
+
1043
+ ### getBoostedTransactionParents
1044
+
1045
+ ▸ **getBoostedTransactionParents**(`«destructured»`): `string`[]
1046
+
1047
+ Returns an array of parents for a boosted transaction id.
1048
+
1049
+ #### Parameters
1050
+
1051
+ | Name | Type |
1052
+ | :------ | :------ |
1053
+ | `«destructured»` | `Object` |
1054
+ | › `boostedTransactions?` | [`IBoostedTransactions`](../interfaces/IBoostedTransactions.md) |
1055
+ | › `txid` | `string` |
1056
+
1057
+ #### Returns
1058
+
1059
+ `string`[]
1060
+
1061
+ #### Defined in
1062
+
1063
+ [wallet/index.ts:3007](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3007)
1064
+
1065
+ ___
1066
+
1067
+ ### getBoostedTransactions
1068
+
1069
+ ▸ **getBoostedTransactions**(): [`IBoostedTransactions`](../interfaces/IBoostedTransactions.md)
1070
+
1071
+ Returns boosted transactions object.
1072
+
1073
+ #### Returns
1074
+
1075
+ [`IBoostedTransactions`](../interfaces/IBoostedTransactions.md)
1076
+
1077
+ #### Defined in
1078
+
1079
+ [wallet/index.ts:3028](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3028)
1080
+
1081
+ ___
1082
+
1083
+ ### getChangeAddress
1084
+
1085
+ ▸ **getChangeAddress**(`addressType?`): `Promise`\<[`Result`](../README.md#result)\<[`IAddress`](../interfaces/IAddress.md)\>\>
1086
+
1087
+ Retrieves the next available change address data.
1088
+
1089
+ #### Parameters
1090
+
1091
+ | Name | Type |
1092
+ | :------ | :------ |
1093
+ | `addressType?` | [`EAddressType`](../enums/EAddressType.md) |
1094
+
1095
+ #### Returns
1096
+
1097
+ `Promise`\<[`Result`](../README.md#result)\<[`IAddress`](../interfaces/IAddress.md)\>\>
1098
+
1099
+ **`Async`**
1100
+
1101
+ #### Defined in
1102
+
1103
+ [wallet/index.ts:2371](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2371)
1104
+
1105
+ ___
1106
+
1107
+ ### getExchangeRate
1108
+
1109
+ ▸ **getExchangeRate**(`currency?`): `number`
1110
+
1111
+ Returns exchange rate data from storage.
1112
+
1113
+ #### Parameters
1114
+
1115
+ | Name | Type | Default value |
1116
+ | :------ | :------ | :------ |
1117
+ | `currency` | `string` | `'EUR'` |
1118
+
1119
+ #### Returns
1120
+
1121
+ `number`
1122
+
1123
+ #### Defined in
1124
+
1125
+ [wallet/index.ts:2345](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2345)
1126
+
1127
+ ___
1128
+
1129
+ ### getFeeEstimates
1130
+
1131
+ ▸ **getFeeEstimates**(`network?`): `Promise`\<[`IOnchainFees`](../interfaces/IOnchainFees.md)\>
1132
+
1133
+ Returns the current fee estimates for the provided network.
1134
+
1135
+ #### Parameters
1136
+
1137
+ | Name | Type |
1138
+ | :------ | :------ |
1139
+ | `network` | [`EAvailableNetworks`](../enums/EAvailableNetworks.md) |
1140
+
1141
+ #### Returns
1142
+
1143
+ `Promise`\<[`IOnchainFees`](../interfaces/IOnchainFees.md)\>
1144
+
1145
+ **`Async`**
1146
+
1147
+ #### Defined in
1148
+
1149
+ [wallet/index.ts:2404](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2404)
1150
+
1151
+ ___
1152
+
1153
+ ### getFeeInfo
1154
+
1155
+ ▸ **getFeeInfo**(`«destructured»?`): [`Result`](../README.md#result)\<[`TGetTotalFeeObj`](../README.md#tgettotalfeeobj)\>
1156
+
1157
+ Returns a fee object for the current transaction.
1158
+
1159
+ #### Parameters
1160
+
1161
+ | Name | Type |
1162
+ | :------ | :------ |
1163
+ | `«destructured»` | `Object` |
1164
+ | › `fundingLightning?` | `boolean` |
1165
+ | › `message?` | `string` |
1166
+ | › `satsPerByte?` | `number` |
1167
+ | › `transaction?` | `Partial`\<[`ISendTransaction`](../interfaces/ISendTransaction.md)\> |
1168
+
1169
+ #### Returns
1170
+
1171
+ [`Result`](../README.md#result)\<[`TGetTotalFeeObj`](../README.md#tgettotalfeeobj)\>
1172
+
1173
+ #### Defined in
1174
+
1175
+ [wallet/index.ts:2453](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2453)
1176
+
1177
+ ___
1178
+
1179
+ ### getGapLimit
1180
+
1181
+ ▸ `Private` **getGapLimit**(`addressType?`): [`Result`](../README.md#result)\<\{ `addressDelta`: `number` ; `changeAddressDelta`: `number` }\>
1182
+
1183
+ Returns the difference between the current address index and the last used address index.
1184
+
1185
+ #### Parameters
1186
+
1187
+ | Name | Type |
1188
+ | :------ | :------ |
1189
+ | `addressType?` | `Object` |
1190
+ | `addressType.addressType?` | [`EAddressType`](../enums/EAddressType.md) |
1191
+
1192
+ #### Returns
1193
+
1194
+ [`Result`](../README.md#result)\<\{ `addressDelta`: `number` ; `changeAddressDelta`: `number` }\>
1195
+
1196
+ #### Defined in
1197
+
1198
+ [wallet/index.ts:1543](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1543)
1199
+
1200
+ ___
1201
+
1202
+ ### getHighestStoredAddressIndex
1203
+
1204
+ ▸ **getHighestStoredAddressIndex**(`addressType`): [`Result`](../README.md#result)\<\{ `addressIndex`: [`IAddress`](../interfaces/IAddress.md) ; `changeAddressIndex`: [`IAddress`](../interfaces/IAddress.md) }\>
1205
+
1206
+ Returns the highest address and change address index stored in the app for the specified wallet and network.
1207
+ Retrives the highest stored address index for the provided address type.
1208
+
1209
+ #### Parameters
1210
+
1211
+ | Name | Type |
1212
+ | :------ | :------ |
1213
+ | `addressType` | `Object` |
1214
+ | `addressType.addressType` | [`EAddressType`](../enums/EAddressType.md) |
1215
+
1216
+ #### Returns
1217
+
1218
+ [`Result`](../README.md#result)\<\{ `addressIndex`: [`IAddress`](../interfaces/IAddress.md) ; `changeAddressIndex`: [`IAddress`](../interfaces/IAddress.md) }\>
1219
+
1220
+ #### Defined in
1221
+
1222
+ [wallet/index.ts:1132](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1132)
1223
+
1224
+ ___
1225
+
1226
+ ### getInputData
1227
+
1228
+ ▸ **getInputData**(`inputs`): `Promise`\<[`Result`](../README.md#result)\<[`InputData`](../README.md#inputdata)\>\>
1229
+
1230
+ Returns formatted input data from the inputs array.
1231
+
1232
+ #### Parameters
1233
+
1234
+ | Name | Type |
1235
+ | :------ | :------ |
1236
+ | `inputs` | `Object` |
1237
+ | `inputs.inputs` | \{ `tx_hash`: `string` ; `vout`: `number` }[] |
1238
+
1239
+ #### Returns
1240
+
1241
+ `Promise`\<[`Result`](../README.md#result)\<[`InputData`](../README.md#inputdata)\>\>
1242
+
1243
+ **`Async`**
1244
+
1245
+ #### Defined in
1246
+
1247
+ [wallet/index.ts:2304](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2304)
1248
+
1249
+ ___
1250
+
1251
+ ### getNextAvailableAddress
1252
+
1253
+ ▸ **getNextAvailableAddress**(`addressType?`): `Promise`\<[`Result`](../README.md#result)\<[`IGetNextAvailableAddressResponse`](../interfaces/IGetNextAvailableAddressResponse.md)\>\>
1254
+
1255
+ Returns the next available address for the given addresstype.
1256
+
1257
+ #### Parameters
1258
+
1259
+ | Name | Type |
1260
+ | :------ | :------ |
1261
+ | `addressType?` | [`EAddressType`](../enums/EAddressType.md) |
1262
+
1263
+ #### Returns
1264
+
1265
+ `Promise`\<[`Result`](../README.md#result)\<[`IGetNextAvailableAddressResponse`](../interfaces/IGetNextAvailableAddressResponse.md)\>\>
1266
+
1267
+ #### Defined in
1268
+
1269
+ [wallet/index.ts:825](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L825)
1270
+
1271
+ ___
1272
+
1273
+ ### getPrivateKey
1274
+
1275
+ ▸ **getPrivateKey**(`path`): `string`
1276
+
1277
+ Returns private key for the provided path.
1278
+
1279
+ #### Parameters
1280
+
1281
+ | Name | Type |
1282
+ | :------ | :------ |
1283
+ | `path` | `string` |
1284
+
1285
+ #### Returns
1286
+
1287
+ `string`
1288
+
1289
+ #### Defined in
1290
+
1291
+ [wallet/index.ts:663](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L663)
1292
+
1293
+ ___
1294
+
1295
+ ### getRbfData
1296
+
1297
+ ▸ **getRbfData**(`txHash`): `Promise`\<[`Result`](../README.md#result)\<[`IRbfData`](../interfaces/IRbfData.md)\>\>
1298
+
1299
+ Using a tx_hash this method will return the necessary data to create a
1300
+ replace-by-fee transaction for any 0-conf, RBF-enabled tx.
1301
+
1302
+ #### Parameters
1303
+
1304
+ | Name | Type |
1305
+ | :------ | :------ |
1306
+ | `txHash` | `Object` |
1307
+ | `txHash.txHash` | [`ITxHash`](../interfaces/ITxHash.md) |
1308
+
1309
+ #### Returns
1310
+
1311
+ `Promise`\<[`Result`](../README.md#result)\<[`IRbfData`](../interfaces/IRbfData.md)\>\>
1312
+
1313
+ #### Defined in
1314
+
1315
+ [wallet/index.ts:2747](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2747)
1316
+
1317
+ ___
1318
+
1319
+ ### getReceiveAddress
1320
+
1321
+ ▸ **getReceiveAddress**(`addressType?`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1322
+
1323
+ Returns the next available receive address.
1324
+
1325
+ #### Parameters
1326
+
1327
+ | Name | Type |
1328
+ | :------ | :------ |
1329
+ | `addressType?` | `Object` |
1330
+ | `addressType.addressType?` | [`EAddressType`](../enums/EAddressType.md) |
1331
+
1332
+ #### Returns
1333
+
1334
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1335
+
1336
+ #### Defined in
1337
+
1338
+ [wallet/index.ts:2699](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2699)
1339
+
1340
+ ___
1341
+
1342
+ ### getScriptHash
1343
+
1344
+ ▸ **getScriptHash**(`«destructured»`): `Promise`\<`string`\>
1345
+
1346
+ Get scriptHash for a given address
1347
+
1348
+ #### Parameters
1349
+
1350
+ | Name | Type |
1351
+ | :------ | :------ |
1352
+ | `«destructured»` | `Object` |
1353
+ | › `address` | `string` |
1354
+ | › `network` | [`EAvailableNetworks`](../enums/EAvailableNetworks.md) |
1355
+
1356
+ #### Returns
1357
+
1358
+ `Promise`\<`string`\>
1359
+
1360
+ #### Defined in
1361
+
1362
+ [wallet/index.ts:644](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L644)
1363
+
1364
+ ___
1365
+
1366
+ ### getScriptHashBalance
1367
+
1368
+ ▸ **getScriptHashBalance**(`scriptHash`): `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressBalanceRes`](../interfaces/IGetAddressBalanceRes.md)\>\>
1369
+
1370
+ Returns the balance for the specified scriptHash.
1371
+
1372
+ #### Parameters
1373
+
1374
+ | Name | Type |
1375
+ | :------ | :------ |
1376
+ | `scriptHash` | `string` |
1377
+
1378
+ #### Returns
1379
+
1380
+ `Promise`\<[`Result`](../README.md#result)\<[`IGetAddressBalanceRes`](../interfaces/IGetAddressBalanceRes.md)\>\>
1381
+
1382
+ #### Defined in
1383
+
1384
+ [wallet/index.ts:673](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L673)
1385
+
1386
+ ___
1387
+
1388
+ ### getUnconfirmedTransactions
1389
+
1390
+ ▸ **getUnconfirmedTransactions**(): [`IFormattedTransactions`](../interfaces/IFormattedTransactions.md)
1391
+
1392
+ Returns the current wallet's unconfirmed transactions from storage.
1393
+
1394
+ #### Returns
1395
+
1396
+ [`IFormattedTransactions`](../interfaces/IFormattedTransactions.md)
1397
+
1398
+ #### Defined in
1399
+
1400
+ [wallet/index.ts:1886](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1886)
1401
+
1402
+ ___
1403
+
1404
+ ### getUtxos
1405
+
1406
+ ▸ **getUtxos**(`scanAllAddresses`): `Promise`\<[`Result`](../README.md#result)\<[`IGetUtxosResponse`](../interfaces/IGetUtxosResponse.md)\>\>
1407
+
1408
+ Retrieves and sets UTXO's for the current wallet from Electrum.
1409
+
1410
+ #### Parameters
1411
+
1412
+ | Name | Type |
1413
+ | :------ | :------ |
1414
+ | `scanAllAddresses` | `Object` |
1415
+
1416
+ #### Returns
1417
+
1418
+ `Promise`\<[`Result`](../README.md#result)\<[`IGetUtxosResponse`](../interfaces/IGetUtxosResponse.md)\>\>
1419
+
1420
+ #### Defined in
1421
+
1422
+ [wallet/index.ts:1579](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1579)
1423
+
1424
+ ___
1425
+
1426
+ ### getWalletData
1427
+
1428
+ ▸ **getWalletData**(): `Promise`\<[`Result`](../README.md#result)\<[`IWalletData`](../interfaces/IWalletData.md)\>\>
1429
+
1430
+ Gets the wallet data object from storage if able.
1431
+ Otherwise, it falls back to the default wallet data object.
1432
+
1433
+ #### Returns
1434
+
1435
+ `Promise`\<[`Result`](../README.md#result)\<[`IWalletData`](../interfaces/IWalletData.md)\>\>
1436
+
1437
+ #### Defined in
1438
+
1439
+ [wallet/index.ts:339](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L339)
1440
+
1441
+ ___
1442
+
1443
+ ### getWalletDataKey
1444
+
1445
+ ▸ **getWalletDataKey**(`key`): `string`
1446
+
1447
+ Returns the key used for storing wallet data in the key/value pair.
1448
+
1449
+ #### Parameters
1450
+
1451
+ | Name | Type |
1452
+ | :------ | :------ |
1453
+ | `key` | keyof [`IWalletData`](../interfaces/IWalletData.md) |
1454
+
1455
+ #### Returns
1456
+
1457
+ `string`
1458
+
1459
+ #### Defined in
1460
+
1461
+ [wallet/index.ts:330](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L330)
1462
+
1463
+ ___
1464
+
1465
+ ### isValid
1466
+
1467
+ ▸ **isValid**(`mnemonic`): `boolean`
1468
+
1469
+ Ensures the provided mnemonic matches the one stored in the wallet and is valid.
1470
+
1471
+ #### Parameters
1472
+
1473
+ | Name | Type |
1474
+ | :------ | :------ |
1475
+ | `mnemonic` | `any` |
1476
+
1477
+ #### Returns
1478
+
1479
+ `boolean`
1480
+
1481
+ #### Defined in
1482
+
1483
+ [wallet/index.ts:433](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L433)
1484
+
1485
+ ___
1486
+
1487
+ ### listUtxos
1488
+
1489
+ ▸ **listUtxos**(): [`IUtxo`](../interfaces/IUtxo.md)[]
1490
+
1491
+ Returns the current wallet's UTXO's from storage.
1492
+
1493
+ #### Returns
1494
+
1495
+ [`IUtxo`](../interfaces/IUtxo.md)[]
1496
+
1497
+ #### Defined in
1498
+
1499
+ [wallet/index.ts:1603](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1603)
1500
+
1501
+ ___
1502
+
1503
+ ### processUnconfirmedTransactions
1504
+
1505
+ ▸ `Private` **processUnconfirmedTransactions**(): `Promise`\<[`Result`](../README.md#result)\<[`TProcessUnconfirmedTransactions`](../README.md#tprocessunconfirmedtransactions)\>\>
1506
+
1507
+ This method processes all transactions with less than 6 confirmations and returns the following:
1508
+ 1. Transactions that still have less than 6 confirmations and can be considered unconfirmed. (unconfirmedTxs)
1509
+ 2. Transactions that have fewer confirmations than before due to a reorg. (outdatedTxs)
1510
+ 3. Transactions that have been removed from the mempool. (ghostTxs)
1511
+
1512
+ #### Returns
1513
+
1514
+ `Promise`\<[`Result`](../README.md#result)\<[`TProcessUnconfirmedTransactions`](../README.md#tprocessunconfirmedtransactions)\>\>
1515
+
1516
+ **`Async`**
1517
+
1518
+ #### Defined in
1519
+
1520
+ [wallet/index.ts:1816](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1816)
1521
+
1522
+ ___
1523
+
1524
+ ### refreshWallet
1525
+
1526
+ ▸ **refreshWallet**(`«destructured»?`): `Promise`\<[`Result`](../README.md#result)\<[`IWalletData`](../interfaces/IWalletData.md)\>\>
1527
+
1528
+ Refreshes/Syncs the wallet data.
1529
+
1530
+ #### Parameters
1531
+
1532
+ | Name | Type |
1533
+ | :------ | :------ |
1534
+ | `«destructured»` | `Object` |
1535
+ | › `scanAllAddresses` | `undefined` \| `boolean` |
1536
+ | › `updateAllAddressTypes` | `undefined` \| `boolean` |
1537
+
1538
+ #### Returns
1539
+
1540
+ `Promise`\<[`Result`](../README.md#result)\<[`IWalletData`](../interfaces/IWalletData.md)\>\>
1541
+
1542
+ #### Defined in
1543
+
1544
+ [wallet/index.ts:255](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L255)
1545
+
1546
+ ___
1547
+
1548
+ ### removeDuplicateAddresses
1549
+
1550
+ ▸ `Private` **removeDuplicateAddresses**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<[`IGenerateAddressesResponse`](../interfaces/IGenerateAddressesResponse.md)\>\>
1551
+
1552
+ This method will compare a set of specified addresses to the currently stored addresses and remove any duplicates.
1553
+
1554
+ #### Parameters
1555
+
1556
+ | Name | Type |
1557
+ | :------ | :------ |
1558
+ | `«destructured»` | `Object` |
1559
+ | › `addresses?` | [`IAddresses`](../interfaces/IAddresses.md) |
1560
+ | › `changeAddresses?` | [`IAddresses`](../interfaces/IAddresses.md) |
1561
+
1562
+ #### Returns
1563
+
1564
+ `Promise`\<[`Result`](../README.md#result)\<[`IGenerateAddressesResponse`](../interfaces/IGenerateAddressesResponse.md)\>\>
1565
+
1566
+ **`Async`**
1567
+
1568
+ #### Defined in
1569
+
1570
+ [wallet/index.ts:1242](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1242)
1571
+
1572
+ ___
1573
+
1574
+ ### removeTxInput
1575
+
1576
+ ▸ **removeTxInput**(`input`): [`Result`](../README.md#result)\<[`IUtxo`](../interfaces/IUtxo.md)[]\>
1577
+
1578
+ Removes the specified input from the current transaction.
1579
+
1580
+ #### Parameters
1581
+
1582
+ | Name | Type |
1583
+ | :------ | :------ |
1584
+ | `input` | `Object` |
1585
+ | `input.input` | [`IUtxo`](../interfaces/IUtxo.md) |
1586
+
1587
+ #### Returns
1588
+
1589
+ [`Result`](../README.md#result)\<[`IUtxo`](../interfaces/IUtxo.md)[]\>
1590
+
1591
+ #### Defined in
1592
+
1593
+ [wallet/index.ts:3095](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3095)
1594
+
1595
+ ___
1596
+
1597
+ ### removeTxTag
1598
+
1599
+ ▸ **removeTxTag**(`tag`): [`Result`](../README.md#result)\<`string`\>
1600
+
1601
+ Removes a specified tag from the current transaction.
1602
+
1603
+ #### Parameters
1604
+
1605
+ | Name | Type |
1606
+ | :------ | :------ |
1607
+ | `tag` | `Object` |
1608
+ | `tag.tag` | `string` |
1609
+
1610
+ #### Returns
1611
+
1612
+ [`Result`](../README.md#result)\<`string`\>
1613
+
1614
+ #### Defined in
1615
+
1616
+ [wallet/index.ts:3144](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3144)
1617
+
1618
+ ___
1619
+
1620
+ ### rescanAddresses
1621
+
1622
+ ▸ **rescanAddresses**(`«destructured»?`): `Promise`\<[`Result`](../README.md#result)\<[`IWalletData`](../interfaces/IWalletData.md)\>\>
1623
+
1624
+ This method will clear the utxo array for each address type and reset the
1625
+ address indexes back to the original/default app values. Once cleared & reset
1626
+ the app will rescan the wallet's addresses from index zero.
1627
+
1628
+ #### Parameters
1629
+
1630
+ | Name | Type |
1631
+ | :------ | :------ |
1632
+ | `«destructured»` | `Object` |
1633
+ | › `shouldClearAddresses?` | `boolean` |
1634
+ | › `shouldClearTransactions?` | `boolean` |
1635
+
1636
+ #### Returns
1637
+
1638
+ `Promise`\<[`Result`](../README.md#result)\<[`IWalletData`](../interfaces/IWalletData.md)\>\>
1639
+
1640
+ **`Async`**
1641
+
1642
+ #### Defined in
1643
+
1644
+ [wallet/index.ts:1975](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1975)
1645
+
1646
+ ___
1647
+
1648
+ ### resetAddressIndexes
1649
+
1650
+ ▸ `Private` **resetAddressIndexes**(): `Promise`\<`void`\>
1651
+
1652
+ Resets address indexes back to the app's default/original state.
1653
+
1654
+ #### Returns
1655
+
1656
+ `Promise`\<`void`\>
1657
+
1658
+ #### Defined in
1659
+
1660
+ [wallet/index.ts:1427](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1427)
1661
+
1662
+ ___
1663
+
1664
+ ### resetSendTransaction
1665
+
1666
+ ▸ **resetSendTransaction**(): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1667
+
1668
+ This completely resets the send transaction state.
1669
+
1670
+ #### Returns
1671
+
1672
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1673
+
1674
+ #### Defined in
1675
+
1676
+ [wallet/index.ts:3036](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3036)
1677
+
1678
+ ___
1679
+
1680
+ ### saveWalletData
1681
+
1682
+ ▸ `Private` **saveWalletData**\<`K`\>(`key`, `data`): `Promise`\<`void`\>
1683
+
1684
+ Saves the wallet data object to storage if able.
1685
+
1686
+ #### Type parameters
1687
+
1688
+ | Name | Type |
1689
+ | :------ | :------ |
1690
+ | `K` | extends keyof [`IWalletData`](../interfaces/IWalletData.md) |
1691
+
1692
+ #### Parameters
1693
+
1694
+ | Name | Type |
1695
+ | :------ | :------ |
1696
+ | `key` | keyof [`IWalletData`](../interfaces/IWalletData.md) |
1697
+ | `data` | [`IWalletData`](../interfaces/IWalletData.md)[`K`] |
1698
+
1699
+ #### Returns
1700
+
1701
+ `Promise`\<`void`\>
1702
+
1703
+ **`Async`**
1704
+
1705
+ #### Defined in
1706
+
1707
+ [wallet/index.ts:1615](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1615)
1708
+
1709
+ ___
1710
+
1711
+ ### send
1712
+
1713
+ ▸ **send**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1714
+
1715
+ Sets up and creates a transaction to a single output/recipient.
1716
+
1717
+ #### Parameters
1718
+
1719
+ | Name | Type |
1720
+ | :------ | :------ |
1721
+ | `«destructured»` | `Object` |
1722
+ | › `address` | `string` |
1723
+ | › `amount` | `number` |
1724
+ | › `broadcast?` | `boolean` |
1725
+ | › `message?` | `string` |
1726
+ | › `rbf?` | `boolean` |
1727
+ | › `satsPerByte?` | `number` |
1728
+ | › `shuffleOutputs?` | `boolean` |
1729
+
1730
+ #### Returns
1731
+
1732
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1733
+
1734
+ **`Async`**
1735
+
1736
+ #### Defined in
1737
+
1738
+ [wallet/index.ts:2558](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2558)
1739
+
1740
+ ___
1741
+
1742
+ ### sendMany
1743
+
1744
+ ▸ **sendMany**(`«destructured»`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1745
+
1746
+ Sets up and creates a transaction to multiple outputs.
1747
+
1748
+ #### Parameters
1749
+
1750
+ | Name | Type |
1751
+ | :------ | :------ |
1752
+ | `«destructured»` | `Object` |
1753
+ | › `broadcast?` | `boolean` |
1754
+ | › `rbf?` | `boolean` |
1755
+ | › `satsPerByte?` | `number` |
1756
+ | › `shuffleOutputs?` | `boolean` |
1757
+ | › `txs` | [`ISendTx`](../interfaces/ISendTx.md)[] |
1758
+
1759
+ #### Returns
1760
+
1761
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1762
+
1763
+ #### Defined in
1764
+
1765
+ [wallet/index.ts:2481](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2481)
1766
+
1767
+ ___
1768
+
1769
+ ### setWalletData
1770
+
1771
+ ▸ `Private` **setWalletData**(): `Promise`\<[`Result`](../README.md#result)\<`boolean`\>\>
1772
+
1773
+ Sets the wallet data object.
1774
+
1775
+ #### Returns
1776
+
1777
+ `Promise`\<[`Result`](../README.md#result)\<`boolean`\>\>
1778
+
1779
+ #### Defined in
1780
+
1781
+ [wallet/index.ts:282](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L282)
1782
+
1783
+ ___
1784
+
1785
+ ### setZeroIndexAddresses
1786
+
1787
+ ▸ `Private` **setZeroIndexAddresses**(): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1788
+
1789
+ Will ensure that both address and change address indexes are set at index 0.
1790
+ Will also generate and store address and changeAddress at index 0.
1791
+
1792
+ #### Returns
1793
+
1794
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1795
+
1796
+ **`Async`**
1797
+
1798
+ #### Defined in
1799
+
1800
+ [wallet/index.ts:2609](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2609)
1801
+
1802
+ ___
1803
+
1804
+ ### setupFeeForOnChainTransaction
1805
+
1806
+ ▸ **setupFeeForOnChainTransaction**(`«destructured»?`): [`Result`](../README.md#result)\<`string`\>
1807
+
1808
+ Updates the fee rate for the current transaction to the preferred value if none set.
1809
+
1810
+ #### Parameters
1811
+
1812
+ | Name | Type |
1813
+ | :------ | :------ |
1814
+ | `«destructured»` | `Object` |
1815
+ | › `satsPerByte?` | `number` |
1816
+ | › `selectedFeeId?` | [`EFeeId`](../enums/EFeeId.md) |
1817
+
1818
+ #### Returns
1819
+
1820
+ [`Result`](../README.md#result)\<`string`\>
1821
+
1822
+ #### Defined in
1823
+
1824
+ [wallet/index.ts:3169](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3169)
1825
+
1826
+ ___
1827
+
1828
+ ### setupTransaction
1829
+
1830
+ ▸ **setupTransaction**(`params?`): `Promise`\<[`TSetupTransactionResponse`](../README.md#tsetuptransactionresponse)\>
1831
+
1832
+ Sets up the transaction object with existing inputs and change address information
1833
+ @async.
1834
+
1835
+ #### Parameters
1836
+
1837
+ | Name | Type |
1838
+ | :------ | :------ |
1839
+ | `params` | [`ISetupTransaction`](../interfaces/ISetupTransaction.md) |
1840
+
1841
+ #### Returns
1842
+
1843
+ `Promise`\<[`TSetupTransactionResponse`](../README.md#tsetuptransactionresponse)\>
1844
+
1845
+ #### Defined in
1846
+
1847
+ [wallet/index.ts:2439](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2439)
1848
+
1849
+ ___
1850
+
1851
+ ### storageIdCheck
1852
+
1853
+ ▸ `Private` **storageIdCheck**(`id`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1854
+
1855
+ Ensure we are not overwriting wallet data of a different wallet by checking that the wallet id's match.
1856
+
1857
+ #### Parameters
1858
+
1859
+ | Name | Type |
1860
+ | :------ | :------ |
1861
+ | `id` | `string` |
1862
+
1863
+ #### Returns
1864
+
1865
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1866
+
1867
+ **`Async`**
1868
+
1869
+ #### Defined in
1870
+
1871
+ [wallet/index.ts:305](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L305)
1872
+
1873
+ ___
1874
+
1875
+ ### switchNetwork
1876
+
1877
+ ▸ **switchNetwork**(`network`, `servers?`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1878
+
1879
+ #### Parameters
1880
+
1881
+ | Name | Type |
1882
+ | :------ | :------ |
1883
+ | `network` | [`EAvailableNetworks`](../enums/EAvailableNetworks.md) |
1884
+ | `servers?` | [`TServer`](../README.md#tserver) \| [`TServer`](../README.md#tserver)[] |
1885
+
1886
+ #### Returns
1887
+
1888
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1889
+
1890
+ #### Defined in
1891
+
1892
+ [wallet/index.ts:204](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L204)
1893
+
1894
+ ___
1895
+
1896
+ ### updateAddressIndex
1897
+
1898
+ ▸ `Private` **updateAddressIndex**(`addressType`, `isChangeAddress`, `index?`): `Promise`\<`void`\>
1899
+
1900
+ Updates the address index for a given address type.
1901
+
1902
+ #### Parameters
1903
+
1904
+ | Name | Type | Default value |
1905
+ | :------ | :------ | :------ |
1906
+ | `addressType` | [`EAddressType`](../enums/EAddressType.md) | `undefined` |
1907
+ | `isChangeAddress` | `boolean` | `undefined` |
1908
+ | `index?` | `number` | `0` |
1909
+
1910
+ #### Returns
1911
+
1912
+ `Promise`\<`void`\>
1913
+
1914
+ **`Async`**
1915
+
1916
+ #### Defined in
1917
+
1918
+ [wallet/index.ts:2651](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2651)
1919
+
1920
+ ___
1921
+
1922
+ ### updateAddressIndexes
1923
+
1924
+ ▸ `Private` **updateAddressIndexes**(`addressType?`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1925
+
1926
+ This method updates the next available (zero-balance) address & changeAddress index.
1927
+
1928
+ #### Parameters
1929
+
1930
+ | Name | Type |
1931
+ | :------ | :------ |
1932
+ | `addressType?` | `Object` |
1933
+ | `addressType.addressType?` | [`EAddressType`](../enums/EAddressType.md) |
1934
+
1935
+ #### Returns
1936
+
1937
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
1938
+
1939
+ **`Async`**
1940
+
1941
+ #### Defined in
1942
+
1943
+ [wallet/index.ts:1292](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1292)
1944
+
1945
+ ___
1946
+
1947
+ ### updateAddressType
1948
+
1949
+ ▸ **updateAddressType**(`addressType`): `Promise`\<`void`\>
1950
+
1951
+ Updates the address type for the current wallet.
1952
+
1953
+ #### Parameters
1954
+
1955
+ | Name | Type |
1956
+ | :------ | :------ |
1957
+ | `addressType` | [`EAddressType`](../enums/EAddressType.md) |
1958
+
1959
+ #### Returns
1960
+
1961
+ `Promise`\<`void`\>
1962
+
1963
+ #### Defined in
1964
+
1965
+ [wallet/index.ts:243](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L243)
1966
+
1967
+ ___
1968
+
1969
+ ### updateAndSaveWalletData
1970
+
1971
+ ▸ `Private` **updateAndSaveWalletData**(`key`, `data`, `addressType?`): `Promise`\<`void`\>
1972
+
1973
+ #### Parameters
1974
+
1975
+ | Name | Type |
1976
+ | :------ | :------ |
1977
+ | `key` | keyof [`IWalletData`](../interfaces/IWalletData.md) |
1978
+ | `data` | [`IWalletData`](../interfaces/IWalletData.md) |
1979
+ | `addressType?` | [`EAddressType`](../enums/EAddressType.md) |
1980
+
1981
+ #### Returns
1982
+
1983
+ `Promise`\<`void`\>
1984
+
1985
+ #### Defined in
1986
+
1987
+ [wallet/index.ts:1626](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1626)
1988
+
1989
+ ___
1990
+
1991
+ ### updateExchangeRates
1992
+
1993
+ ▸ **updateExchangeRates**(): `Promise`\<[`Result`](../README.md#result)\<[`IExchangeRates`](../interfaces/IExchangeRates.md)\>\>
1994
+
1995
+ Updates the exchange rates for the current network.
1996
+
1997
+ #### Returns
1998
+
1999
+ `Promise`\<[`Result`](../README.md#result)\<[`IExchangeRates`](../interfaces/IExchangeRates.md)\>\>
2000
+
2001
+ **`Async`**
2002
+
2003
+ #### Defined in
2004
+
2005
+ [wallet/index.ts:3221](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3221)
2006
+
2007
+ ___
2008
+
2009
+ ### updateFeeEstimates
2010
+
2011
+ ▸ **updateFeeEstimates**(`forceUpdate?`): `Promise`\<[`Result`](../README.md#result)\<[`IOnchainFees`](../interfaces/IOnchainFees.md)\>\>
2012
+
2013
+ Updates the fee estimates for the current network.
2014
+
2015
+ #### Parameters
2016
+
2017
+ | Name | Type | Default value | Description |
2018
+ | :------ | :------ | :------ | :------ |
2019
+ | `forceUpdate?` | `boolean` | `false` | Ignores the timestamp if set true and forces the update |
2020
+
2021
+ #### Returns
2022
+
2023
+ `Promise`\<[`Result`](../README.md#result)\<[`IOnchainFees`](../interfaces/IOnchainFees.md)\>\>
2024
+
2025
+ **`Async`**
2026
+
2027
+ #### Defined in
2028
+
2029
+ [wallet/index.ts:3236](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3236)
2030
+
2031
+ ___
2032
+
2033
+ ### updateGhostTransactions
2034
+
2035
+ ▸ `Private` **updateGhostTransactions**(`txIds`): `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
2036
+
2037
+ Removes transactions from the store and activity list.
2038
+
2039
+ #### Parameters
2040
+
2041
+ | Name | Type |
2042
+ | :------ | :------ |
2043
+ | `txIds` | `Object` |
2044
+ | `txIds.txIds` | `string`[] |
2045
+
2046
+ #### Returns
2047
+
2048
+ `Promise`\<[`Result`](../README.md#result)\<`string`\>\>
2049
+
2050
+ **`Async`**
2051
+
2052
+ #### Defined in
2053
+
2054
+ [wallet/index.ts:1932](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1932)
2055
+
2056
+ ___
2057
+
2058
+ ### updateHeader
2059
+
2060
+ ▸ **updateHeader**(`headerData`): `Promise`\<`void`\>
2061
+
2062
+ Updates & Saves header information to storage.
2063
+
2064
+ #### Parameters
2065
+
2066
+ | Name | Type |
2067
+ | :------ | :------ |
2068
+ | `headerData` | [`IHeader`](../interfaces/IHeader.md) |
2069
+
2070
+ #### Returns
2071
+
2072
+ `Promise`\<`void`\>
2073
+
2074
+ #### Defined in
2075
+
2076
+ [wallet/index.ts:1920](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1920)
2077
+
2078
+ ___
2079
+
2080
+ ### updateTransactionHeights
2081
+
2082
+ ▸ `Private` **updateTransactionHeights**(`txs`): `Promise`\<`string`\>
2083
+
2084
+ Updates the confirmation state of activity item transactions that were reorg'd out.
2085
+
2086
+ #### Parameters
2087
+
2088
+ | Name | Type |
2089
+ | :------ | :------ |
2090
+ | `txs` | [`IUtxo`](../interfaces/IUtxo.md)[] |
2091
+
2092
+ #### Returns
2093
+
2094
+ `Promise`\<`string`\>
2095
+
2096
+ **`Async`**
2097
+
2098
+ #### Defined in
2099
+
2100
+ [wallet/index.ts:2047](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2047)
2101
+
2102
+ ___
2103
+
2104
+ ### updateTransactions
2105
+
2106
+ ▸ **updateTransactions**(`«destructured»?`): `Promise`\<[`Result`](../README.md#result)\<`undefined` \| `string`\>\>
2107
+
2108
+ Retrieves, formats & stores the transaction history for the selected wallet/network.
2109
+
2110
+ #### Parameters
2111
+
2112
+ | Name | Type |
2113
+ | :------ | :------ |
2114
+ | `«destructured»` | `Object` |
2115
+ | › `replaceStoredTransactions?` | `boolean` |
2116
+ | › `scanAllAddresses?` | `boolean` |
2117
+
2118
+ #### Returns
2119
+
2120
+ `Promise`\<[`Result`](../README.md#result)\<`undefined` \| `string`\>\>
2121
+
2122
+ #### Defined in
2123
+
2124
+ [wallet/index.ts:1647](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L1647)
2125
+
2126
+ ___
2127
+
2128
+ ### updateWalletBalance
2129
+
2130
+ ▸ **updateWalletBalance**(`balance`): [`Result`](../README.md#result)\<`string`\>
2131
+
2132
+ Used to temporarily update the balance until the Electrum server catches up after sending a transaction.
2133
+
2134
+ #### Parameters
2135
+
2136
+ | Name | Type |
2137
+ | :------ | :------ |
2138
+ | `balance` | `Object` |
2139
+ | `balance.balance` | `number` |
2140
+
2141
+ #### Returns
2142
+
2143
+ [`Result`](../README.md#result)\<`string`\>
2144
+
2145
+ #### Defined in
2146
+
2147
+ [wallet/index.ts:3205](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L3205)
2148
+
2149
+ ___
2150
+
2151
+ ### validateAddress
2152
+
2153
+ ▸ **validateAddress**(`address`): `boolean`
2154
+
2155
+ Attempts to validate a given address.
2156
+
2157
+ #### Parameters
2158
+
2159
+ | Name | Type |
2160
+ | :------ | :------ |
2161
+ | `address` | `string` |
2162
+
2163
+ #### Returns
2164
+
2165
+ `boolean`
2166
+
2167
+ #### Defined in
2168
+
2169
+ [wallet/index.ts:2361](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L2361)
2170
+
2171
+ ___
2172
+
2173
+ ### create
2174
+
2175
+ ▸ `Static` **create**(`params`): `Promise`\<[`Result`](../README.md#result)\<[`Wallet`](Wallet.md)\>\>
2176
+
2177
+ #### Parameters
2178
+
2179
+ | Name | Type |
2180
+ | :------ | :------ |
2181
+ | `params` | [`IWallet`](../interfaces/IWallet.md) |
2182
+
2183
+ #### Returns
2184
+
2185
+ `Promise`\<[`Result`](../README.md#result)\<[`Wallet`](Wallet.md)\>\>
2186
+
2187
+ #### Defined in
2188
+
2189
+ [wallet/index.ts:189](https://github.com/synonymdev/beignet/blob/7c83290/src/wallet/index.ts#L189)