@btc-vision/transaction 1.0.21 → 1.0.22
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/browser/_version.d.ts +1 -1
- package/browser/index.js +1 -1
- package/browser/keypair/Wallet.d.ts +1 -0
- package/browser/opnet.d.ts +4 -0
- package/browser/transaction/TransactionFactory.d.ts +7 -1
- package/browser/transaction/builders/DeploymentTransaction.d.ts +2 -2
- package/browser/transaction/builders/SharedInteractionTransaction.d.ts +0 -3
- package/browser/transaction/builders/TransactionBuilder.d.ts +5 -30
- package/browser/transaction/builders/UnwarpTransaction.d.ts +19 -0
- package/browser/transaction/enums/TransactionType.d.ts +2 -1
- package/browser/transaction/interfaces/ITransactionParameters.d.ts +7 -5
- package/browser/transaction/processor/PsbtTransaction.d.ts +41 -0
- package/browser/transaction/psbt/PSBTTypes.d.ts +3 -0
- package/browser/transaction/shared/TweakedTransaction.d.ts +48 -0
- package/browser/utxo/OPNetLimitedProvider.d.ts +3 -0
- package/browser/utxo/interfaces/BroadcastResponse.d.ts +7 -0
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/keypair/Wallet.d.ts +1 -0
- package/build/keypair/Wallet.js +3 -0
- package/build/metadata/contracts/wBTC.js +1 -1
- package/build/opnet.d.ts +4 -0
- package/build/opnet.js +4 -0
- package/build/tests/adaptPSBT.d.ts +1 -0
- package/build/tests/adaptPSBT.js +57 -0
- package/build/tests/massWrapReg.d.ts +1 -0
- package/build/tests/massWrapReg.js +86 -0
- package/build/tests/unwrapReg.d.ts +1 -0
- package/build/tests/unwrapReg.js +46 -0
- package/build/transaction/TransactionFactory.d.ts +7 -1
- package/build/transaction/TransactionFactory.js +49 -0
- package/build/transaction/builders/DeploymentTransaction.d.ts +2 -2
- package/build/transaction/builders/DeploymentTransaction.js +1 -18
- package/build/transaction/builders/SharedInteractionTransaction.d.ts +0 -3
- package/build/transaction/builders/SharedInteractionTransaction.js +0 -22
- package/build/transaction/builders/TransactionBuilder.d.ts +5 -30
- package/build/transaction/builders/TransactionBuilder.js +15 -123
- package/build/transaction/builders/UnwarpTransaction.d.ts +19 -0
- package/build/transaction/builders/UnwarpTransaction.js +43 -0
- package/build/transaction/enums/TransactionType.d.ts +2 -1
- package/build/transaction/enums/TransactionType.js +1 -0
- package/build/transaction/interfaces/ITransactionParameters.d.ts +7 -5
- package/build/transaction/processor/PsbtTransaction.d.ts +41 -0
- package/build/transaction/processor/PsbtTransaction.js +102 -0
- package/build/transaction/psbt/PSBTTypes.d.ts +3 -0
- package/build/transaction/psbt/PSBTTypes.js +4 -0
- package/build/transaction/shared/TweakedTransaction.d.ts +48 -0
- package/build/transaction/shared/TweakedTransaction.js +150 -0
- package/build/utxo/OPNetLimitedProvider.d.ts +3 -0
- package/build/utxo/OPNetLimitedProvider.js +21 -5
- package/build/utxo/interfaces/BroadcastResponse.d.ts +7 -0
- package/build/utxo/interfaces/BroadcastResponse.js +1 -0
- package/build/wbtc/BroadcastResponse.d.ts +0 -0
- package/build/wbtc/BroadcastResponse.js +1 -0
- package/bytecode/wbtc.wasm +0 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AddressGenerator.html +2 -2
- package/docs/classes/AddressVerificator.html +2 -2
- package/docs/classes/BitcoinUtils.html +4 -4
- package/docs/classes/CalldataGenerator.html +10 -10
- package/docs/classes/Compressor.html +4 -4
- package/docs/classes/ContractBaseMetadata.html +4 -4
- package/docs/classes/DeploymentGenerator.html +9 -9
- package/docs/classes/DeploymentTransaction.html +100 -81
- package/docs/classes/EcKeyPair.html +16 -16
- package/docs/classes/FundingTransaction.html +79 -58
- package/docs/classes/Generator.html +9 -9
- package/docs/classes/InteractionTransaction.html +89 -70
- package/docs/classes/OPNetLimitedProvider.html +15 -6
- package/docs/classes/PsbtTransaction.html +299 -0
- package/docs/classes/SharedInteractionTransaction.html +95 -76
- package/docs/classes/TapscriptVerificator.html +2 -2
- package/docs/classes/TransactionBuilder.html +102 -82
- package/docs/classes/TransactionFactory.html +7 -5
- package/docs/classes/TweakedSigner.html +2 -2
- package/docs/classes/TweakedTransaction.html +275 -0
- package/docs/classes/Wallet.html +15 -10
- package/docs/classes/WrapTransaction.html +102 -84
- package/docs/classes/WrappedGeneration.html +8 -8
- package/docs/classes/wBTC.html +7 -7
- package/docs/enums/PSBTTypes.html +175 -0
- package/docs/enums/TransactionSequence.html +2 -2
- package/docs/enums/TransactionType.html +3 -2
- package/docs/hierarchy.html +1 -1
- package/docs/interfaces/BroadcastResponse.html +179 -0
- package/docs/interfaces/ContractAddressVerificationParams.html +2 -2
- package/docs/interfaces/DeploymentResult.html +2 -2
- package/docs/interfaces/FetchUTXOParams.html +2 -2
- package/docs/interfaces/FetchUTXOParamsMultiAddress.html +2 -2
- package/docs/interfaces/GenerationConstraints.html +5 -5
- package/docs/interfaces/IDeploymentParameters.html +2 -2
- package/docs/interfaces/IFundingTransactionParameters.html +2 -2
- package/docs/interfaces/IInteractionParameters.html +2 -2
- package/docs/interfaces/ITransactionParameters.html +4 -4
- package/docs/interfaces/ITweakedTransactionData.html +177 -0
- package/docs/interfaces/IUnwrapParameters.html +186 -0
- package/docs/interfaces/IWBTCUTXODocument.html +180 -0
- package/docs/interfaces/IWallet.html +4 -4
- package/docs/interfaces/IWrapParameters.html +2 -2
- package/docs/interfaces/NetworkInformation.html +2 -2
- package/docs/interfaces/PsbtInputExtended.html +1 -1
- package/docs/interfaces/PsbtOutputExtendedAddress.html +2 -2
- package/docs/interfaces/PsbtOutputExtendedScript.html +2 -2
- package/docs/interfaces/PsbtTransactionData.html +179 -0
- package/docs/interfaces/RawUTXOResponse.html +2 -2
- package/docs/interfaces/SharedInteractionParameters.html +2 -2
- package/docs/interfaces/TapLeafScript.html +2 -2
- package/docs/interfaces/TweakSettings.html +3 -3
- package/docs/interfaces/UTXO.html +2 -2
- package/docs/interfaces/UnwrapResult.html +176 -0
- package/docs/interfaces/UpdateInput.html +2 -2
- package/docs/interfaces/VaultUTXOs.html +178 -0
- package/docs/interfaces/WrapResult.html +2 -2
- package/docs/interfaces/WrappedGenerationParameters.html +6 -6
- package/docs/modules.html +14 -3
- package/docs/types/FromBase64Params.html +174 -0
- package/docs/types/PsbtOutputExtended.html +1 -1
- package/docs/variables/version.html +1 -1
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/generators/builders/CalldataGenerator.ts +1 -1
- package/src/keypair/Wallet.ts +10 -0
- package/src/metadata/contracts/wBTC.ts +1 -1
- package/src/opnet.ts +8 -0
- package/src/tests/adaptPSBT.ts +68 -0
- package/src/tests/massWrapReg.ts +111 -0
- package/src/tests/unwrapReg.ts +89 -0
- package/src/transaction/TransactionFactory.ts +77 -1
- package/src/transaction/builders/DeploymentTransaction.ts +6 -35
- package/src/transaction/builders/SharedInteractionTransaction.ts +2 -35
- package/src/transaction/builders/TransactionBuilder.ts +30 -246
- package/src/transaction/builders/UnwarpTransaction.ts +108 -0
- package/src/transaction/enums/TransactionType.ts +1 -0
- package/src/transaction/interfaces/ITransactionParameters.ts +10 -6
- package/src/transaction/processor/PsbtTransaction.ts +212 -0
- package/src/transaction/psbt/PSBTTypes.ts +3 -0
- package/src/transaction/shared/TweakedTransaction.ts +342 -0
- package/src/utxo/OPNetLimitedProvider.ts +47 -9
- package/src/utxo/interfaces/BroadcastResponse.ts +8 -0
|
@@ -157,14 +157,22 @@
|
|
|
157
157
|
--md-sys-color-surface-container-highest: #e9e1d9
|
|
158
158
|
}
|
|
159
159
|
</style><link rel="stylesheet" href="../assets/material-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">OPNet</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">OPNet</a></li><li><a href="OPNetLimitedProvider.html">OPNetLimitedProvider</a></li></ul><h1>Class OPNetLimitedProvider</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><p>Allows to fetch UTXO data from any OPNET node</p>
|
|
160
|
-
</div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/
|
|
160
|
+
</div><div class="tsd-comment tsd-typography"></div></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L9">src/utxo/OPNetLimitedProvider.ts:9</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="OPNetLimitedProvider.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
|
161
161
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="OPNetLimitedProvider.html#opnetAPIUrl" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>opnetAPIUrl</span></a>
|
|
162
162
|
<a href="OPNetLimitedProvider.html#rpc" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>rpc</span></a>
|
|
163
163
|
<a href="OPNetLimitedProvider.html#utxoPath" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>utxo<wbr/>Path</span></a>
|
|
164
|
-
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="OPNetLimitedProvider.html#
|
|
164
|
+
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="OPNetLimitedProvider.html#broadcastTransaction" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>broadcast<wbr/>Transaction</span></a>
|
|
165
|
+
<a href="OPNetLimitedProvider.html#fetchUTXO" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fetchUTXO</span></a>
|
|
165
166
|
<a href="OPNetLimitedProvider.html#fetchUTXOMultiAddr" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fetchUTXOMulti<wbr/>Addr</span></a>
|
|
166
167
|
<a href="OPNetLimitedProvider.html#fetchWrapParameters" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fetch<wbr/>Wrap<wbr/>Parameters</span></a>
|
|
167
|
-
|
|
168
|
+
<a href="OPNetLimitedProvider.html#rpcMethod" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>rpc<wbr/>Method</span></a>
|
|
169
|
+
</div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_OPNetLimitedProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new OPNet<wbr/>Limited<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">opnetAPIUrl</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="OPNetLimitedProvider.html" class="tsd-signature-type tsd-kind-class">OPNetLimitedProvider</a><a href="#constructor.new_OPNetLimitedProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">opnetAPIUrl</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="OPNetLimitedProvider.html" class="tsd-signature-type tsd-kind-class">OPNetLimitedProvider</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L13">src/utxo/OPNetLimitedProvider.ts:13</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-private"><a id="opnetAPIUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>opnetAPIUrl</span><a href="#opnetAPIUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">opnetAPIUrl</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L13">src/utxo/OPNetLimitedProvider.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="rpc" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>rpc</span><a href="#rpc" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">rpc</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'json-rpc'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L11">src/utxo/OPNetLimitedProvider.ts:11</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="utxoPath" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>utxo<wbr/>Path</span><a href="#utxoPath" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">utxo<wbr/>Path</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> = 'address/utxos'</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L10">src/utxo/OPNetLimitedProvider.ts:10</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="broadcastTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>broadcast<wbr/>Transaction</span><a href="#broadcastTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="broadcastTransaction.broadcastTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">broadcast<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">transaction</span>, <span class="tsd-kind-parameter">psbt</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/BroadcastResponse.html" class="tsd-signature-type tsd-kind-interface">BroadcastResponse</a><span class="tsd-signature-symbol">></span><a href="#broadcastTransaction.broadcastTransaction-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Broadcasts a transaction to the OPNET node</p>
|
|
170
|
+
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">transaction</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The transaction to broadcast</p>
|
|
171
|
+
</div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">psbt</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the transaction is a PSBT</p>
|
|
172
|
+
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="../interfaces/BroadcastResponse.html" class="tsd-signature-type tsd-kind-interface">BroadcastResponse</a><span class="tsd-signature-symbol">></span></h4><ul>
|
|
173
|
+
<li>The response from the OPNET node</li>
|
|
174
|
+
</ul>
|
|
175
|
+
<div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L126">src/utxo/OPNetLimitedProvider.ts:126</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fetchUTXO" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>fetchUTXO</span><a href="#fetchUTXO" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fetchUTXO.fetchUTXO-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">fetchUTXO</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">settings</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/UTXO.html" class="tsd-signature-type tsd-kind-interface">UTXO</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><a href="#fetchUTXO.fetchUTXO-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Fetches UTXO data from the OPNET node</p>
|
|
168
176
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">settings</span>: <a href="../interfaces/FetchUTXOParams.html" class="tsd-signature-type tsd-kind-interface">FetchUTXOParams</a></span><div class="tsd-comment tsd-typography"><p>The settings to fetch UTXO data</p>
|
|
169
177
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/UTXO.html" class="tsd-signature-type tsd-kind-interface">UTXO</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4><ul>
|
|
170
178
|
<li>The UTXOs fetched</li>
|
|
@@ -172,7 +180,7 @@
|
|
|
172
180
|
<div class="tsd-comment tsd-typography"><h4>Throws</h4><ul>
|
|
173
181
|
<li>If UTXOs could not be fetched</li>
|
|
174
182
|
</ul>
|
|
175
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/
|
|
183
|
+
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L21">src/utxo/OPNetLimitedProvider.ts:21</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fetchUTXOMultiAddr" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>fetchUTXOMulti<wbr/>Addr</span><a href="#fetchUTXOMultiAddr" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fetchUTXOMultiAddr.fetchUTXOMultiAddr-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">fetchUTXOMulti<wbr/>Addr</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">settings</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/UTXO.html" class="tsd-signature-type tsd-kind-interface">UTXO</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span><a href="#fetchUTXOMultiAddr.fetchUTXOMultiAddr-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Fetches UTXO data from the OPNET node for multiple addresses</p>
|
|
176
184
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">settings</span>: <a href="../interfaces/FetchUTXOParamsMultiAddress.html" class="tsd-signature-type tsd-kind-interface">FetchUTXOParamsMultiAddress</a></span><div class="tsd-comment tsd-typography"><p>The settings to fetch UTXO data</p>
|
|
177
185
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/UTXO.html" class="tsd-signature-type tsd-kind-interface">UTXO</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">></span></h4><ul>
|
|
178
186
|
<li>The UTXOs fetched</li>
|
|
@@ -180,7 +188,7 @@
|
|
|
180
188
|
<div class="tsd-comment tsd-typography"><h4>Throws</h4><ul>
|
|
181
189
|
<li>If UTXOs could not be fetched</li>
|
|
182
190
|
</ul>
|
|
183
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/
|
|
191
|
+
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L83">src/utxo/OPNetLimitedProvider.ts:83</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="fetchWrapParameters" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>fetch<wbr/>Wrap<wbr/>Parameters</span><a href="#fetchWrapParameters" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="fetchWrapParameters.fetchWrapParameters-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">fetch<wbr/>Wrap<wbr/>Parameters</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">amount</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="WrappedGeneration.html" class="tsd-signature-type tsd-kind-class">WrappedGeneration</a><span class="tsd-signature-symbol">></span><a href="#fetchWrapParameters.fetchWrapParameters-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Fetches the wrap parameters from the OPNET node</p>
|
|
184
192
|
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">amount</span>: <span class="tsd-signature-type">bigint</span></span><div class="tsd-comment tsd-typography"><p>The amount to wrap</p>
|
|
185
193
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><a href="WrappedGeneration.html" class="tsd-signature-type tsd-kind-class">WrappedGeneration</a><span class="tsd-signature-symbol">></span></h4><ul>
|
|
186
194
|
<li>The wrap parameters fetched</li>
|
|
@@ -188,7 +196,8 @@
|
|
|
188
196
|
<div class="tsd-comment tsd-typography"><h4>Throws</h4><ul>
|
|
189
197
|
<li>If wrap parameters could not be fetched</li>
|
|
190
198
|
</ul>
|
|
191
|
-
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/
|
|
199
|
+
</div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L194">src/utxo/OPNetLimitedProvider.ts:194</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><a id="rpcMethod" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>rpc<wbr/>Method</span><a href="#rpcMethod" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="rpcMethod.rpcMethod-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">rpc<wbr/>Method</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">method</span>, <span class="tsd-kind-parameter">paramsMethod</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span><a href="#rpcMethod.rpcMethod-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Fetches to the OPNET node</p>
|
|
200
|
+
</div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">method</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">paramsMethod</span>: <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span></h4><div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/transaction/blob/3eb06e8bec447337eaa71371e20bf84046f81450/src/utxo/OPNetLimitedProvider.ts#L146">src/utxo/OPNetLimitedProvider.ts:146</a></li></ul></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a><a href="#opnetAPIUrl" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>opnetAPIUrl</span></a><a href="#rpc" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>rpc</span></a><a href="#utxoPath" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>utxo<wbr/>Path</span></a><a href="#broadcastTransaction" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>broadcast<wbr/>Transaction</span></a><a href="#fetchUTXO" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fetchUTXO</span></a><a href="#fetchUTXOMultiAddr" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fetchUTXOMulti<wbr/>Addr</span></a><a href="#fetchWrapParameters" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>fetch<wbr/>Wrap<wbr/>Parameters</span></a><a href="#rpcMethod" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>rpc<wbr/>Method</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>OPNet</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div><script>
|
|
192
201
|
try {
|
|
193
202
|
const generateLinkElement = document.querySelector(".tsd-generator a");
|
|
194
203
|
const link = document.createElement("a");
|