opnet 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (205) hide show
  1. package/browser/_version.d.ts +1 -1
  2. package/browser/contracts/ContractData.d.ts +5 -3
  3. package/browser/contracts/interfaces/IRawContract.d.ts +5 -3
  4. package/browser/index.js +1 -1
  5. package/browser/index.js.LICENSE.txt +2 -0
  6. package/browser/interfaces/opnet/OPNetTransactionTypes.d.ts +4 -1
  7. package/browser/opnet.d.ts +11 -6
  8. package/browser/providers/AbstractRpcProvider.d.ts +1 -1
  9. package/browser/scripts/testMethodsReg.d.ts +1 -0
  10. package/browser/transactions/Transaction.d.ts +4 -3
  11. package/browser/transactions/decoders/DeploymentTransaction.d.ts +17 -0
  12. package/browser/transactions/decoders/GenericTransaction.d.ts +6 -0
  13. package/browser/transactions/decoders/InteractionTransaction.d.ts +15 -0
  14. package/browser/transactions/decoders/WrapTransaction.d.ts +15 -0
  15. package/browser/transactions/interfaces/ITransaction.d.ts +8 -27
  16. package/browser/transactions/interfaces/transactions/ICommonTransaction.d.ts +7 -0
  17. package/browser/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +13 -0
  18. package/browser/transactions/interfaces/transactions/IInteractionTransaction.d.ts +14 -0
  19. package/browser/transactions/interfaces/transactions/IWrapTransaction.d.ts +10 -0
  20. package/browser/transactions/metadata/TransactionInput.d.ts +16 -0
  21. package/browser/transactions/metadata/TransactionOutput.d.ts +19 -0
  22. package/browser/transactions/metadata/TransactionReceipt.d.ts +11 -0
  23. package/build/_version.d.ts +1 -1
  24. package/build/_version.js +1 -1
  25. package/build/contracts/ContractData.d.ts +5 -3
  26. package/build/contracts/ContractData.js +2 -0
  27. package/build/contracts/interfaces/IRawContract.d.ts +5 -3
  28. package/build/interfaces/opnet/OPNetTransactionTypes.d.ts +4 -1
  29. package/build/interfaces/opnet/OPNetTransactionTypes.js +2 -0
  30. package/build/opnet.d.ts +11 -6
  31. package/build/opnet.js +11 -6
  32. package/build/providers/AbstractRpcProvider.d.ts +1 -1
  33. package/build/providers/AbstractRpcProvider.js +1 -1
  34. package/build/scripts/testMethods.js +1 -1
  35. package/build/scripts/testMethodsReg.d.ts +1 -0
  36. package/build/scripts/testMethodsReg.js +10 -0
  37. package/build/transactions/Transaction.d.ts +4 -3
  38. package/build/transactions/Transaction.js +5 -3
  39. package/build/transactions/TransactionParser.js +8 -4
  40. package/build/transactions/decoders/DeploymentTransaction.d.ts +17 -0
  41. package/build/transactions/decoders/DeploymentTransaction.js +26 -0
  42. package/build/transactions/decoders/GenericTransaction.d.ts +6 -0
  43. package/build/transactions/decoders/GenericTransaction.js +6 -0
  44. package/build/transactions/decoders/InteractionTransaction.d.ts +15 -0
  45. package/build/transactions/decoders/InteractionTransaction.js +21 -0
  46. package/build/transactions/decoders/WrapInteractionTransaction.d.ts +15 -0
  47. package/build/transactions/decoders/WrapInteractionTransaction.js +21 -0
  48. package/build/transactions/decoders/WrapTransaction.d.ts +15 -0
  49. package/build/transactions/decoders/WrapTransaction.js +30 -0
  50. package/build/transactions/interfaces/ITransaction.d.ts +8 -27
  51. package/build/transactions/interfaces/IWrapTransaction.d.ts +3 -0
  52. package/build/transactions/interfaces/IWrapTransaction.js +1 -0
  53. package/build/transactions/interfaces/transactions/ICommonTransaction.d.ts +7 -0
  54. package/build/transactions/interfaces/transactions/ICommonTransaction.js +1 -0
  55. package/build/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +13 -0
  56. package/build/transactions/interfaces/transactions/IDeploymentTransaction.js +1 -0
  57. package/build/transactions/interfaces/transactions/IInteractionTransaction.d.ts +14 -0
  58. package/build/transactions/interfaces/transactions/IInteractionTransaction.js +1 -0
  59. package/build/transactions/interfaces/transactions/IWrapTransaction.d.ts +10 -0
  60. package/build/transactions/interfaces/transactions/IWrapTransaction.js +1 -0
  61. package/build/transactions/metadata/TransactionInput.d.ts +16 -0
  62. package/build/transactions/metadata/TransactionInput.js +14 -0
  63. package/build/transactions/metadata/TransactionOutput.d.ts +19 -0
  64. package/build/transactions/metadata/TransactionOutput.js +16 -0
  65. package/build/transactions/metadata/TransactionReceipt.d.ts +11 -0
  66. package/build/transactions/metadata/TransactionReceipt.js +53 -0
  67. package/build/transactions/types/DeploymentTransaction.d.ts +16 -0
  68. package/build/transactions/types/DeploymentTransaction.js +24 -0
  69. package/build/transactions/types/GenericTransaction.d.ts +6 -0
  70. package/build/transactions/types/GenericTransaction.js +6 -0
  71. package/build/transactions/types/InteractionTransaction.d.ts +15 -0
  72. package/build/transactions/types/InteractionTransaction.js +21 -0
  73. package/cjs/_version.d.ts +1 -1
  74. package/cjs/_version.js +1 -1
  75. package/cjs/block/interfaces/BlockWitness.d.ts +11 -0
  76. package/cjs/block/interfaces/BlockWitness.js +2 -0
  77. package/cjs/contracts/Contract.d.ts +3 -1
  78. package/cjs/contracts/Contract.js +18 -12
  79. package/cjs/contracts/interfaces/IContract.d.ts +3 -1
  80. package/cjs/generator/WrappedGenerationParameters.d.ts +9 -0
  81. package/cjs/generator/WrappedGenerationParameters.js +18 -0
  82. package/cjs/opnet.d.ts +6 -1
  83. package/cjs/opnet.js +6 -1
  84. package/cjs/providers/AbstractRpcProvider.d.ts +8 -0
  85. package/cjs/providers/AbstractRpcProvider.js +63 -0
  86. package/cjs/providers/interfaces/Generate.d.ts +19 -0
  87. package/cjs/providers/interfaces/Generate.js +7 -0
  88. package/cjs/providers/interfaces/ReorgInformation.d.ts +5 -0
  89. package/cjs/providers/interfaces/ReorgInformation.js +2 -0
  90. package/cjs/scripts/ITestContract.d.ts +2 -2
  91. package/cjs/scripts/ITestContract.js +2 -2
  92. package/cjs/scripts/testContract.js +1 -1
  93. package/cjs/scripts/testMethods.js +8 -15
  94. package/cjs/transactions/TransactionReceipt.d.ts +3 -3
  95. package/cjs/transactions/TransactionReceipt.js +35 -16
  96. package/cjs/transactions/interfaces/BroadcastedTransaction.d.ts +7 -0
  97. package/cjs/transactions/interfaces/BroadcastedTransaction.js +2 -0
  98. package/cjs/transactions/interfaces/ITransaction.d.ts +2 -3
  99. package/cjs/transactions/interfaces/ITransactionReceipt.d.ts +9 -1
  100. package/docs/assets/navigation.js +1 -1
  101. package/docs/assets/search.js +1 -1
  102. package/docs/classes/AbstractRpcProvider.html +18 -18
  103. package/docs/classes/BaseContract.html +7 -7
  104. package/docs/classes/BitcoinAddress.html +2 -2
  105. package/docs/classes/BitcoinInterface.html +2 -2
  106. package/docs/classes/BitcoinUtils.html +2 -2
  107. package/docs/classes/Block.html +3 -3
  108. package/docs/classes/CallResult.html +2 -2
  109. package/docs/classes/ContractData.html +3 -2
  110. package/docs/classes/DeploymentTransaction.html +26 -22
  111. package/docs/classes/GenericTransaction.html +15 -13
  112. package/docs/classes/IBaseContract.html +7 -7
  113. package/docs/classes/InteractionTransaction.html +22 -20
  114. package/docs/classes/JSONRpcProvider.html +17 -17
  115. package/docs/classes/OPNetEvent.html +2 -2
  116. package/docs/classes/StoredValue.html +2 -2
  117. package/docs/classes/TransactionBase.html +15 -13
  118. package/docs/classes/TransactionInput.html +2 -2
  119. package/docs/classes/TransactionOutput.html +2 -2
  120. package/docs/classes/TransactionParser.html +2 -2
  121. package/docs/classes/TransactionReceipt.html +7 -7
  122. package/docs/classes/UTXO.html +2 -2
  123. package/docs/classes/WebSocketRpcProvider.html +17 -17
  124. package/docs/classes/WrapTransaction.html +229 -0
  125. package/docs/classes/WrappedGeneration.html +7 -7
  126. package/docs/enums/BitcoinAbiTypes.html +2 -2
  127. package/docs/enums/GenerateTarget.html +2 -2
  128. package/docs/enums/OPNetTransactionTypes.html +4 -2
  129. package/docs/functions/getContract.html +1 -1
  130. package/docs/hierarchy.html +1 -1
  131. package/docs/interfaces/BaseContractProperties.html +2 -2
  132. package/docs/interfaces/BitcoinAbiValue.html +3 -3
  133. package/docs/interfaces/BitcoinInterfaceAbiBase.html +2 -2
  134. package/docs/interfaces/BroadcastedTransaction.html +6 -6
  135. package/docs/interfaces/ContractEvents.html +1 -1
  136. package/docs/interfaces/EventBaseData.html +2 -2
  137. package/docs/interfaces/FunctionBaseData.html +2 -2
  138. package/docs/interfaces/GenerationConstraints.html +7 -7
  139. package/docs/interfaces/IAccessList.html +1 -1
  140. package/docs/interfaces/IAccessListItem.html +1 -1
  141. package/docs/interfaces/IBlock.html +3 -3
  142. package/docs/interfaces/IBlockCommon.html +3 -3
  143. package/docs/interfaces/IBlockWitness.html +2 -2
  144. package/docs/interfaces/IBlockWitnessAPI.html +2 -2
  145. package/docs/interfaces/ICallRequestError.html +2 -2
  146. package/docs/interfaces/ICallResultData.html +2 -2
  147. package/docs/interfaces/ICommonTransaction.html +17 -15
  148. package/docs/interfaces/IContract.html +2 -2
  149. package/docs/interfaces/IDecodedEvent.html +2 -2
  150. package/docs/interfaces/IDeploymentTransaction.html +26 -22
  151. package/docs/interfaces/IGenericTransaction.html +14 -12
  152. package/docs/interfaces/IInteractionTransaction.html +22 -20
  153. package/docs/interfaces/IRawContract.html +3 -2
  154. package/docs/interfaces/IRawContractEvents.html +1 -1
  155. package/docs/interfaces/IStorageValue.html +2 -2
  156. package/docs/interfaces/ITransactionBase.html +14 -12
  157. package/docs/interfaces/ITransactionInput.html +2 -2
  158. package/docs/interfaces/ITransactionOutput.html +2 -2
  159. package/docs/interfaces/ITransactionReceipt.html +5 -5
  160. package/docs/interfaces/IUTXO.html +2 -2
  161. package/docs/interfaces/IWrapTransaction.html +228 -0
  162. package/docs/interfaces/NetEventDocument.html +5 -5
  163. package/docs/interfaces/ReorgInformation.html +2 -2
  164. package/docs/interfaces/WrappedGenerationParameters.html +6 -6
  165. package/docs/modules.html +3 -0
  166. package/docs/types/BaseContractProperty.html +1 -1
  167. package/docs/types/BitcoinAddressLike.html +1 -1
  168. package/docs/types/BitcoinInterfaceAbi.html +1 -1
  169. package/docs/types/BlockHeaderChecksumProof.html +1 -1
  170. package/docs/types/BlockWitnesses.html +1 -1
  171. package/docs/types/ContractDecodedObjectResult.html +1 -1
  172. package/docs/types/DecodedCallResult.html +1 -1
  173. package/docs/types/DecodedOutput.html +1 -1
  174. package/docs/types/GenerationParameters.html +1 -1
  175. package/docs/types/ICallResult.html +1 -1
  176. package/docs/types/ITransaction.html +2 -2
  177. package/docs/types/InteractionType.html +174 -0
  178. package/docs/types/PointerLike.html +1 -1
  179. package/docs/types/RawContractEvents.html +1 -1
  180. package/docs/types/UTXOs.html +1 -1
  181. package/docs/variables/version.html +1 -1
  182. package/package.json +6 -5
  183. package/src/_version.ts +1 -1
  184. package/src/contracts/ContractData.ts +11 -3
  185. package/src/contracts/interfaces/IRawContract.ts +7 -3
  186. package/src/interfaces/opnet/OPNetTransactionTypes.ts +7 -0
  187. package/src/opnet.ts +13 -6
  188. package/src/providers/AbstractRpcProvider.ts +1 -1
  189. package/src/scripts/testMethods.ts +54 -54
  190. package/src/scripts/testMethodsReg.ts +20 -0
  191. package/src/transactions/Transaction.ts +10 -3
  192. package/src/transactions/TransactionParser.ts +13 -10
  193. package/src/transactions/{DeploymentTransaction.ts → decoders/DeploymentTransaction.ts} +6 -3
  194. package/src/transactions/{GenericTransaction.ts → decoders/GenericTransaction.ts} +3 -3
  195. package/src/transactions/{InteractionTransaction.ts → decoders/InteractionTransaction.ts} +4 -4
  196. package/src/transactions/decoders/WrapTransaction.ts +69 -0
  197. package/src/transactions/interfaces/ITransaction.ts +16 -107
  198. package/src/transactions/interfaces/transactions/ICommonTransaction.ts +19 -0
  199. package/src/transactions/interfaces/transactions/IDeploymentTransaction.ts +50 -0
  200. package/src/transactions/interfaces/transactions/IInteractionTransaction.ts +50 -0
  201. package/src/transactions/interfaces/transactions/IWrapTransaction.ts +43 -0
  202. package/src/transactions/{TransactionReceipt.ts → metadata/TransactionReceipt.ts} +1 -1
  203. package/tsconfig.webpack.json +8 -0
  204. /package/src/transactions/{TransactionInput.ts → metadata/TransactionInput.ts} +0 -0
  205. /package/src/transactions/{TransactionOutput.ts → metadata/TransactionOutput.ts} +0 -0
