opnet 1.0.13 → 1.0.14

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 (46) hide show
  1. package/CONTRIBUTING.md +71 -0
  2. package/README.md +6 -7
  3. package/docs/classes/AbstractRpcProvider.html +15 -15
  4. package/docs/classes/BitcoinAddress.html +2 -2
  5. package/docs/classes/Block.html +3 -3
  6. package/docs/classes/CallResult.html +2 -2
  7. package/docs/classes/ContractData.html +2 -2
  8. package/docs/classes/DeploymentTransaction.html +2 -2
  9. package/docs/classes/GenericTransaction.html +2 -2
  10. package/docs/classes/InteractionTransaction.html +2 -2
  11. package/docs/classes/JSONRpcProvider.html +14 -14
  12. package/docs/classes/StoredValue.html +2 -2
  13. package/docs/classes/TransactionBase.html +2 -2
  14. package/docs/classes/TransactionInput.html +2 -2
  15. package/docs/classes/TransactionOutput.html +2 -2
  16. package/docs/classes/TransactionParser.html +2 -2
  17. package/docs/classes/TransactionReceipt.html +2 -2
  18. package/docs/classes/UTXO.html +2 -2
  19. package/docs/classes/WebSocketRpcProvider.html +14 -14
  20. package/docs/enums/OPNetTransactionTypes.html +2 -2
  21. package/docs/interfaces/IAccessList.html +1 -1
  22. package/docs/interfaces/IAccessListItem.html +1 -1
  23. package/docs/interfaces/IBlock.html +3 -3
  24. package/docs/interfaces/IBlockCommon.html +3 -3
  25. package/docs/interfaces/ICallRequestError.html +2 -2
  26. package/docs/interfaces/ICallResultData.html +2 -2
  27. package/docs/interfaces/IDeploymentTransaction.html +2 -2
  28. package/docs/interfaces/IGenericTransaction.html +2 -2
  29. package/docs/interfaces/IInteractionTransaction.html +2 -2
  30. package/docs/interfaces/IRawContract.html +2 -2
  31. package/docs/interfaces/IStorageValue.html +2 -2
  32. package/docs/interfaces/ITransactionBase.html +2 -2
  33. package/docs/interfaces/ITransactionInput.html +2 -2
  34. package/docs/interfaces/ITransactionOutput.html +2 -2
  35. package/docs/interfaces/ITransactionReceipt.html +2 -2
  36. package/docs/interfaces/IUTXO.html +2 -2
  37. package/docs/types/BitcoinAddressLike.html +1 -1
  38. package/docs/types/BlockHeaderChecksumProof.html +1 -1
  39. package/docs/types/ICallResult.html +1 -1
  40. package/docs/types/ITransaction.html +1 -1
  41. package/docs/types/PointerLike.html +1 -1
  42. package/docs/types/UTXOs.html +1 -1
  43. package/docs/variables/version.html +1 -1
  44. package/package.json +2 -3
  45. package/src/providers/AbstractRpcProvider.ts +351 -351
  46. package/webpack.config.js +71 -75
