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.
- package/.eslintignore +4 -0
- package/.eslintrc +40 -0
- package/.prettierrc +9 -0
- package/LICENSE +21 -0
- package/README.md +166 -0
- package/dist/electrum/constants.js +31 -0
- package/dist/electrum/constants.js.map +1 -0
- package/dist/electrum/index.js +552 -0
- package/dist/electrum/index.js.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/shapes/electrum.js +14 -0
- package/dist/shapes/electrum.js.map +1 -0
- package/dist/shapes/index.js +19 -0
- package/dist/shapes/index.js.map +1 -0
- package/dist/shapes/wallet.js +115 -0
- package/dist/shapes/wallet.js.map +1 -0
- package/dist/transaction/index.js +692 -0
- package/dist/transaction/index.js.map +1 -0
- package/dist/types/electrum/constants.d.ts +7 -0
- package/dist/types/electrum/index.d.ts +85 -0
- package/dist/types/electrum.js +9 -0
- package/dist/types/electrum.js.map +1 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.js +20 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/shapes/electrum.d.ts +5 -0
- package/dist/types/shapes/index.d.ts +2 -0
- package/dist/types/shapes/wallet.d.ts +10 -0
- package/dist/types/transaction/index.d.ts +92 -0
- package/dist/types/transaction.js +12 -0
- package/dist/types/transaction.js.map +1 -0
- package/dist/types/types/electrum.d.ts +113 -0
- package/dist/types/types/index.d.ts +3 -0
- package/dist/types/types/transaction.d.ts +51 -0
- package/dist/types/types/wallet.d.ts +400 -0
- package/dist/types/utils/conversion.d.ts +10 -0
- package/dist/types/utils/derivation-path.d.ts +19 -0
- package/dist/types/utils/electrum.d.ts +10 -0
- package/dist/types/utils/exchange-rate.d.ts +30 -0
- package/dist/types/utils/helpers.d.ts +23 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/result.d.ts +16 -0
- package/dist/types/utils/transaction.d.ts +21 -0
- package/dist/types/utils/wallet.d.ts +47 -0
- package/dist/types/wallet/constants.d.ts +12 -0
- package/dist/types/wallet/index.d.ts +214 -0
- package/dist/types/wallet.js +36 -0
- package/dist/types/wallet.js.map +1 -0
- package/dist/utils/conversion.js +52 -0
- package/dist/utils/conversion.js.map +1 -0
- package/dist/utils/derivation-path.js +104 -0
- package/dist/utils/derivation-path.js.map +1 -0
- package/dist/utils/electrum.js +149 -0
- package/dist/utils/electrum.js.map +1 -0
- package/dist/utils/exchange-rate.js +49 -0
- package/dist/utils/exchange-rate.js.map +1 -0
- package/dist/utils/helpers.js +137 -0
- package/dist/utils/helpers.js.map +1 -0
- package/dist/utils/index.js +24 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/result.js +36 -0
- package/dist/utils/result.js.map +1 -0
- package/dist/utils/transaction.js +327 -0
- package/dist/utils/transaction.js.map +1 -0
- package/dist/utils/wallet.js +227 -0
- package/dist/utils/wallet.js.map +1 -0
- package/dist/wallet/constants.js +15 -0
- package/dist/wallet/constants.js.map +1 -0
- package/dist/wallet/index.js +2113 -0
- package/dist/wallet/index.js.map +1 -0
- package/docs/html/.nojekyll +1 -0
- package/docs/html/assets/highlight.css +22 -0
- package/docs/html/assets/main.js +58 -0
- package/docs/html/assets/search.js +1 -0
- package/docs/html/assets/style.css +1367 -0
- package/docs/html/classes/Electrum.html +812 -0
- package/docs/html/classes/Transaction.html +687 -0
- package/docs/html/classes/Wallet.html +2030 -0
- package/docs/html/enums/EAddressType.html +227 -0
- package/docs/html/enums/EAvailableNetworks.html +255 -0
- package/docs/html/enums/EBoostType.html +220 -0
- package/docs/html/enums/EFeeId.html +241 -0
- package/docs/html/enums/EPaymentType.html +220 -0
- package/docs/html/enums/EProtocol.html +220 -0
- package/docs/html/enums/EUnit.html +227 -0
- package/docs/html/functions/availableNetworks.html +200 -0
- package/docs/html/functions/constructByteCountParam.html +210 -0
- package/docs/html/functions/decodeOpReturnMessage.html +202 -0
- package/docs/html/functions/decodeRawTransaction.html +210 -0
- package/docs/html/functions/err.html +214 -0
- package/docs/html/functions/formatKeyDerivationPath.html +219 -0
- package/docs/html/functions/formatPeerData.html +207 -0
- package/docs/html/functions/generateMnemonic.html +223 -0
- package/docs/html/functions/generateWalletId.html +202 -0
- package/docs/html/functions/getAddressFromScriptPubKey.html +209 -0
- package/docs/html/functions/getAddressTypeFromPath.html +206 -0
- package/docs/html/functions/getByteCount.html +206 -0
- package/docs/html/functions/getDataFallback.html +207 -0
- package/docs/html/functions/getDefaultPort.html +209 -0
- package/docs/html/functions/getDefaultWalletData.html +200 -0
- package/docs/html/functions/getDefaultWalletDataKeys.html +200 -0
- package/docs/html/functions/getExchangeRates.html +200 -0
- package/docs/html/functions/getHighestUsedIndexFromTxHashes.html +216 -0
- package/docs/html/functions/getKeyDerivationPath.html +211 -0
- package/docs/html/functions/getKeyDerivationPathObject.html +216 -0
- package/docs/html/functions/getKeyDerivationPathString.html +220 -0
- package/docs/html/functions/getKeyValue.html +206 -0
- package/docs/html/functions/getPeers.html +211 -0
- package/docs/html/functions/getProtocolForPort.html +209 -0
- package/docs/html/functions/getScriptHash.html +210 -0
- package/docs/html/functions/getSeed.html +209 -0
- package/docs/html/functions/getSeedHash.html +206 -0
- package/docs/html/functions/getSha256.html +206 -0
- package/docs/html/functions/getStorageKeyValues.html +209 -0
- package/docs/html/functions/getTxFee.html +210 -0
- package/docs/html/functions/getWalletDataStorageKey.html +206 -0
- package/docs/html/functions/isValidBech32mEncodedString.html +211 -0
- package/docs/html/functions/objectKeys-1.html +211 -0
- package/docs/html/functions/objectsMatch.html +210 -0
- package/docs/html/functions/ok.html +214 -0
- package/docs/html/functions/parseOnChainPaymentRequest.html +204 -0
- package/docs/html/functions/reduceValue.html +215 -0
- package/docs/html/functions/removeDustOutputs.html +206 -0
- package/docs/html/functions/setReplaceByFee.html +210 -0
- package/docs/html/functions/shuffleArray.html +211 -0
- package/docs/html/functions/validateAddress.html +216 -0
- package/docs/html/functions/validateMnemonic.html +206 -0
- package/docs/html/functions/validateTransaction.html +206 -0
- package/docs/html/index.html +360 -0
- package/docs/html/interfaces/IAddInput.html +231 -0
- package/docs/html/interfaces/IAddress.html +247 -0
- package/docs/html/interfaces/IAddressData.html +231 -0
- package/docs/html/interfaces/IAddressType.html +199 -0
- package/docs/html/interfaces/IAddressTypeData.html +252 -0
- package/docs/html/interfaces/IAddresses.html +199 -0
- package/docs/html/interfaces/IBoostedTransaction.html +238 -0
- package/docs/html/interfaces/IBoostedTransactions.html +199 -0
- package/docs/html/interfaces/ICreateTransaction.html +224 -0
- package/docs/html/interfaces/ICustomGetAddress.html +231 -0
- package/docs/html/interfaces/ICustomGetScriptHash.html +224 -0
- package/docs/html/interfaces/IElectrumGetAddressBalanceRes.html +235 -0
- package/docs/html/interfaces/IExchangeRates.html +210 -0
- package/docs/html/interfaces/IFormattedPeerData.html +245 -0
- package/docs/html/interfaces/IFormattedTransaction.html +343 -0
- package/docs/html/interfaces/IFormattedTransactions.html +199 -0
- package/docs/html/interfaces/IGenerateAddresses.html +252 -0
- package/docs/html/interfaces/IGenerateAddressesResponse.html +224 -0
- package/docs/html/interfaces/IGetAddress.html +231 -0
- package/docs/html/interfaces/IGetAddressBalanceRes.html +226 -0
- package/docs/html/interfaces/IGetAddressByPath.html +224 -0
- package/docs/html/interfaces/IGetAddressHistoryResponse.html +269 -0
- package/docs/html/interfaces/IGetAddressResponse.html +231 -0
- package/docs/html/interfaces/IGetAddressScriptHashesHistoryResponse.html +245 -0
- package/docs/html/interfaces/IGetDerivationPath.html +259 -0
- package/docs/html/interfaces/IGetFeeEstimatesResponse.html +238 -0
- package/docs/html/interfaces/IGetHeaderResponse.html +245 -0
- package/docs/html/interfaces/IGetNextAvailableAddressResponse.html +238 -0
- package/docs/html/interfaces/IGetTransactions.html +245 -0
- package/docs/html/interfaces/IGetTransactionsFromInputs.html +245 -0
- package/docs/html/interfaces/IGetUtxosResponse.html +224 -0
- package/docs/html/interfaces/IHeader.html +231 -0
- package/docs/html/interfaces/IIndexes.html +238 -0
- package/docs/html/interfaces/IKeyDerivationPath.html +247 -0
- package/docs/html/interfaces/IKeyDerivationPathData.html +224 -0
- package/docs/html/interfaces/INewBlock.html +224 -0
- package/docs/html/interfaces/IOnchainFees.html +245 -0
- package/docs/html/interfaces/IOutput.html +231 -0
- package/docs/html/interfaces/IPeerData.html +231 -0
- package/docs/html/interfaces/IRbfData.html +252 -0
- package/docs/html/interfaces/ISend.html +224 -0
- package/docs/html/interfaces/ISendTransaction.html +322 -0
- package/docs/html/interfaces/ISendTx.html +231 -0
- package/docs/html/interfaces/ISetupTransaction.html +238 -0
- package/docs/html/interfaces/ISubscribeToAddress.html +247 -0
- package/docs/html/interfaces/ISubscribeToHeader.html +245 -0
- package/docs/html/interfaces/ITargets.html +238 -0
- package/docs/html/interfaces/ITransaction.html +281 -0
- package/docs/html/interfaces/ITxHash.html +217 -0
- package/docs/html/interfaces/ITxHashes.html +235 -0
- package/docs/html/interfaces/IUtxo.html +275 -0
- package/docs/html/interfaces/IVin.html +252 -0
- package/docs/html/interfaces/IVout.html +246 -0
- package/docs/html/interfaces/IWallet.html +350 -0
- package/docs/html/interfaces/IWalletData.html +343 -0
- package/docs/html/types/ElectrumConnectionPubSub.html +233 -0
- package/docs/html/types/ElectrumConnectionSubscription.html +204 -0
- package/docs/html/types/InputData.html +203 -0
- package/docs/html/types/ObjectKeys.html +198 -0
- package/docs/html/types/Result.html +201 -0
- package/docs/html/types/TAddressIndexInfo.html +204 -0
- package/docs/html/types/TAddressLabel.html +193 -0
- package/docs/html/types/TAddressType.html +193 -0
- package/docs/html/types/TAddressTypeContent.html +198 -0
- package/docs/html/types/TAddressTypes.html +193 -0
- package/docs/html/types/TAvailableNetworks.html +193 -0
- package/docs/html/types/TConnectToElectrumRes.html +193 -0
- package/docs/html/types/TDecodeRawTx.html +214 -0
- package/docs/html/types/TElectrumNetworks.html +193 -0
- package/docs/html/types/TGetAddressHistory.html +200 -0
- package/docs/html/types/TGetByteCountInput.html +193 -0
- package/docs/html/types/TGetByteCountInputs.html +193 -0
- package/docs/html/types/TGetByteCountOutput.html +193 -0
- package/docs/html/types/TGetByteCountOutputs.html +193 -0
- package/docs/html/types/TGetData.html +211 -0
- package/docs/html/types/TGetTotalFeeObj.html +204 -0
- package/docs/html/types/TKeyDerivationAccount.html +193 -0
- package/docs/html/types/TKeyDerivationChange.html +193 -0
- package/docs/html/types/TKeyDerivationCoinType.html +193 -0
- package/docs/html/types/TKeyDerivationIndex.html +193 -0
- package/docs/html/types/TKeyDerivationPurpose.html +193 -0
- package/docs/html/types/TMessageDataMap.html +210 -0
- package/docs/html/types/TMessageKeys.html +193 -0
- package/docs/html/types/TOnMessage.html +213 -0
- package/docs/html/types/TProcessUnconfirmedTransactions.html +202 -0
- package/docs/html/types/TProtocol.html +193 -0
- package/docs/html/types/TServer.html +204 -0
- package/docs/html/types/TSetData.html +213 -0
- package/docs/html/types/TSetupTransactionResponse.html +193 -0
- package/docs/html/types/TStorage.html +200 -0
- package/docs/html/types/TSubscribedReceive.html +193 -0
- package/docs/html/types/TTransactionMessage.html +198 -0
- package/docs/html/types/TTxResponse.html +206 -0
- package/docs/html/types/TTxResult.html +200 -0
- package/docs/html/types/TUnspentAddressScriptHashData.html +198 -0
- package/docs/html/types/TWalletDataKeys.html +193 -0
- package/docs/html/variables/defaultElectrumPorts.html +193 -0
- package/docs/html/variables/electrumConnection.html +199 -0
- package/docs/html/variables/mostUsedExchangeTickers.html +241 -0
- package/docs/markdown/.nojekyll +1 -0
- package/docs/markdown/README.md +1875 -0
- package/docs/markdown/classes/Electrum.md +718 -0
- package/docs/markdown/classes/Transaction.md +536 -0
- package/docs/markdown/classes/Wallet.md +2189 -0
- package/docs/markdown/enums/EAddressType.md +41 -0
- package/docs/markdown/enums/EAvailableNetworks.md +85 -0
- package/docs/markdown/enums/EBoostType.md +30 -0
- package/docs/markdown/enums/EFeeId.md +63 -0
- package/docs/markdown/enums/EPaymentType.md +30 -0
- package/docs/markdown/enums/EProtocol.md +30 -0
- package/docs/markdown/enums/EUnit.md +41 -0
- package/docs/markdown/interfaces/IAddInput.md +41 -0
- package/docs/markdown/interfaces/IAddress.md +69 -0
- package/docs/markdown/interfaces/IAddressData.md +41 -0
- package/docs/markdown/interfaces/IAddressType.md +7 -0
- package/docs/markdown/interfaces/IAddressTypeData.md +74 -0
- package/docs/markdown/interfaces/IAddresses.md +7 -0
- package/docs/markdown/interfaces/IBoostedTransaction.md +52 -0
- package/docs/markdown/interfaces/IBoostedTransactions.md +7 -0
- package/docs/markdown/interfaces/ICreateTransaction.md +30 -0
- package/docs/markdown/interfaces/ICustomGetAddress.md +41 -0
- package/docs/markdown/interfaces/ICustomGetScriptHash.md +30 -0
- package/docs/markdown/interfaces/IElectrumGetAddressBalanceRes.md +55 -0
- package/docs/markdown/interfaces/IExchangeRates.md +7 -0
- package/docs/markdown/interfaces/IFormattedPeerData.md +63 -0
- package/docs/markdown/interfaces/IFormattedTransaction.md +217 -0
- package/docs/markdown/interfaces/IFormattedTransactions.md +7 -0
- package/docs/markdown/interfaces/IGenerateAddresses.md +74 -0
- package/docs/markdown/interfaces/IGenerateAddressesResponse.md +30 -0
- package/docs/markdown/interfaces/IGetAddress.md +41 -0
- package/docs/markdown/interfaces/IGetAddressBalanceRes.md +36 -0
- package/docs/markdown/interfaces/IGetAddressByPath.md +30 -0
- package/docs/markdown/interfaces/IGetAddressHistoryResponse.md +121 -0
- package/docs/markdown/interfaces/IGetAddressResponse.md +41 -0
- package/docs/markdown/interfaces/IGetAddressScriptHashesHistoryResponse.md +63 -0
- package/docs/markdown/interfaces/IGetDerivationPath.md +100 -0
- package/docs/markdown/interfaces/IGetFeeEstimatesResponse.md +52 -0
- package/docs/markdown/interfaces/IGetHeaderResponse.md +63 -0
- package/docs/markdown/interfaces/IGetNextAvailableAddressResponse.md +52 -0
- package/docs/markdown/interfaces/IGetTransactions.md +63 -0
- package/docs/markdown/interfaces/IGetTransactionsFromInputs.md +63 -0
- package/docs/markdown/interfaces/IGetUtxosResponse.md +30 -0
- package/docs/markdown/interfaces/IHeader.md +41 -0
- package/docs/markdown/interfaces/IIndexes.md +52 -0
- package/docs/markdown/interfaces/IKeyDerivationPath.md +69 -0
- package/docs/markdown/interfaces/IKeyDerivationPathData.md +30 -0
- package/docs/markdown/interfaces/INewBlock.md +30 -0
- package/docs/markdown/interfaces/IOnchainFees.md +63 -0
- package/docs/markdown/interfaces/IOutput.md +41 -0
- package/docs/markdown/interfaces/IPeerData.md +41 -0
- package/docs/markdown/interfaces/IRbfData.md +74 -0
- package/docs/markdown/interfaces/ISend.md +30 -0
- package/docs/markdown/interfaces/ISendTransaction.md +184 -0
- package/docs/markdown/interfaces/ISendTx.md +41 -0
- package/docs/markdown/interfaces/ISetupTransaction.md +52 -0
- package/docs/markdown/interfaces/ISubscribeToAddress.md +60 -0
- package/docs/markdown/interfaces/ISubscribeToHeader.md +59 -0
- package/docs/markdown/interfaces/ITargets.md +52 -0
- package/docs/markdown/interfaces/ITransaction.md +88 -0
- package/docs/markdown/interfaces/ITxHash.md +19 -0
- package/docs/markdown/interfaces/ITxHashes.md +55 -0
- package/docs/markdown/interfaces/IUtxo.md +112 -0
- package/docs/markdown/interfaces/IVin.md +70 -0
- package/docs/markdown/interfaces/IVout.md +52 -0
- package/docs/markdown/interfaces/IWallet.md +209 -0
- package/docs/markdown/interfaces/IWalletData.md +217 -0
- package/example/helpers.ts +76 -0
- package/example/index.ts +77 -0
- package/package.json +69 -0
- package/src/electrum/constants.ts +28 -0
- package/src/electrum/index.ts +838 -0
- package/src/index.ts +6 -0
- package/src/shapes/electrum.ts +13 -0
- package/src/shapes/index.ts +2 -0
- package/src/shapes/wallet.ts +133 -0
- package/src/transaction/index.ts +1078 -0
- package/src/types/electrum.ts +139 -0
- package/src/types/index.ts +3 -0
- package/src/types/transaction.ts +58 -0
- package/src/types/wallet.ts +503 -0
- package/src/utils/conversion.ts +88 -0
- package/src/utils/derivation-path.ts +171 -0
- package/src/utils/electrum.ts +188 -0
- package/src/utils/exchange-rate.ts +70 -0
- package/src/utils/helpers.ts +191 -0
- package/src/utils/index.ts +7 -0
- package/src/utils/result.ts +79 -0
- package/src/utils/transaction.ts +417 -0
- package/src/utils/wallet.ts +351 -0
- package/src/wallet/constants.ts +24 -0
- package/src/wallet/index.ts +3304 -0
- package/tests/constants.ts +9 -0
- package/tests/derivation.test.ts +146 -0
- package/tests/electrum.test.ts +137 -0
- package/tests/storage.test.ts +222 -0
- package/tests/transaction.test.ts +187 -0
- package/tests/wallet.test.ts +307 -0
- package/tsconfig.json +32 -0
- package/typedoc.json +5 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
[beignet](../README.md) / ISubscribeToAddress
|
|
2
|
+
|
|
3
|
+
# Interface: ISubscribeToAddress
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [data](ISubscribeToAddress.md#data)
|
|
10
|
+
- [error](ISubscribeToAddress.md#error)
|
|
11
|
+
- [id](ISubscribeToAddress.md#id)
|
|
12
|
+
- [method](ISubscribeToAddress.md#method)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### data
|
|
17
|
+
|
|
18
|
+
• **data**: `Object`
|
|
19
|
+
|
|
20
|
+
#### Type declaration
|
|
21
|
+
|
|
22
|
+
| Name | Type |
|
|
23
|
+
| :------ | :------ |
|
|
24
|
+
| `id` | `number` |
|
|
25
|
+
| `jsonrpc` | `string` |
|
|
26
|
+
| `result` | ``null`` |
|
|
27
|
+
|
|
28
|
+
#### Defined in
|
|
29
|
+
|
|
30
|
+
[types/electrum.ts:102](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L102)
|
|
31
|
+
|
|
32
|
+
___
|
|
33
|
+
|
|
34
|
+
### error
|
|
35
|
+
|
|
36
|
+
• **error**: `boolean`
|
|
37
|
+
|
|
38
|
+
#### Defined in
|
|
39
|
+
|
|
40
|
+
[types/electrum.ts:107](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L107)
|
|
41
|
+
|
|
42
|
+
___
|
|
43
|
+
|
|
44
|
+
### id
|
|
45
|
+
|
|
46
|
+
• **id**: `number`
|
|
47
|
+
|
|
48
|
+
#### Defined in
|
|
49
|
+
|
|
50
|
+
[types/electrum.ts:108](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L108)
|
|
51
|
+
|
|
52
|
+
___
|
|
53
|
+
|
|
54
|
+
### method
|
|
55
|
+
|
|
56
|
+
• **method**: `string`
|
|
57
|
+
|
|
58
|
+
#### Defined in
|
|
59
|
+
|
|
60
|
+
[types/electrum.ts:109](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L109)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
[beignet](../README.md) / ISubscribeToHeader
|
|
2
|
+
|
|
3
|
+
# Interface: ISubscribeToHeader
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [data](ISubscribeToHeader.md#data)
|
|
10
|
+
- [error](ISubscribeToHeader.md#error)
|
|
11
|
+
- [id](ISubscribeToHeader.md#id)
|
|
12
|
+
- [method](ISubscribeToHeader.md#method)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### data
|
|
17
|
+
|
|
18
|
+
• **data**: `Object`
|
|
19
|
+
|
|
20
|
+
#### Type declaration
|
|
21
|
+
|
|
22
|
+
| Name | Type |
|
|
23
|
+
| :------ | :------ |
|
|
24
|
+
| `height` | `number` |
|
|
25
|
+
| `hex` | `string` |
|
|
26
|
+
|
|
27
|
+
#### Defined in
|
|
28
|
+
|
|
29
|
+
[types/electrum.ts:92](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L92)
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### error
|
|
34
|
+
|
|
35
|
+
• **error**: `boolean`
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[types/electrum.ts:96](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L96)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### id
|
|
44
|
+
|
|
45
|
+
• **id**: `string`
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[types/electrum.ts:97](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L97)
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### method
|
|
54
|
+
|
|
55
|
+
• **method**: `string`
|
|
56
|
+
|
|
57
|
+
#### Defined in
|
|
58
|
+
|
|
59
|
+
[types/electrum.ts:98](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L98)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[beignet](../README.md) / ITargets
|
|
2
|
+
|
|
3
|
+
# Interface: ITargets
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [address](ITargets.md#address)
|
|
10
|
+
- [index](ITargets.md#index)
|
|
11
|
+
- [script](ITargets.md#script)
|
|
12
|
+
- [value](ITargets.md#value)
|
|
13
|
+
|
|
14
|
+
## Properties
|
|
15
|
+
|
|
16
|
+
### address
|
|
17
|
+
|
|
18
|
+
• `Optional` **address**: `string`
|
|
19
|
+
|
|
20
|
+
#### Defined in
|
|
21
|
+
|
|
22
|
+
[types/transaction.ts:20](https://github.com/synonymdev/beignet/blob/7c83290/src/types/transaction.ts#L20)
|
|
23
|
+
|
|
24
|
+
___
|
|
25
|
+
|
|
26
|
+
### index
|
|
27
|
+
|
|
28
|
+
• **index**: `number`
|
|
29
|
+
|
|
30
|
+
#### Defined in
|
|
31
|
+
|
|
32
|
+
[types/transaction.ts:19](https://github.com/synonymdev/beignet/blob/7c83290/src/types/transaction.ts#L19)
|
|
33
|
+
|
|
34
|
+
___
|
|
35
|
+
|
|
36
|
+
### script
|
|
37
|
+
|
|
38
|
+
• `Optional` **script**: `Buffer`
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[types/transaction.ts:21](https://github.com/synonymdev/beignet/blob/7c83290/src/types/transaction.ts#L21)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### value
|
|
47
|
+
|
|
48
|
+
• **value**: `number`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[types/transaction.ts:18](https://github.com/synonymdev/beignet/blob/7c83290/src/types/transaction.ts#L18)
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
[beignet](../README.md) / ITransaction
|
|
2
|
+
|
|
3
|
+
# Interface: ITransaction\<T\>
|
|
4
|
+
|
|
5
|
+
## Type parameters
|
|
6
|
+
|
|
7
|
+
| Name |
|
|
8
|
+
| :------ |
|
|
9
|
+
| `T` |
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Properties
|
|
14
|
+
|
|
15
|
+
- [data](ITransaction.md#data)
|
|
16
|
+
- [id](ITransaction.md#id)
|
|
17
|
+
- [jsonrpc](ITransaction.md#jsonrpc)
|
|
18
|
+
- [param](ITransaction.md#param)
|
|
19
|
+
- [result](ITransaction.md#result)
|
|
20
|
+
|
|
21
|
+
## Properties
|
|
22
|
+
|
|
23
|
+
### data
|
|
24
|
+
|
|
25
|
+
• **data**: `T`
|
|
26
|
+
|
|
27
|
+
#### Defined in
|
|
28
|
+
|
|
29
|
+
[types/wallet.ts:325](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L325)
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
|
|
33
|
+
### id
|
|
34
|
+
|
|
35
|
+
• **id**: `number`
|
|
36
|
+
|
|
37
|
+
#### Defined in
|
|
38
|
+
|
|
39
|
+
[types/wallet.ts:322](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L322)
|
|
40
|
+
|
|
41
|
+
___
|
|
42
|
+
|
|
43
|
+
### jsonrpc
|
|
44
|
+
|
|
45
|
+
• **jsonrpc**: `string`
|
|
46
|
+
|
|
47
|
+
#### Defined in
|
|
48
|
+
|
|
49
|
+
[types/wallet.ts:323](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L323)
|
|
50
|
+
|
|
51
|
+
___
|
|
52
|
+
|
|
53
|
+
### param
|
|
54
|
+
|
|
55
|
+
• **param**: `string`
|
|
56
|
+
|
|
57
|
+
#### Defined in
|
|
58
|
+
|
|
59
|
+
[types/wallet.ts:324](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L324)
|
|
60
|
+
|
|
61
|
+
___
|
|
62
|
+
|
|
63
|
+
### result
|
|
64
|
+
|
|
65
|
+
• **result**: `Object`
|
|
66
|
+
|
|
67
|
+
#### Type declaration
|
|
68
|
+
|
|
69
|
+
| Name | Type |
|
|
70
|
+
| :------ | :------ |
|
|
71
|
+
| `blockhash` | `string` |
|
|
72
|
+
| `blocktime?` | `number` |
|
|
73
|
+
| `confirmations` | `number` |
|
|
74
|
+
| `hash` | `string` |
|
|
75
|
+
| `hex` | `string` |
|
|
76
|
+
| `locktime` | `number` |
|
|
77
|
+
| `size` | `number` |
|
|
78
|
+
| `time?` | `number` |
|
|
79
|
+
| `txid` | `string` |
|
|
80
|
+
| `version` | `number` |
|
|
81
|
+
| `vin` | [`IVin`](IVin.md)[] |
|
|
82
|
+
| `vout` | [`IVout`](IVout.md)[] |
|
|
83
|
+
| `vsize` | `number` |
|
|
84
|
+
| `weight` | `number` |
|
|
85
|
+
|
|
86
|
+
#### Defined in
|
|
87
|
+
|
|
88
|
+
[types/wallet.ts:326](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L326)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
[beignet](../README.md) / ITxHash
|
|
2
|
+
|
|
3
|
+
# Interface: ITxHash
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [tx\_hash](ITxHash.md#tx_hash)
|
|
10
|
+
|
|
11
|
+
## Properties
|
|
12
|
+
|
|
13
|
+
### tx\_hash
|
|
14
|
+
|
|
15
|
+
• **tx\_hash**: `string`
|
|
16
|
+
|
|
17
|
+
#### Defined in
|
|
18
|
+
|
|
19
|
+
[types/wallet.ts:310](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L310)
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
[beignet](../README.md) / ITxHashes
|
|
2
|
+
|
|
3
|
+
# Interface: ITxHashes
|
|
4
|
+
|
|
5
|
+
## Hierarchy
|
|
6
|
+
|
|
7
|
+
- [`TTxResult`](../README.md#ttxresult)
|
|
8
|
+
|
|
9
|
+
↳ **`ITxHashes`**
|
|
10
|
+
|
|
11
|
+
## Table of contents
|
|
12
|
+
|
|
13
|
+
### Properties
|
|
14
|
+
|
|
15
|
+
- [height](ITxHashes.md#height)
|
|
16
|
+
- [scriptHash](ITxHashes.md#scripthash)
|
|
17
|
+
- [tx\_hash](ITxHashes.md#tx_hash)
|
|
18
|
+
|
|
19
|
+
## Properties
|
|
20
|
+
|
|
21
|
+
### height
|
|
22
|
+
|
|
23
|
+
• **height**: `number`
|
|
24
|
+
|
|
25
|
+
#### Inherited from
|
|
26
|
+
|
|
27
|
+
TTxResult.height
|
|
28
|
+
|
|
29
|
+
#### Defined in
|
|
30
|
+
|
|
31
|
+
[types/electrum.ts:40](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L40)
|
|
32
|
+
|
|
33
|
+
___
|
|
34
|
+
|
|
35
|
+
### scriptHash
|
|
36
|
+
|
|
37
|
+
• **scriptHash**: `string`
|
|
38
|
+
|
|
39
|
+
#### Defined in
|
|
40
|
+
|
|
41
|
+
[types/wallet.ts:299](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L299)
|
|
42
|
+
|
|
43
|
+
___
|
|
44
|
+
|
|
45
|
+
### tx\_hash
|
|
46
|
+
|
|
47
|
+
• **tx\_hash**: `string`
|
|
48
|
+
|
|
49
|
+
#### Inherited from
|
|
50
|
+
|
|
51
|
+
TTxResult.tx\_hash
|
|
52
|
+
|
|
53
|
+
#### Defined in
|
|
54
|
+
|
|
55
|
+
[types/electrum.ts:39](https://github.com/synonymdev/beignet/blob/7c83290/src/types/electrum.ts#L39)
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
[beignet](../README.md) / IUtxo
|
|
2
|
+
|
|
3
|
+
# Interface: IUtxo
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [address](IUtxo.md#address)
|
|
10
|
+
- [height](IUtxo.md#height)
|
|
11
|
+
- [index](IUtxo.md#index)
|
|
12
|
+
- [path](IUtxo.md#path)
|
|
13
|
+
- [scriptHash](IUtxo.md#scripthash)
|
|
14
|
+
- [tx\_hash](IUtxo.md#tx_hash)
|
|
15
|
+
- [tx\_pos](IUtxo.md#tx_pos)
|
|
16
|
+
- [value](IUtxo.md#value)
|
|
17
|
+
|
|
18
|
+
## Properties
|
|
19
|
+
|
|
20
|
+
### address
|
|
21
|
+
|
|
22
|
+
• **address**: `string`
|
|
23
|
+
|
|
24
|
+
#### Defined in
|
|
25
|
+
|
|
26
|
+
[types/wallet.ts:60](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L60)
|
|
27
|
+
|
|
28
|
+
[types/wallet.ts:256](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L256)
|
|
29
|
+
|
|
30
|
+
___
|
|
31
|
+
|
|
32
|
+
### height
|
|
33
|
+
|
|
34
|
+
• **height**: `number`
|
|
35
|
+
|
|
36
|
+
#### Defined in
|
|
37
|
+
|
|
38
|
+
[types/wallet.ts:64](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L64)
|
|
39
|
+
|
|
40
|
+
[types/wallet.ts:260](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L260)
|
|
41
|
+
|
|
42
|
+
___
|
|
43
|
+
|
|
44
|
+
### index
|
|
45
|
+
|
|
46
|
+
• **index**: `number`
|
|
47
|
+
|
|
48
|
+
#### Defined in
|
|
49
|
+
|
|
50
|
+
[types/wallet.ts:61](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L61)
|
|
51
|
+
|
|
52
|
+
[types/wallet.ts:257](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L257)
|
|
53
|
+
|
|
54
|
+
___
|
|
55
|
+
|
|
56
|
+
### path
|
|
57
|
+
|
|
58
|
+
• **path**: `string`
|
|
59
|
+
|
|
60
|
+
#### Defined in
|
|
61
|
+
|
|
62
|
+
[types/wallet.ts:62](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L62)
|
|
63
|
+
|
|
64
|
+
[types/wallet.ts:258](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L258)
|
|
65
|
+
|
|
66
|
+
___
|
|
67
|
+
|
|
68
|
+
### scriptHash
|
|
69
|
+
|
|
70
|
+
• **scriptHash**: `string`
|
|
71
|
+
|
|
72
|
+
#### Defined in
|
|
73
|
+
|
|
74
|
+
[types/wallet.ts:63](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L63)
|
|
75
|
+
|
|
76
|
+
[types/wallet.ts:259](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L259)
|
|
77
|
+
|
|
78
|
+
___
|
|
79
|
+
|
|
80
|
+
### tx\_hash
|
|
81
|
+
|
|
82
|
+
• **tx\_hash**: `string`
|
|
83
|
+
|
|
84
|
+
#### Defined in
|
|
85
|
+
|
|
86
|
+
[types/wallet.ts:65](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L65)
|
|
87
|
+
|
|
88
|
+
[types/wallet.ts:261](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L261)
|
|
89
|
+
|
|
90
|
+
___
|
|
91
|
+
|
|
92
|
+
### tx\_pos
|
|
93
|
+
|
|
94
|
+
• **tx\_pos**: `number`
|
|
95
|
+
|
|
96
|
+
#### Defined in
|
|
97
|
+
|
|
98
|
+
[types/wallet.ts:66](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L66)
|
|
99
|
+
|
|
100
|
+
[types/wallet.ts:262](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L262)
|
|
101
|
+
|
|
102
|
+
___
|
|
103
|
+
|
|
104
|
+
### value
|
|
105
|
+
|
|
106
|
+
• **value**: `number`
|
|
107
|
+
|
|
108
|
+
#### Defined in
|
|
109
|
+
|
|
110
|
+
[types/wallet.ts:67](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L67)
|
|
111
|
+
|
|
112
|
+
[types/wallet.ts:263](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L263)
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
[beignet](../README.md) / IVin
|
|
2
|
+
|
|
3
|
+
# Interface: IVin
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [scriptSig](IVin.md#scriptsig)
|
|
10
|
+
- [sequence](IVin.md#sequence)
|
|
11
|
+
- [txid](IVin.md#txid)
|
|
12
|
+
- [txinwitness](IVin.md#txinwitness)
|
|
13
|
+
- [vout](IVin.md#vout)
|
|
14
|
+
|
|
15
|
+
## Properties
|
|
16
|
+
|
|
17
|
+
### scriptSig
|
|
18
|
+
|
|
19
|
+
• **scriptSig**: `Object`
|
|
20
|
+
|
|
21
|
+
#### Type declaration
|
|
22
|
+
|
|
23
|
+
| Name | Type |
|
|
24
|
+
| :------ | :------ |
|
|
25
|
+
| `asm` | `string` |
|
|
26
|
+
| `hex` | `string` |
|
|
27
|
+
|
|
28
|
+
#### Defined in
|
|
29
|
+
|
|
30
|
+
[types/wallet.ts:71](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L71)
|
|
31
|
+
|
|
32
|
+
___
|
|
33
|
+
|
|
34
|
+
### sequence
|
|
35
|
+
|
|
36
|
+
• **sequence**: `number`
|
|
37
|
+
|
|
38
|
+
#### Defined in
|
|
39
|
+
|
|
40
|
+
[types/wallet.ts:75](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L75)
|
|
41
|
+
|
|
42
|
+
___
|
|
43
|
+
|
|
44
|
+
### txid
|
|
45
|
+
|
|
46
|
+
• **txid**: `string`
|
|
47
|
+
|
|
48
|
+
#### Defined in
|
|
49
|
+
|
|
50
|
+
[types/wallet.ts:76](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L76)
|
|
51
|
+
|
|
52
|
+
___
|
|
53
|
+
|
|
54
|
+
### txinwitness
|
|
55
|
+
|
|
56
|
+
• **txinwitness**: `string`[]
|
|
57
|
+
|
|
58
|
+
#### Defined in
|
|
59
|
+
|
|
60
|
+
[types/wallet.ts:77](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L77)
|
|
61
|
+
|
|
62
|
+
___
|
|
63
|
+
|
|
64
|
+
### vout
|
|
65
|
+
|
|
66
|
+
• **vout**: `number`
|
|
67
|
+
|
|
68
|
+
#### Defined in
|
|
69
|
+
|
|
70
|
+
[types/wallet.ts:78](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L78)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
[beignet](../README.md) / IVout
|
|
2
|
+
|
|
3
|
+
# Interface: IVout
|
|
4
|
+
|
|
5
|
+
## Table of contents
|
|
6
|
+
|
|
7
|
+
### Properties
|
|
8
|
+
|
|
9
|
+
- [n](IVout.md#n)
|
|
10
|
+
- [scriptPubKey](IVout.md#scriptpubkey)
|
|
11
|
+
- [value](IVout.md#value)
|
|
12
|
+
|
|
13
|
+
## Properties
|
|
14
|
+
|
|
15
|
+
### n
|
|
16
|
+
|
|
17
|
+
• **n**: `number`
|
|
18
|
+
|
|
19
|
+
#### Defined in
|
|
20
|
+
|
|
21
|
+
[types/wallet.ts:345](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L345)
|
|
22
|
+
|
|
23
|
+
___
|
|
24
|
+
|
|
25
|
+
### scriptPubKey
|
|
26
|
+
|
|
27
|
+
• **scriptPubKey**: `Object`
|
|
28
|
+
|
|
29
|
+
#### Type declaration
|
|
30
|
+
|
|
31
|
+
| Name | Type |
|
|
32
|
+
| :------ | :------ |
|
|
33
|
+
| `address?` | `string` |
|
|
34
|
+
| `addresses?` | `string`[] |
|
|
35
|
+
| `asm` | `string` |
|
|
36
|
+
| `hex` | `string` |
|
|
37
|
+
| `reqSigs?` | `number` |
|
|
38
|
+
| `type?` | `string` |
|
|
39
|
+
|
|
40
|
+
#### Defined in
|
|
41
|
+
|
|
42
|
+
[types/wallet.ts:346](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L346)
|
|
43
|
+
|
|
44
|
+
___
|
|
45
|
+
|
|
46
|
+
### value
|
|
47
|
+
|
|
48
|
+
• **value**: `number`
|
|
49
|
+
|
|
50
|
+
#### Defined in
|
|
51
|
+
|
|
52
|
+
[types/wallet.ts:354](https://github.com/synonymdev/beignet/blob/7c83290/src/types/wallet.ts#L354)
|