@@ -158,7 +158,7 @@
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="WebSocketRpcProvider.html">WebSocketRpcProvider</a></li></ul><h1>Class WebSocketRpcProvider</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><h4>Description</h4><p>This class is used to provide a WebSocket RPC provider.
160
160
  WebSocketRpcProvider</p>
161
- </div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#WebSocketRpcProvider">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a><ul class="tsd-hierarchy"><li><span class="target">WebSocketRpcProvider</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/WebsocketRpcProvider.ts#L9">src/providers/WebsocketRpcProvider.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="WebSocketRpcProvider.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
+ </div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#WebSocketRpcProvider">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a><ul class="tsd-hierarchy"><li><span class="target">WebSocketRpcProvider</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/WebsocketRpcProvider.ts#L9">src/providers/WebsocketRpcProvider.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="WebSocketRpcProvider.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>
162
162
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="WebSocketRpcProvider.html#provider" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>provider</span></a>
163
163
  <a href="WebSocketRpcProvider.html#wsUrl" 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>ws<wbr/>Url</span></a>
164
164
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="WebSocketRpcProvider.html#call" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call</span></a>
@@ -177,7 +177,7 @@
177
177
  <a href="WebSocketRpcProvider.html#providerUrl" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a>
178
178
  <a href="WebSocketRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a>