@@ -0,0 +1,71 @@
1
+ # Contributing Guidelines
2
+
3
+ Thank you for considering contributing to our project! Please take a moment to
4
+ review the following guidelines before submitting your contribution.
5
+
6
+ ## Pull Requests
7
+
8
+ When submitting a pull request, please make sure to follow these guidelines:
9
+
10
+ ### Before You Begin
11
+
12
+ 1. **Fork the repository**: If you haven't already, fork the repository to your
13
+ GitHub account.
14
+
15
+ 2. **Create a new branch**: Create a new branch for your feature or bug fix.
16
+ This helps keep the main branch clean and makes it easier to review your
17
+ changes.
18
+
19
+ 3. **Ensure your code is up-to-date**: Before starting work, make sure your
20
+ forked repository is up-to-date with the latest changes from the main
21
+ repository.
22
+
23
+ ### Making Changes
24
+
25
+ 1. **Follow coding conventions**: Make sure your code follows the existing
26
+ coding style and conventions used in the project.
27
+
28
+ 2. **Write descriptive commit messages**: Write clear and descriptive commit
29
+ messages that explain the purpose of your changes.
30
+
31
+ 3. **Test your changes**: Before submitting your pull request, make sure to test
32
+ your changes thoroughly to ensure they work as expected.
33
+
34
+ ### Submitting the Pull Request
35
+
36
+ 1. **Create a descriptive title**: Use a clear and descriptive title for your
37
+ pull request that summarizes the purpose of your changes.
38
+
39
+ 2. **Provide a detailed description**: Include a detailed description of the
40
+ changes you've made and any relevant context that reviewers should know.
41
+
42
+ 3. **Link related issues**: If your pull request addresses a specific issue,
43
+ make sure to reference it in the description using GitHub's issue linking
44
+ syntax (`#issue_number`).
45
+
46
+ 4. **Review and address feedback**: Be responsive to any feedback or comments
47
+ you receive on your pull request and make any necessary changes.
48
+
49
+ ## Issues
50
+
51
+ When submitting an issue, please provide as much information as possible to help
52
+ us understand and address the problem. Follow these guidelines when creating an
53
+ issue:
54
+
55
+ 1. **Use a descriptive title**: Use a clear and descriptive title that
56
+ summarizes the issue you're experiencing.
57
+
58
+ 2. **Provide detailed steps to reproduce**: Include detailed steps to reproduce
59
+ the issue, including any relevant code or configuration.
60
+
61
+ 3. **Include relevant information**: Provide any relevant information such as
62
+ error messages, screenshots, or logs that can help diagnose the problem.
63
+
64
+ 4. **Specify your environment**: If the issue is related to a specific
65
+ environment (e.g., operating system, browser), please specify it in your
66
+ issue description.
67
+
68
+ 5. **Check for existing issues**: Before submitting a new issue, please check if
69
+ a similar issue has already been reported to avoid duplicates.
70
+
71
+ Thank you for your contributions!
package/README.md CHANGED
@@ -22,7 +22,7 @@ and other Bitcoin-related technologies.
22
22
 
23
23
  ### Prerequisites
24
24
 
25
- - Node.js version 20.x or higher
25
+ - Node.js version 16.x or higher
26
26
  - npm (Node Package Manager)
27
27
 
28
28
  ### Installation
@@ -31,6 +31,11 @@ and other Bitcoin-related technologies.
31
31
  npm i opnet
32
32
  ```
33
33
 
34
+ ### Documentation
35
+
36
+ Documentation available at [https://dev.opnet.org](https://dev.opnet.org) or in
37
+ the `docs/` directory of the repository.
38
+
34
39
  #### Development
35
40
 
36
41
  1. Clone the repository:
@@ -46,12 +51,6 @@ npm i opnet
46
51
  npm i
47
52
  ```
48
53
 
49
- ## Usage
50
-
51
- Refer to the `docs/` directory for detailed guides on how to use OPNet. Start
52
- with `getting_started.md` and explore `api_reference.md` for comprehensive
53
- information about the functions available.
54
-
55
54
  ## Contribution
56
55
 
57
56
  Contributions are welcome! Please read through the `CONTRIBUTING.md` file for
@@ -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="AbstractRpcProvider.html">AbstractRpcProvider</a></li></ul><h1>Class AbstractRpcProvider<code class="tsd-tag ts-flagAbstract">Abstract</code> </h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><h4>Description</h4><p>This class is used to provide an abstract RPC provider.</p>
160
160
  <h4>Abstract</h4><p>AbstractRpcProvider</p>
161
- </div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#AbstractRpcProvider">view full</a>)</h4><ul class="tsd-hierarchy"><li><span class="target">AbstractRpcProvider</span><ul class="tsd-hierarchy"><li><a href="JSONRpcProvider.html" class="tsd-signature-type tsd-kind-class">JSONRpcProvider</a></li><li><a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L39">providers/AbstractRpcProvider.ts:39</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="AbstractRpcProvider.html#constructor" class="tsd-index-link tsd-is-protected"><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#AbstractRpcProvider">view full</a>)</h4><ul class="tsd-hierarchy"><li><span class="target">AbstractRpcProvider</span><ul class="tsd-hierarchy"><li><a href="JSONRpcProvider.html" class="tsd-signature-type tsd-kind-class">JSONRpcProvider</a></li><li><a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L39">providers/AbstractRpcProvider.ts:39</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="AbstractRpcProvider.html#constructor" class="tsd-index-link tsd-is-protected"><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="AbstractRpcProvider.html#nextId" 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>next<wbr/>Id</span></a>
163
163
  <a href="AbstractRpcProvider.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>