179
179
  <a href="WebSocketRpcProvider.html#sendRawTransaction" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</span></a>
180
- </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_WebSocketRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Web<wbr/>Socket<wbr/>Rpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a><a href="#constructor.new_WebSocketRpcProvider" 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">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/WebsocketRpcProvider.ts#L14">src/providers/WebsocketRpcProvider.ts:14</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-protected"><a id="provider" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>provider</span><a href="#provider" 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">provider</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WebSocketProvider</span></div><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#provider">provider</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/WebsocketRpcProvider.ts#L12">src/providers/WebsocketRpcProvider.ts:12</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="wsUrl" 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>ws<wbr/>Url</span><a href="#wsUrl" 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">ws<wbr/>Url</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/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/WebsocketRpcProvider.ts#L10">src/providers/WebsocketRpcProvider.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 tsd-is-inherited"><a id="call" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call</span><a href="#call" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="call.call-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">to</span>, <span class="tsd-kind-parameter">data</span>, <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../interfaces/ICallRequestError.html" class="tsd-signature-type tsd-kind-interface">ICallRequestError</a><span class="tsd-signature-symbol"> | </span><a href="CallResult.html" class="tsd-signature-type tsd-kind-class">CallResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#call.call-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>Call a contract function with a given calldata.</p>
180
+ </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_WebSocketRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Web<wbr/>Socket<wbr/>Rpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a><a href="#constructor.new_WebSocketRpcProvider" 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">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/WebsocketRpcProvider.ts#L14">src/providers/WebsocketRpcProvider.ts:14</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-protected"><a id="provider" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>provider</span><a href="#provider" 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">provider</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WebSocketProvider</span></div><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#provider">provider</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/WebsocketRpcProvider.ts#L12">src/providers/WebsocketRpcProvider.ts:12</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="wsUrl" 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>ws<wbr/>Url</span><a href="#wsUrl" 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">ws<wbr/>Url</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/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/WebsocketRpcProvider.ts#L10">src/providers/WebsocketRpcProvider.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 tsd-is-inherited"><a id="call" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call</span><a href="#call" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="call.call-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">to</span>, <span class="tsd-kind-parameter">data</span>, <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../interfaces/ICallRequestError.html" class="tsd-signature-type tsd-kind-interface">ICallRequestError</a><span class="tsd-signature-symbol"> | </span><a href="CallResult.html" class="tsd-signature-type tsd-kind-class">CallResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#call.call-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>Call a contract function with a given calldata.</p>
181
181
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">to</span>: <a href="../types/BitcoinAddressLike.html" class="tsd-signature-type tsd-kind-type-alias">BitcoinAddressLike</a></span><div class="tsd-comment tsd-typography"><p>The address of the contract</p>
182
182
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">data</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">Buffer</span></span><div class="tsd-comment tsd-typography"><p>The calldata of the contract function</p>
183
183
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">from</span>: <a href="../types/BitcoinAddressLike.html" class="tsd-signature-type tsd-kind-type-alias">BitcoinAddressLike</a></span><div class="tsd-comment tsd-typography"><p>The address to call the contract from</p>
@@ -187,13 +187,13 @@
187
187
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">call</span><span class="hl-1">(</span><span class="hl-2">&#39;tb1pth90usc4f528aqphpjrfkkdm4vy8hxnt5gps6aau2nva6pxeshtqqzlt3a&#39;</span><span class="hl-1">, </span><span class="hl-4">Buffer</span><span class="hl-1">.</span><span class="hl-0">from</span><span class="hl-1">(</span><span class="hl-2">&#39;0x12345678&#39;</span><span class="hl-1">));</span>
188
188
  </code><button>Copy</button></pre>