164
164
  </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="AbstractRpcProvider.html#bigintToBase64" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>bigint<wbr/>To<wbr/>Base64</span></a>
@@ -177,7 +177,7 @@
177
177
  <a href="AbstractRpcProvider.html#getTransactionReceipt" class="tsd-index-link"><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>
178
178
  <a href="AbstractRpcProvider.html#getUXTOs" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a>
179
179
  <a href="AbstractRpcProvider.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>
180
- </div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member tsd-is-protected"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <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 tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_AbstractRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Abstract<wbr/>Rpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a><a href="#constructor.new_AbstractRpcProvider" 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"><h4 class="tsd-returns-title">Returns <a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L44">providers/AbstractRpcProvider.ts:44</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-private"><a id="nextId" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>next<wbr/>Id</span><a href="#nextId" 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">next<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L42">providers/AbstractRpcProvider.ts:42</a></li></ul></aside></section><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> <code class="tsd-tag ts-flagAbstract">Abstract</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">JsonRpcApiProvider</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L40">providers/AbstractRpcProvider.ts:40</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-private"><a id="bigintToBase64" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>bigint<wbr/>To<wbr/>Base64</span><a href="#bigintToBase64" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="bigintToBase64.bigintToBase64-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">bigint<wbr/>To<wbr/>Base64</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">bigint</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#bigintToBase64.bigintToBase64-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">bigint</span>: <span class="tsd-signature-type">bigint</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L314">providers/AbstractRpcProvider.ts:314</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="bufferToHex" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>buffer<wbr/>To<wbr/>Hex</span><a href="#bufferToHex" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="bufferToHex.bufferToHex-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">buffer<wbr/>To<wbr/>Hex</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#bufferToHex.bufferToHex-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">buffer</span>: <span class="tsd-signature-type">Buffer</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L310">providers/AbstractRpcProvider.ts:310</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="buildJsonRpcPayload" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>build<wbr/>Json<wbr/>Rpc<wbr/>Payload</span><a href="#buildJsonRpcPayload" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="buildJsonRpcPayload.buildJsonRpcPayload-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">build<wbr/>Json<wbr/>Rpc<wbr/>Payload</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">method</span>, <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">JsonRpcPayload</span><a href="#buildJsonRpcPayload.buildJsonRpcPayload-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">method</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">JsonRpcPayload</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L343">providers/AbstractRpcProvider.ts:343</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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">&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 tsd-is-protected"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <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 tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_AbstractRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Abstract<wbr/>Rpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a><a href="#constructor.new_AbstractRpcProvider" 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"><h4 class="tsd-returns-title">Returns <a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L44">providers/AbstractRpcProvider.ts:44</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-private"><a id="nextId" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>next<wbr/>Id</span><a href="#nextId" 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">next<wbr/>Id</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L42">providers/AbstractRpcProvider.ts:42</a></li></ul></aside></section><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> <code class="tsd-tag ts-flagAbstract">Abstract</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">JsonRpcApiProvider</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L40">providers/AbstractRpcProvider.ts:40</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-private"><a id="bigintToBase64" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>bigint<wbr/>To<wbr/>Base64</span><a href="#bigintToBase64" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="bigintToBase64.bigintToBase64-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">bigint<wbr/>To<wbr/>Base64</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">bigint</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#bigintToBase64.bigintToBase64-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">bigint</span>: <span class="tsd-signature-type">bigint</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L314">providers/AbstractRpcProvider.ts:314</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="bufferToHex" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>buffer<wbr/>To<wbr/>Hex</span><a href="#bufferToHex" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="bufferToHex.bufferToHex-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">buffer<wbr/>To<wbr/>Hex</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">buffer</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#bufferToHex.bufferToHex-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">buffer</span>: <span class="tsd-signature-type">Buffer</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L310">providers/AbstractRpcProvider.ts:310</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="buildJsonRpcPayload" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>build<wbr/>Json<wbr/>Rpc<wbr/>Payload</span><a href="#buildJsonRpcPayload" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="buildJsonRpcPayload.buildJsonRpcPayload-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">build<wbr/>Json<wbr/>Rpc<wbr/>Payload</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">method</span>, <span class="tsd-kind-parameter">params</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">JsonRpcPayload</span><a href="#buildJsonRpcPayload.buildJsonRpcPayload-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">method</span>: <span class="tsd-signature-type">string</span></span></li><li><span><span class="tsd-kind-parameter">params</span>: <span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">[]</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">JsonRpcPayload</span></h4><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L343">providers/AbstractRpcProvider.ts:343</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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">&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,17 +187,17 @@
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"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L274">providers/AbstractRpcProvider.ts:274</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="callPayloadSingle" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>call<wbr/>Payload<wbr/>Single</span><a href="#callPayloadSingle" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="callPayloadSingle.callPayloadSingle-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call<wbr/>Payload<wbr/>Single</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">payload</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">JsonRpcResult</span><span class="tsd-signature-symbol">&gt;</span><a href="#callPayloadSingle.callPayloadSingle-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"><code class="tsd-tag ts-flagPrivate">Private</code> <div class="tsd-comment tsd-typography"><p>Send a single payload. This method is used to send a single payload.</p>
190
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L274">providers/AbstractRpcProvider.ts:274</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private"><a id="callPayloadSingle" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <span>call<wbr/>Payload<wbr/>Single</span><a href="#callPayloadSingle" 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-private"><li class="tsd-signature tsd-anchor-link"><a id="callPayloadSingle.callPayloadSingle-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call<wbr/>Payload<wbr/>Single</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">payload</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">JsonRpcResult</span><span class="tsd-signature-symbol">&gt;</span><a href="#callPayloadSingle.callPayloadSingle-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"><code class="tsd-tag ts-flagPrivate">Private</code> <div class="tsd-comment tsd-typography"><p>Send a single payload. This method is used to send a single payload.</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">payload</span>: <span class="tsd-signature-type">JsonRpcPayload</span></span><div class="tsd-comment tsd-typography"><p>The payload to send</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">JsonRpcResult</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the payload</p>
193
193
  <div class="tsd-comment tsd-typography"><h4>Throws</h4><p>If no data is returned</p>