189
189
  <h4>Throws</h4><p>If something went wrong while calling the contract</p>
190
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#call">call</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L279">src/providers/AbstractRpcProvider.ts:279</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBalance" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Balance</span><a href="#getBalance" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBalance.getBalance-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Balance</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">addressLike</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">&lt;</span><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">&gt;</span><a href="#getBalance.getBalance-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>Get the bitcoin balance of an address.</p>
190
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#call">call</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L279">src/providers/AbstractRpcProvider.ts:279</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBalance" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Balance</span><a href="#getBalance" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBalance.getBalance-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Balance</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">addressLike</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">&lt;</span><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">&gt;</span><a href="#getBalance.getBalance-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>Get the bitcoin balance of an address.</p>
191
191
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">addressLike</span>: <a href="../types/BitcoinAddressLike.html" class="tsd-signature-type tsd-kind-type-alias">BitcoinAddressLike</a></span><div class="tsd-comment tsd-typography"><p>The address to get the balance of</p>
192
192
  </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">&lt;</span><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The balance of the address</p>
193
193
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the balance of a bitcoin address.</p>
194
194
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getBalance</span><span class="hl-1">(</span><span class="hl-2">&#39;bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq&#39;</span><span class="hl-1">);</span>
195
195
  </code><button>Copy</button></pre>
196
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBalance">getBalance</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L106">src/providers/AbstractRpcProvider.ts:106</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlock" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block</span><a href="#getBlock" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlock.getBlock-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumberOrHash</span>, <span class="tsd-kind-parameter">prefetchTxs</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlock.getBlock-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>Get block by number or hash.</p>
196
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBalance">getBalance</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L106">src/providers/AbstractRpcProvider.ts:106</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlock" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block</span><a href="#getBlock" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlock.getBlock-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumberOrHash</span>, <span class="tsd-kind-parameter">prefetchTxs</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlock.getBlock-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>Get block by number or hash.</p>
197
197
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">blockNumberOrHash</span>: <span class="tsd-signature-type">BlockTag</span></span><div class="tsd-comment tsd-typography"><p>The block number or hash</p>
198
198
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">prefetchTxs</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Whether to prefetch transactions</p>
199
199
  </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">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested block</p>
@@ -201,17 +201,17 @@
201
201
  <h4>Throws</h4><p>If the block is not found</p>
202
202
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getBlock</span><span class="hl-1">(</span><span class="hl-5">123456</span><span class="hl-1">);</span>
203
203
  </code><button>Copy</button></pre>
204
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlock">getBlock</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L70">src/providers/AbstractRpcProvider.ts:70</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockByHash" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span><a href="#getBlockByHash" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockByHash.getBlockByHash-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>By<wbr/>Hash</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockHash</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">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockByHash.getBlockByHash-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>Get block by hash. This is the same method as getBlock.</p>
204
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlock">getBlock</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L70">src/providers/AbstractRpcProvider.ts:70</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockByHash" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span><a href="#getBlockByHash" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockByHash.getBlockByHash-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>By<wbr/>Hash</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockHash</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">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockByHash.getBlockByHash-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>Get block by hash. This is the same method as getBlock.</p>
205
205
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">blockHash</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The block hash</p>
206
206
  </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">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested block</p>
207
207
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a block by its hash. Note that this method is the same as getBlock.</p>
208
208
  <h4>Throws</h4><p>If the block is not found</p>
209
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockByHash">getBlockByHash</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L95">src/providers/AbstractRpcProvider.ts:95</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Number</span><a href="#getBlockNumber" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockNumber.getBlockNumber-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Number</span><span class="tsd-signature-symbol">(</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">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockNumber.getBlockNumber-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>Get the latest block number.</p>
209
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockByHash">getBlockByHash</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L95">src/providers/AbstractRpcProvider.ts:95</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Number</span><a href="#getBlockNumber" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockNumber.getBlockNumber-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Number</span><span class="tsd-signature-symbol">(</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">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockNumber.getBlockNumber-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>Get the latest block number.</p>
210
210
  </div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The latest block number</p>
211
211
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the latest block number.</p>
212
212
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getBlockNumber</span><span class="hl-1">();</span>
213
213
  </code><button>Copy</button></pre>
214
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockNumber">getBlockNumber</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L57">src/providers/AbstractRpcProvider.ts:57</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockWitness" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Witness</span><a href="#getBlockWitness" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockWitness.getBlockWitness-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Witness</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">trusted</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">limit</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">page</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../types/BlockWitnesses.html" class="tsd-signature-type tsd-kind-type-alias">BlockWitnesses</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockWitness.getBlockWitness-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>Get block witnesses.</p>
214
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockNumber">getBlockNumber</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L57">src/providers/AbstractRpcProvider.ts:57</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockWitness" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Witness</span><a href="#getBlockWitness" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockWitness.getBlockWitness-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Witness</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">trusted</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">limit</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">page</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../types/BlockWitnesses.html" class="tsd-signature-type tsd-kind-type-alias">BlockWitnesses</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockWitness.getBlockWitness-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>Get block witnesses.</p>
215
215
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">height</span>: <span class="tsd-signature-type">BigNumberish</span><span class="tsd-signature-symbol"> = -1</span></span><div class="tsd-comment tsd-typography"><p>The block number or hash, use -1 for latest block</p>
216
216
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">trusted</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether to trust the witnesses or not</p>
217
217
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">limit</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The maximum number of witnesses to return</p>
@@ -221,7 +221,7 @@
221
221
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getBlockWitness</span><span class="hl-1">(</span><span class="hl-5">123456</span><span class="hl-6">n</span><span class="hl-1">);</span>
222
222
  </code><button>Copy</button></pre>
223
223
  <h4>Throws</h4><p>If something went wrong while fetching the witnesses</p>
224
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockWitness">getBlockWitness</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L356">src/providers/AbstractRpcProvider.ts:356</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getCode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Code</span><a href="#getCode" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getCode.getCode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Code</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">onlyBytecode</span><span class="tsd-signature-symbol">?</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">&lt;</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><a href="ContractData.html" class="tsd-signature-type tsd-kind-class">ContractData</a><span class="tsd-signature-symbol">&gt;</span><a href="#getCode.getCode-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>Get the contract code of an address.</p>
224
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockWitness">getBlockWitness</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L356">src/providers/AbstractRpcProvider.ts:356</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getCode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Code</span><a href="#getCode" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getCode.getCode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Code</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">onlyBytecode</span><span class="tsd-signature-symbol">?</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">&lt;</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><a href="ContractData.html" class="tsd-signature-type tsd-kind-class">ContractData</a><span class="tsd-signature-symbol">&gt;</span><a href="#getCode.getCode-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>Get the contract code of an address.</p>
225
225
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">address</span>: <a href="../types/BitcoinAddressLike.html" class="tsd-signature-type tsd-kind-type-alias">BitcoinAddressLike</a></span><div class="tsd-comment tsd-typography"><p>The address of the contract</p>
226
226
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">onlyBytecode</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Whether to return only the bytecode</p>
227
227
  </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">&lt;</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><a href="ContractData.html" class="tsd-signature-type tsd-kind-class">ContractData</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The contract data or bytecode</p>
@@ -229,11 +229,11 @@
229
229
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getCode</span><span class="hl-1">(</span><span class="hl-2">&#39;tb1pth90usc4f528aqphpjrfkkdm4vy8hxnt5gps6aau2nva6pxeshtqqzlt3a&#39;</span><span class="hl-1">);</span>
230
230
  </code><button>Copy</button></pre>
231
231
  <h4>Throws</h4><p>If something went wrong while fetching the contract code</p>
232
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getCode">getCode</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L213">src/providers/AbstractRpcProvider.ts:213</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Network</span><a href="#getNetwork" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getNetwork.getNetwork-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Network</span><span class="tsd-signature-symbol">(</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">&lt;</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">&gt;</span><a href="#getNetwork.getNetwork-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>Get the current connected network type.</p>
232
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getCode">getCode</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L213">src/providers/AbstractRpcProvider.ts:213</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Network</span><a href="#getNetwork" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getNetwork.getNetwork-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Network</span><span class="tsd-signature-symbol">(</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">&lt;</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">&gt;</span><a href="#getNetwork.getNetwork-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>Get the current connected network type.</p>
233
233
  </div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The current connected network type</p>
234
234
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the current connected network type.</p>
235
235
  <h4>Throws</h4><p>If the chain id is invalid</p>
236
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getNetwork">getNetwork</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L188">src/providers/AbstractRpcProvider.ts:188</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getReorg" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Reorg</span><a href="#getReorg" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getReorg.getReorg-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Reorg</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">fromBlock</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">toBlock</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getReorg.getReorg-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>Get reorgs that happened between two blocks.</p>
236
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getNetwork">getNetwork</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L188">src/providers/AbstractRpcProvider.ts:188</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getReorg" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Reorg</span><a href="#getReorg" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getReorg.getReorg-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Reorg</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">fromBlock</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">toBlock</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getReorg.getReorg-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>Get reorgs that happened between two blocks.</p>
237
237
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">fromBlock</span>: <span class="tsd-signature-type">BigNumberish</span></span><div class="tsd-comment tsd-typography"><p>The block number to start from</p>
238
238
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">toBlock</span>: <span class="tsd-signature-type">BigNumberish</span></span><div class="tsd-comment tsd-typography"><p>The block number to end at</p>
239
239
  </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">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The reorg information</p>
@@ -241,7 +241,7 @@
241
241
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getReorg</span><span class="hl-1">(</span><span class="hl-5">123456</span><span class="hl-6">n</span><span class="hl-1">, </span><span class="hl-5">123457</span><span class="hl-6">n</span><span class="hl-1">);</span>
242
242
  </code><button>Copy</button></pre>
243
243
  <h4>Throws</h4><p>If something went wrong while fetching the reorg information</p>
244
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getReorg">getReorg</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L389">src/providers/AbstractRpcProvider.ts:389</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getStorageAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Storage<wbr/>At</span><a href="#getStorageAt" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getStorageAt.getStorageAt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Storage<wbr/>At</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">rawPointer</span>, <span class="tsd-kind-parameter">proofs</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">&gt;</span><a href="#getStorageAt.getStorageAt-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>Get the storage at a specific address and pointer.</p>
244
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getReorg">getReorg</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L389">src/providers/AbstractRpcProvider.ts:389</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getStorageAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Storage<wbr/>At</span><a href="#getStorageAt" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getStorageAt.getStorageAt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Storage<wbr/>At</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">rawPointer</span>, <span class="tsd-kind-parameter">proofs</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">&gt;</span><a href="#getStorageAt.getStorageAt-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>Get the storage at a specific address and pointer.</p>
245
245
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">address</span>: <a href="../types/BitcoinAddressLike.html" class="tsd-signature-type tsd-kind-type-alias">BitcoinAddressLike</a></span><div class="tsd-comment tsd-typography"><p>The address to get the storage from</p>
246
246
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">rawPointer</span>: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">bigint</span></span><div class="tsd-comment tsd-typography"><p>The pointer to get the storage from as base64 or bigint</p>
247
247
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">proofs</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = true</span></span><div class="tsd-comment tsd-typography"><p>Whether to send proofs or not</p>
@@ -251,21 +251,21 @@
251
251
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getStorageAt</span><span class="hl-1">(</span><span class="hl-2">&#39;tb1pth90usc4f528aqphpjrfkkdm4vy8hxnt5gps6aau2nva6pxeshtqqzlt3a&#39;</span><span class="hl-1">, </span><span class="hl-2">&#39;EXLK/QhEQMI5d9DrthLvozT+UcDQ7WuSPaz7g8GV3AQ=&#39;</span><span class="hl-1">);</span>
252
252
  </code><button>Copy</button></pre>
253
253
  <h4>Throws</h4><p>If something went wrong while fetching the storage</p>
254
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getStorageAt">getStorageAt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L244">src/providers/AbstractRpcProvider.ts:244</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction</span><a href="#getTransaction" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransaction.getTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</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">&lt;</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol">&lt;</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#getTransaction.getTransaction-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>Get a transaction by its hash or hash id.</p>
254
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getStorageAt">getStorageAt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L244">src/providers/AbstractRpcProvider.ts:244</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction</span><a href="#getTransaction" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransaction.getTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</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">&lt;</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol">&lt;</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#getTransaction.getTransaction-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>Get a transaction by its hash or hash id.</p>
255
255
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">txHash</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The transaction hash</p>
256
256
  </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">&lt;</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol">&lt;</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested transaction</p>
257
257
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a transaction by its hash or hash id.</p>
258
258
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getTransaction</span><span class="hl-1">(</span><span class="hl-2">&#39;63e77ba9fa4262b3d4d0d9d97fa8a7359534606c3f3af096284662e3f619f374&#39;</span><span class="hl-1">);</span>
259
259
  </code><button>Copy</button></pre>
260
260
  <h4>Throws</h4><p>If something went wrong while fetching the transaction</p>
261
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransaction">getTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L154">src/providers/AbstractRpcProvider.ts:154</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransactionReceipt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction<wbr/>Receipt</span><a href="#getTransactionReceipt" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransactionReceipt.getTransactionReceipt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction<wbr/>Receipt</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</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">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span><a href="#getTransactionReceipt.getTransactionReceipt-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>Get a transaction receipt by its hash.</p>
261
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransaction">getTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L154">src/providers/AbstractRpcProvider.ts:154</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransactionReceipt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction<wbr/>Receipt</span><a href="#getTransactionReceipt" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransactionReceipt.getTransactionReceipt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction<wbr/>Receipt</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</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">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span><a href="#getTransactionReceipt.getTransactionReceipt-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>Get a transaction receipt by its hash.</p>
262
262
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">txHash</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The transaction hash</p>
263
263
  </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">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested transaction receipt</p>
264
264
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a transaction receipt by its hash.</p>
265
265
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getTransactionReceipt</span><span class="hl-1">(</span><span class="hl-2">&#39;63e77ba9fa4262b3d4d0d9d97fa8a7359534606c3f3af096284662e3f619f374&#39;</span><span class="hl-1">);</span>
266
266
  </code><button>Copy</button></pre>
267
267
  <h4>Throws</h4><p>Something went wrong while fetching the transaction receipt</p>
268
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransactionReceipt">getTransactionReceipt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L173">src/providers/AbstractRpcProvider.ts:173</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getUXTOs" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>getUXTOs</span><a href="#getUXTOs" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getUXTOs.getUXTOs-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">getUXTOs</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">optimize</span><span class="tsd-signature-symbol">?</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">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getUXTOs.getUXTOs-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>Get the UTXOs (Unspent Transaction Outputs) of an address.</p>
268
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransactionReceipt">getTransactionReceipt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L173">src/providers/AbstractRpcProvider.ts:173</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getUXTOs" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>getUXTOs</span><a href="#getUXTOs" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getUXTOs.getUXTOs-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">getUXTOs</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">optimize</span><span class="tsd-signature-symbol">?</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">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getUXTOs.getUXTOs-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>Get the UTXOs (Unspent Transaction Outputs) of an address.</p>
269
269
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">address</span>: <a href="../types/BitcoinAddressLike.html" class="tsd-signature-type tsd-kind-type-alias">BitcoinAddressLike</a></span><div class="tsd-comment tsd-typography"><p>The address to get the UTXOs of</p>
270
270
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">optimize</span>: <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></span><div class="tsd-comment tsd-typography"><p>Whether to optimize the UTXOs</p>
271
271
  </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">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The UTXOs of the address</p>
@@ -273,14 +273,14 @@
273
273
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getUXTOs</span><span class="hl-1">(</span><span class="hl-2">&#39;bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq&#39;</span><span class="hl-1">);</span>
274
274
  </code><button>Copy</button></pre>
275
275
  <h4>Throws</h4><p>If something went wrong while fetching the UTXOs</p>
276
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getUXTOs">getUXTOs</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L128">src/providers/AbstractRpcProvider.ts:128</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="providerUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>provider<wbr/>Url</span><a href="#providerUrl" 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 tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="providerUrl.providerUrl-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">provider<wbr/>Url</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#providerUrl.providerUrl-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-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#providerUrl">providerUrl</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/WebsocketRpcProvider.ts#L21">src/providers/WebsocketRpcProvider.ts:21</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="requestTrustedPublicKeyForBitcoinWrapping" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span><a href="#requestTrustedPublicKeyForBitcoinWrapping" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</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">&lt;</span><a href="WrappedGeneration.html" class="tsd-signature-type tsd-kind-class">WrappedGeneration</a><span class="tsd-signature-symbol">&gt;</span><a href="#requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-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>Generate parameters needed to wrap bitcoin.</p>
276
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getUXTOs">getUXTOs</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L128">src/providers/AbstractRpcProvider.ts:128</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="providerUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>provider<wbr/>Url</span><a href="#providerUrl" 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 tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="providerUrl.providerUrl-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">provider<wbr/>Url</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#providerUrl.providerUrl-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-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#providerUrl">providerUrl</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/WebsocketRpcProvider.ts#L21">src/providers/WebsocketRpcProvider.ts:21</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="requestTrustedPublicKeyForBitcoinWrapping" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span><a href="#requestTrustedPublicKeyForBitcoinWrapping" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</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">&lt;</span><a href="WrappedGeneration.html" class="tsd-signature-type tsd-kind-class">WrappedGeneration</a><span class="tsd-signature-symbol">&gt;</span><a href="#requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-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>Generate parameters needed to wrap bitcoin.</p>
277
277
  </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">BigNumberish</span></span><div class="tsd-comment tsd-typography"><p>The amount to wrap</p>
278
278
  </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">&lt;</span><a href="WrappedGeneration.html" class="tsd-signature-type tsd-kind-class">WrappedGeneration</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The wrapped generation parameters</p>
279
279
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to generate the parameters needed to wrap bitcoin.</p>
280
280
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">requestTrustedPublicKeyForBitcoinWrapping</span><span class="hl-1">(</span><span class="hl-5">100000000</span><span class="hl-6">n</span><span class="hl-1">);</span>
281
281
  </code><button>Copy</button></pre>
282
282
  <h4>Throws</h4><p>If something went wrong while generating the parameters</p>
283
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping">requestTrustedPublicKeyForBitcoinWrapping</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L422">src/providers/AbstractRpcProvider.ts:422</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="sendRawTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Raw<wbr/>Transaction</span><a href="#sendRawTransaction" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="sendRawTransaction.sendRawTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Raw<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">tx</span>, <span class="tsd-kind-parameter">psbt</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span><a href="#sendRawTransaction.sendRawTransaction-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>Send a raw transaction.</p>
283
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping">requestTrustedPublicKeyForBitcoinWrapping</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L422">src/providers/AbstractRpcProvider.ts:422</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="sendRawTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Raw<wbr/>Transaction</span><a href="#sendRawTransaction" 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 tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="sendRawTransaction.sendRawTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Raw<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">tx</span>, <span class="tsd-kind-parameter">psbt</span><span class="tsd-signature-symbol">?</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">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span><a href="#sendRawTransaction.sendRawTransaction-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>Send a raw transaction.</p>
284
284
  </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">tx</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The raw transaction to send as hex string</p>
285
285
  </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <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 or not</p>
286
286
  </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">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the transaction</p>
@@ -288,7 +288,7 @@
288
288
  <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">sendRawTransaction</span><span class="hl-1">(</span><span class="hl-2">&#39;02000000000101ad897689f66c98daae5fdc3606235c1ad7a17b9e0a6aaa0ea9e58ecc1198ad2a0100000000ffffffff01a154c39400000000160014482038efcc91af945f0c756d07a46401920380520247304402201c1f8718dec637ddb41b42abc44dcbf35a94c6be6a9de8c1db48c9fa6e456b7e022032a4b3286808372a7ac2c5094d6341b4d61b17663f4ccd1c1d92efa85c7dada80121020373626d317ae8788ce3280b491068610d840c23ecb64c14075bbb9f670af52c00000000&#39;</span><span class="hl-1">, </span><span class="hl-6">false</span><span class="hl-1">);</span>
289
289
  </code><button>Copy</button></pre>
290
290
  <h4>Throws</h4><p>If something went wrong while sending the transaction</p>
291
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#sendRawTransaction">sendRawTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/bebcb9ee32936d698d9ee3dc54130cf38dff0dc1/src/providers/AbstractRpcProvider.ts#L322">src/providers/AbstractRpcProvider.ts:322</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="#provider" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>provider</span></a><a href="#wsUrl" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ws<wbr/>Url</span></a><a href="#call" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call</span></a><a href="#getBalance" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Balance</span></a><a href="#getBlock" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block</span></a><a href="#getBlockByHash" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span></a><a href="#getBlockNumber" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Number</span></a><a href="#getBlockWitness" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Witness</span></a><a href="#getCode" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Code</span></a><a href="#getNetwork" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Network</span></a><a href="#getReorg" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Reorg</span></a><a href="#getStorageAt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Storage<wbr/>At</span></a><a href="#getTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction</span></a><a href="#getTransactionReceipt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction<wbr/>Receipt</span></a><a href="#getUXTOs" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a><a href="#providerUrl" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a><a href="#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a><a href="#sendRawTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</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>
291
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#sendRawTransaction">sendRawTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/94143015551720dff99af0a698d5822032f43146/src/providers/AbstractRpcProvider.ts#L322">src/providers/AbstractRpcProvider.ts:322</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="#provider" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>provider</span></a><a href="#wsUrl" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ws<wbr/>Url</span></a><a href="#call" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call</span></a><a href="#getBalance" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Balance</span></a><a href="#getBlock" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block</span></a><a href="#getBlockByHash" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span></a><a href="#getBlockNumber" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Number</span></a><a href="#getBlockWitness" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Witness</span></a><a href="#getCode" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Code</span></a><a href="#getNetwork" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Network</span></a><a href="#getReorg" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Reorg</span></a><a href="#getStorageAt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Storage<wbr/>At</span></a><a href="#getTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction</span></a><a href="#getTransactionReceipt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction<wbr/>Receipt</span></a><a href="#getUXTOs" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a><a href="#providerUrl" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a><a href="#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a><a href="#sendRawTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</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>
292
292
  try {
293
293
  const generateLinkElement = document.querySelector(".tsd-generator a");
294
294
  const link = document.createElement("a");