194
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L325">providers/AbstractRpcProvider.ts:325</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
194
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L325">providers/AbstractRpcProvider.ts:325</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
195
195
  </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>
196
196
  </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>
197
197
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the balance of a bitcoin address.</p>
198
198
  <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>
199
199
  </code><button>Copy</button></pre>
200
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L101">providers/AbstractRpcProvider.ts:101</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
200
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L101">providers/AbstractRpcProvider.ts:101</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
201
201
  </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>
202
202
  </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>
203
203
  </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>
@@ -205,17 +205,17 @@
205
205
  <h4>Throws</h4><p>If the block is not found</p>
206
206
  <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>
207
207
  </code><button>Copy</button></pre>
208
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L65">providers/AbstractRpcProvider.ts:65</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
208
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L65">providers/AbstractRpcProvider.ts:65</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
209
209
  </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>
210
210
  </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>
211
211
  <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>
212
212
  <h4>Throws</h4><p>If the block is not found</p>
213
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L90">providers/AbstractRpcProvider.ts:90</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
213
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L90">providers/AbstractRpcProvider.ts:90</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
214
214
  </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>
215
215
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the latest block number.</p>
216
216
  <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>
217
217
  </code><button>Copy</button></pre>
218
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L52">providers/AbstractRpcProvider.ts:52</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
218
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L52">providers/AbstractRpcProvider.ts:52</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
219
219
  </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>
220
220
  </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>
221
221
  </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>
@@ -223,11 +223,11 @@
223
223
  <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>
224
224
  </code><button>Copy</button></pre>
225
225
  <h4>Throws</h4><p>If something went wrong while fetching the contract code</p>
226
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L208">providers/AbstractRpcProvider.ts:208</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
226
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L208">providers/AbstractRpcProvider.ts:208</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
227
227
  </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>
228
228
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the current connected network type.</p>
229
229
  <h4>Throws</h4><p>If the chain id is invalid</p>
230
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L183">providers/AbstractRpcProvider.ts:183</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
230
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L183">providers/AbstractRpcProvider.ts:183</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
231
231
  </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>
232
232
  </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>
233
233
  </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>
@@ -237,29 +237,29 @@
237
237
  <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>
238
238
  </code><button>Copy</button></pre>
239
239
  <h4>Throws</h4><p>If something went wrong while fetching the storage</p>
240
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L239">providers/AbstractRpcProvider.ts:239</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
240
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L239">providers/AbstractRpcProvider.ts:239</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
241
241
  </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>
242
242
  </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>
243
243
  <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>
244
244
  <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>
245
245
  </code><button>Copy</button></pre>
246
246
  <h4>Throws</h4><p>If something went wrong while fetching the transaction</p>
247
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L149">providers/AbstractRpcProvider.ts:149</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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="../interfaces/ITransactionReceipt.html" class="tsd-signature-type tsd-kind-interface">ITransactionReceipt</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>
247
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L149">providers/AbstractRpcProvider.ts:149</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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="../interfaces/ITransactionReceipt.html" class="tsd-signature-type tsd-kind-interface">ITransactionReceipt</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>
248
248
  </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>
249
249
  </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/ITransactionReceipt.html" class="tsd-signature-type tsd-kind-interface">ITransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested transaction receipt</p>
250
250
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a transaction receipt by its hash.</p>
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">getTransactionReceipt</span><span class="hl-1">(</span><span class="hl-2">&#39;63e77ba9fa4262b3d4d0d9d97fa8a7359534606c3f3af096284662e3f619f374&#39;</span><span class="hl-1">);</span>
252
252
  </code><button>Copy</button></pre>
253
253
  <h4>Throws</h4><p>Something went wrong while fetching the transaction receipt</p>
254
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L168">providers/AbstractRpcProvider.ts:168</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
254
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L168">providers/AbstractRpcProvider.ts:168</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member"><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"><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>
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">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>
256
256
  </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>
257
257
  </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>
258
258
  <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the UTXOs of a bitcoin address.</p>
259
- <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getUXTOsOf</span><span class="hl-1">(</span><span class="hl-2">&#39;bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq&#39;</span><span class="hl-1">);</span>
259
+ <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>
260
260
  </code><button>Copy</button></pre>
261
261
  <h4>Throws</h4><p>If something went wrong while fetching the UTXOs</p>
262
- </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L123">providers/AbstractRpcProvider.ts:123</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> <code class="tsd-tag ts-flagAbstract">Abstract</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"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/8f10fc1eaaff0e4a9cd97348028d34097fe79e48/src/providers/AbstractRpcProvider.ts#L308">providers/AbstractRpcProvider.ts:308</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="tsd-is-protected"><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="#nextId" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>next<wbr/>Id</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="#bigintToBase64" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>bigint<wbr/>To<wbr/>Base64</span></a><a href="#bufferToHex" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>buffer<wbr/>To<wbr/>Hex</span></a><a href="#buildJsonRpcPayload" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>build<wbr/>Json<wbr/>Rpc<wbr/>Payload</span></a><a href="#call" class=""><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="#callPayloadSingle" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call<wbr/>Payload<wbr/>Single</span></a><a href="#getBalance" class=""><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=""><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=""><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=""><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="#getCode" class=""><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=""><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="#getStorageAt" class=""><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=""><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=""><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=""><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></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>
262
+ </div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L123">providers/AbstractRpcProvider.ts:123</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> <code class="tsd-tag ts-flagAbstract">Abstract</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"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/574780b6fb30d6a43432ed475315feaae7d430c0/src/providers/AbstractRpcProvider.ts#L308">providers/AbstractRpcProvider.ts:308</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="tsd-is-protected"><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="#nextId" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>next<wbr/>Id</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="#bigintToBase64" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>bigint<wbr/>To<wbr/>Base64</span></a><a href="#bufferToHex" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>buffer<wbr/>To<wbr/>Hex</span></a><a href="#buildJsonRpcPayload" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>build<wbr/>Json<wbr/>Rpc<wbr/>Payload</span></a><a href="#call" class=""><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="#callPayloadSingle" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call<wbr/>Payload<wbr/>Single</span></a><a href="#getBalance" class=""><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=""><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=""><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=""><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="#getCode" class=""><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=""><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="#getStorageAt" class=""><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=""><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=""><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=""><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></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>
263
263
  try {
264
264
  const generateLinkElement = document.querySelector(".tsd-generator a");
265
265
  const link = document.createElement("a");