opnet 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +71 -0
- package/README.md +6 -7
- package/browser/_version.d.ts +1 -1
- package/browser/abi/BaseContractProperty.d.ts +3 -0
- package/browser/abi/BitcoinAbiTypes.d.ts +4 -0
- package/browser/abi/BitcoinInterface.d.ts +9 -0
- package/browser/abi/interfaces/BaseContractProperties.d.ts +4 -0
- package/browser/abi/interfaces/BitcoinAbiValue.d.ts +5 -0
- package/browser/abi/interfaces/BitcoinInterfaceAbi.d.ts +11 -0
- package/browser/bitcoin/UTXOs.d.ts +1 -6
- package/browser/bitcoin/interfaces/IUTXO.d.ts +7 -0
- package/browser/common/CommonTypes.d.ts +1 -0
- package/browser/contracts/CallResult.d.ts +6 -3
- package/browser/contracts/Contract.d.ts +28 -0
- package/browser/contracts/interfaces/ICallResult.d.ts +2 -3
- package/browser/contracts/interfaces/IContract.d.ts +4 -0
- package/browser/crypto/crypto-browser.d.ts +7 -0
- package/browser/index.js +1 -1
- package/browser/opnet.d.ts +11 -0
- package/browser/scripts/testContract.d.ts +1 -0
- package/browser/scripts/testMethods.d.ts +1 -0
- package/browser/utils/BitcoinUtils.d.ts +4 -0
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/abi/BaseContractProperty.d.ts +3 -0
- package/build/abi/BaseContractProperty.js +1 -0
- package/build/abi/BitcoinAbiTypes.d.ts +4 -0
- package/build/abi/BitcoinAbiTypes.js +5 -0
- package/build/abi/BitcoinInterface.d.ts +9 -0
- package/build/abi/BitcoinInterface.js +45 -0
- package/build/abi/BitcoinInterfaceAbi.d.ts +3 -0
- package/build/abi/BitcoinInterfaceAbi.js +1 -0
- package/build/abi/enums/ParamTypes.d.ts +0 -0
- package/build/abi/enums/ParamTypes.js +1 -0
- package/build/abi/interface/BitcoinInterface.d.ts +6 -0
- package/build/abi/interface/BitcoinInterface.js +12 -0
- package/build/abi/interface/BitcoinInterfaceAbi.d.ts +3 -0
- package/build/abi/interface/BitcoinInterfaceAbi.js +1 -0
- package/build/abi/interfaces/BaseContractProperties.d.ts +4 -0
- package/build/abi/interfaces/BaseContractProperties.js +1 -0
- package/build/abi/interfaces/BaseContractProperty.d.ts +2 -0
- package/build/abi/interfaces/BaseContractProperty.js +1 -0
- package/build/abi/interfaces/BitcoinAbiInput.d.ts +5 -0
- package/build/abi/interfaces/BitcoinAbiInput.js +1 -0
- package/build/abi/interfaces/BitcoinAbiValue.d.ts +5 -0
- package/build/abi/interfaces/BitcoinAbiValue.js +1 -0
- package/build/abi/interfaces/BitcoinInterfaceAbi.d.ts +11 -0
- package/build/abi/interfaces/BitcoinInterfaceAbi.js +1 -0
- package/build/bitcoin/UTXOs.d.ts +1 -6
- package/build/bitcoin/interfaces/IUTXO.d.ts +7 -0
- package/build/bitcoin/interfaces/IUTXO.js +1 -0
- package/build/common/CommonTypes.d.ts +1 -0
- package/build/contracts/CallResult.d.ts +6 -3
- package/build/contracts/CallResult.js +9 -2
- package/build/contracts/Contract.d.ts +28 -0
- package/build/contracts/Contract.js +206 -0
- package/build/contracts/interfaces/ICallResult.d.ts +2 -3
- package/build/contracts/interfaces/IContract.d.ts +4 -0
- package/build/contracts/interfaces/IContract.js +1 -0
- package/build/interface/BitcoinInterface.d.ts +6 -0
- package/build/interface/BitcoinInterface.js +12 -0
- package/build/interface/BitcoinInterfaceAbi.d.ts +3 -0
- package/build/interface/BitcoinInterfaceAbi.js +1 -0
- package/build/interface/Interface.d.ts +2 -0
- package/build/interface/Interface.js +2 -0
- package/build/interface.d.ts +0 -0
- package/build/interface.js +1 -0
- package/build/opnet.d.ts +11 -0
- package/build/opnet.js +11 -0
- package/build/scripts/test.js +12 -0
- package/build/scripts/testContract.d.ts +1 -0
- package/build/scripts/testContract.js +28 -0
- package/build/scripts/testMethods.d.ts +1 -0
- package/build/scripts/testMethods.js +24 -0
- package/build/utils/BitcoinUtils.d.ts +4 -0
- package/build/utils/BitcoinUtils.js +7 -0
- package/cjs/_version.d.ts +1 -0
- package/cjs/_version.js +4 -0
- package/cjs/abi/BaseContractProperty.d.ts +3 -0
- package/cjs/abi/BaseContractProperty.js +2 -0
- package/cjs/abi/BitcoinAbiTypes.d.ts +4 -0
- package/cjs/abi/BitcoinAbiTypes.js +8 -0
- package/cjs/abi/BitcoinInterface.d.ts +9 -0
- package/cjs/abi/BitcoinInterface.js +49 -0
- package/cjs/abi/interfaces/BaseContractProperties.d.ts +4 -0
- package/cjs/abi/interfaces/BaseContractProperties.js +2 -0
- package/cjs/abi/interfaces/BitcoinAbiValue.d.ts +5 -0
- package/cjs/abi/interfaces/BitcoinAbiValue.js +2 -0
- package/cjs/abi/interfaces/BitcoinInterfaceAbi.d.ts +11 -0
- package/cjs/abi/interfaces/BitcoinInterfaceAbi.js +2 -0
- package/cjs/bitcoin/BitcoinAddress.d.ts +20 -0
- package/cjs/bitcoin/BitcoinAddress.js +116 -0
- package/cjs/bitcoin/UTXOs.d.ts +15 -0
- package/cjs/bitcoin/UTXOs.js +16 -0
- package/cjs/block/Block.d.ts +2 -3
- package/cjs/block/Block.js +3 -28
- package/cjs/block/interfaces/IBlock.d.ts +28 -0
- package/cjs/block/interfaces/IBlock.js +2 -0
- package/cjs/common/CommonTypes.d.ts +4 -0
- package/cjs/common/CommonTypes.js +2 -0
- package/cjs/contracts/CallResult.d.ts +13 -0
- package/cjs/contracts/CallResult.js +25 -0
- package/cjs/contracts/Contract.d.ts +28 -0
- package/cjs/contracts/Contract.js +212 -0
- package/cjs/contracts/ContractData.d.ts +15 -0
- package/cjs/contracts/ContractData.js +36 -0
- package/cjs/contracts/interfaces/IAccessList.d.ts +6 -0
- package/cjs/contracts/interfaces/IAccessList.js +2 -0
- package/cjs/contracts/interfaces/ICallResult.d.ts +11 -0
- package/cjs/contracts/interfaces/ICallResult.js +2 -0
- package/cjs/contracts/interfaces/IContract.d.ts +4 -0
- package/cjs/contracts/interfaces/IContract.js +2 -0
- package/cjs/contracts/interfaces/IRawContract.d.ts +13 -0
- package/cjs/contracts/interfaces/IRawContract.js +2 -0
- package/cjs/crypto/crypto.d.ts +2 -0
- package/cjs/crypto/crypto.js +8 -0
- package/cjs/index.d.ts +3 -11
- package/cjs/index.js +16 -11
- package/cjs/opnet.d.ts +36 -0
- package/cjs/opnet.js +54 -0
- package/cjs/providers/AbstractRpcProvider.d.ts +34 -0
- package/cjs/providers/AbstractRpcProvider.js +161 -0
- package/cjs/providers/JSONRpcProvider.d.ts +5 -9
- package/cjs/providers/JSONRpcProvider.js +4 -29
- package/cjs/providers/WebsocketRpcProvider.d.ts +8 -0
- package/cjs/providers/WebsocketRpcProvider.js +27 -0
- package/cjs/scripts/testContract.d.ts +1 -0
- package/cjs/scripts/testContract.js +30 -0
- package/cjs/scripts/testMethods.d.ts +1 -0
- package/cjs/scripts/testMethods.js +26 -0
- package/cjs/serialize/BigInt.d.ts +6 -0
- package/cjs/serialize/BigInt.js +5 -0
- package/cjs/storage/StoredValue.d.ts +10 -0
- package/cjs/storage/StoredValue.js +28 -0
- package/cjs/storage/interfaces/IStorageValue.d.ts +9 -0
- package/cjs/storage/interfaces/IStorageValue.js +2 -0
- package/cjs/transactions/DeploymentTransaction.d.ts +10 -1
- package/cjs/transactions/DeploymentTransaction.js +16 -0
- package/cjs/transactions/GenericTransaction.d.ts +1 -1
- package/cjs/transactions/InteractionTransaction.d.ts +1 -1
- package/cjs/transactions/Transaction.d.ts +1 -1
- package/cjs/transactions/Transaction.js +1 -1
- package/cjs/transactions/TransactionParser.d.ts +7 -0
- package/cjs/transactions/TransactionParser.js +32 -0
- package/cjs/transactions/TransactionReceipt.d.ts +10 -0
- package/cjs/transactions/TransactionReceipt.js +16 -0
- package/cjs/transactions/interfaces/ITransaction.d.ts +39 -0
- package/cjs/transactions/interfaces/ITransaction.js +2 -0
- package/cjs/transactions/interfaces/ITransactionReceipt.d.ts +8 -0
- package/cjs/transactions/interfaces/ITransactionReceipt.js +2 -0
- package/cjs/utils/BitcoinUtils.d.ts +4 -0
- package/cjs/utils/BitcoinUtils.js +14 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AbstractRpcProvider.html +15 -15
- package/docs/classes/BaseContract.html +187 -0
- package/docs/classes/BitcoinAddress.html +5 -2
- package/docs/classes/BitcoinInterface.html +182 -0
- package/docs/classes/BitcoinUtils.html +183 -0
- package/docs/classes/Block.html +5 -3
- package/docs/classes/CallResult.html +6 -2
- package/docs/classes/ContractData.html +4 -2
- package/docs/classes/DeploymentTransaction.html +4 -2
- package/docs/classes/GenericTransaction.html +4 -2
- package/docs/classes/IBaseContract.html +192 -0
- package/docs/classes/InteractionTransaction.html +3 -2
- package/docs/classes/JSONRpcProvider.html +14 -14
- package/docs/classes/StoredValue.html +4 -2
- package/docs/classes/TransactionBase.html +4 -2
- package/docs/classes/TransactionInput.html +3 -2
- package/docs/classes/TransactionOutput.html +3 -2
- package/docs/classes/TransactionParser.html +3 -2
- package/docs/classes/TransactionReceipt.html +3 -2
- package/docs/classes/UTXO.html +4 -2
- package/docs/classes/WebSocketRpcProvider.html +14 -14
- package/docs/enums/ABIDataTypes.html +183 -0
- package/docs/enums/BitcoinAbiTypes.html +178 -0
- package/docs/enums/OPNetTransactionTypes.html +2 -2
- package/docs/functions/getContract.html +180 -0
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +4 -5
- package/docs/interfaces/BaseContractProperties.html +176 -0
- package/docs/interfaces/BitcoinAbiValue.html +180 -0
- package/docs/interfaces/BitcoinInterfaceAbiBase.html +182 -0
- package/docs/interfaces/IAccessList.html +3 -1
- package/docs/interfaces/IAccessListItem.html +3 -1
- package/docs/interfaces/IBlock.html +5 -3
- package/docs/interfaces/IBlockCommon.html +5 -3
- package/docs/interfaces/ICallRequestError.html +4 -2
- package/docs/interfaces/ICallResultData.html +4 -2
- package/docs/interfaces/IContract.html +177 -0
- package/docs/interfaces/IDeploymentTransaction.html +4 -2
- package/docs/interfaces/IGenericTransaction.html +4 -2
- package/docs/interfaces/IInteractionTransaction.html +4 -2
- package/docs/interfaces/IRawContract.html +5 -2
- package/docs/interfaces/IStorageValue.html +4 -2
- package/docs/interfaces/ITransactionBase.html +4 -2
- package/docs/interfaces/ITransactionInput.html +3 -2
- package/docs/interfaces/ITransactionOutput.html +3 -2
- package/docs/interfaces/ITransactionReceipt.html +4 -2
- package/docs/interfaces/IUTXO.html +4 -2
- package/docs/modules.html +38 -24
- package/docs/types/BaseContractProperty.html +176 -0
- package/docs/types/BitcoinAddressLike.html +1 -1
- package/docs/types/BitcoinInterfaceAbi.html +174 -0
- package/docs/types/BlockHeaderChecksumProof.html +1 -1
- package/docs/types/DecodedCallResult.html +174 -0
- package/docs/types/ICallResult.html +2 -1
- package/docs/types/ITransaction.html +2 -1
- package/docs/types/PointerLike.html +1 -1
- package/docs/types/UTXOs.html +3 -1
- package/docs/variables/version.html +1 -1
- package/package.json +6 -4
- package/src/_version.ts +1 -1
- package/src/abi/BaseContractProperty.ts +8 -0
- package/src/abi/BitcoinAbiTypes.ts +9 -0
- package/src/abi/BitcoinInterface.ts +63 -0
- package/src/abi/interfaces/BaseContractProperties.ts +9 -0
- package/src/abi/interfaces/BitcoinAbiValue.ts +18 -0
- package/src/abi/interfaces/BitcoinInterfaceAbi.ts +19 -0
- package/src/bitcoin/BitcoinAddress.ts +5 -0
- package/src/bitcoin/UTXOs.ts +28 -26
- package/src/bitcoin/interfaces/IUTXO.ts +12 -0
- package/src/block/Block.ts +5 -0
- package/src/block/interfaces/IBlock.ts +46 -38
- package/src/common/CommonTypes.ts +16 -4
- package/src/contracts/CallResult.ts +34 -20
- package/src/contracts/Contract.ts +321 -0
- package/src/contracts/ContractData.ts +46 -41
- package/src/contracts/interfaces/IAccessList.ts +17 -7
- package/src/contracts/interfaces/ICallResult.ts +29 -15
- package/src/contracts/interfaces/IContract.ts +10 -0
- package/src/contracts/interfaces/IRawContract.ts +17 -12
- package/src/crypto/crypto-browser.js +71 -60
- package/src/opnet.ts +17 -0
- package/src/providers/AbstractRpcProvider.ts +352 -351
- package/src/scripts/testContract.ts +51 -0
- package/src/scripts/{test.ts → testMethods.ts} +52 -54
- package/src/scripts/test_abi.json +31 -0
- package/src/storage/StoredValue.ts +35 -30
- package/src/storage/interfaces/IStorageValue.ts +15 -10
- package/src/transactions/DeploymentTransaction.ts +41 -36
- package/src/transactions/GenericTransaction.ts +19 -12
- package/src/transactions/InteractionTransaction.ts +44 -40
- package/src/transactions/Transaction.ts +8 -0
- package/src/transactions/TransactionInput.ts +8 -0
- package/src/transactions/TransactionOutput.ts +8 -0
- package/src/transactions/TransactionParser.ts +47 -43
- package/src/transactions/TransactionReceipt.ts +22 -18
- package/src/transactions/interfaces/ITransaction.ts +78 -52
- package/src/transactions/interfaces/ITransactionReceipt.ts +14 -9
- package/src/utils/BitcoinUtils.ts +22 -0
- package/webpack.config.js +71 -75
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
}
|
|
159
159
|
</style><link rel="stylesheet" href="../assets/material-style.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os";document.body.style.display="none";setTimeout(() => app?app.showPage():document.body.style.removeProperty("display"),500)</script><header class="tsd-page-toolbar"><div class="tsd-toolbar-contents container"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-search"></use></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div><div class="field"><div id="tsd-toolbar-links"></div></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">OPNet</a></div><div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-menu"></use></svg></a></div></div></header><div class="container container-main"><div class="col-content"><div class="tsd-page-title"><ul class="tsd-breadcrumb"><li><a href="../modules.html">OPNet</a></li><li><a href="WebSocketRpcProvider.html">WebSocketRpcProvider</a></li></ul><h1>Class WebSocketRpcProvider</h1></div><section class="tsd-panel tsd-comment"><div class="tsd-comment tsd-typography"><h4>Description</h4><p>This class is used to provide a WebSocket RPC provider.
|
|
160
160
|
WebSocketRpcProvider</p>
|
|
161
|
-
</div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#WebSocketRpcProvider">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a><ul class="tsd-hierarchy"><li><span class="target">WebSocketRpcProvider</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
161
|
+
</div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#WebSocketRpcProvider">view full</a>)</h4><ul class="tsd-hierarchy"><li><a href="AbstractRpcProvider.html" class="tsd-signature-type tsd-kind-class">AbstractRpcProvider</a><ul class="tsd-hierarchy"><li><span class="target">WebSocketRpcProvider</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/WebsocketRpcProvider.ts#L9">src/providers/WebsocketRpcProvider.ts:9</a></li></ul></aside><section class="tsd-panel-group tsd-index-group"><section class="tsd-panel tsd-index-panel"><details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary"><h5 class="tsd-index-heading uppercase" role="button" aria-expanded="false" tabIndex="0"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><use href="../assets/icons.svg#icon-chevronSmall"></use></svg> Index</h5></summary><div class="tsd-accordion-details"><section class="tsd-index-section"><h3 class="tsd-index-heading">Constructors</h3><div class="tsd-index-list"><a href="WebSocketRpcProvider.html#constructor" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a>
|
|
162
162
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="WebSocketRpcProvider.html#provider" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>provider</span></a>
|
|
163
163
|
<a href="WebSocketRpcProvider.html#wsUrl" class="tsd-index-link tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ws<wbr/>Url</span></a>
|
|
164
164
|
</div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="WebSocketRpcProvider.html#call" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call</span></a>
|
|
@@ -173,7 +173,7 @@
|
|
|
173
173
|
<a href="WebSocketRpcProvider.html#getTransactionReceipt" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction<wbr/>Receipt</span></a>
|
|
174
174
|
<a href="WebSocketRpcProvider.html#getUXTOs" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a>
|
|
175
175
|
<a href="WebSocketRpcProvider.html#providerUrl" class="tsd-index-link tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a>
|
|
176
|
-
</div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_WebSocketRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Web<wbr/>Socket<wbr/>Rpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a><a href="#constructor.new_WebSocketRpcProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
176
|
+
</div></section></div></details></section></section><section class="tsd-panel-group tsd-member-group"><h2>Constructors</h2><section class="tsd-panel tsd-member"><a id="constructor" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>constructor</span><a href="#constructor" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures"><li class="tsd-signature tsd-anchor-link"><a id="constructor.new_WebSocketRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new <wbr/>Web<wbr/>Socket<wbr/>Rpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a><a href="#constructor.new_WebSocketRpcProvider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="WebSocketRpcProvider.html" class="tsd-signature-type tsd-kind-class">WebSocketRpcProvider</a></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#constructor">constructor</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/WebsocketRpcProvider.ts#L14">src/providers/WebsocketRpcProvider.ts:14</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-protected"><a id="provider" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>provider</span><a href="#provider" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">provider</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">WebSocketProvider</span></div><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#provider">provider</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/WebsocketRpcProvider.ts#L12">src/providers/WebsocketRpcProvider.ts:12</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="wsUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagPrivate">Private</code> <code class="tsd-tag ts-flagReadonly">Readonly</code> <span>ws<wbr/>Url</span><a href="#wsUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><div class="tsd-signature"><span class="tsd-kind-property">ws<wbr/>Url</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/WebsocketRpcProvider.ts#L10">src/providers/WebsocketRpcProvider.ts:10</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member tsd-is-inherited"><a id="call" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call</span><a href="#call" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="call.call-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">to</span>, <span class="tsd-kind-parameter">data</span>, <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</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">></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>
|
|
177
177
|
</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>
|
|
178
178
|
</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>
|
|
179
179
|
</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>
|
|
@@ -183,13 +183,13 @@
|
|
|
183
183
|
<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">'tb1pth90usc4f528aqphpjrfkkdm4vy8hxnt5gps6aau2nva6pxeshtqqzlt3a'</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">'0x12345678'</span><span class="hl-1">));</span>
|
|
184
184
|
</code><button>Copy</button></pre>
|
|
185
185
|
<h4>Throws</h4><p>If something went wrong while calling the contract</p>
|
|
186
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#call">call</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
186
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#call">call</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L275">src/providers/AbstractRpcProvider.ts:275</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBalance" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Balance</span><a href="#getBalance" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBalance.getBalance-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Balance</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">addressLike</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">></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>
|
|
187
187
|
</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>
|
|
188
188
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">></span></h4><p>The balance of the address</p>
|
|
189
189
|
<div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the balance of a bitcoin address.</p>
|
|
190
190
|
<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">'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq'</span><span class="hl-1">);</span>
|
|
191
191
|
</code><button>Copy</button></pre>
|
|
192
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBalance">getBalance</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
192
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBalance">getBalance</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L102">src/providers/AbstractRpcProvider.ts:102</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlock" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block</span><a href="#getBlock" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlock.getBlock-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumberOrHash</span>, <span class="tsd-kind-parameter">prefetchTxs</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">></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>
|
|
193
193
|
</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>
|
|
194
194
|
</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>
|
|
195
195
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">></span></h4><p>The requested block</p>
|
|
@@ -197,17 +197,17 @@
|
|
|
197
197
|
<h4>Throws</h4><p>If the block is not found</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">getBlock</span><span class="hl-1">(</span><span class="hl-5">123456</span><span class="hl-1">);</span>
|
|
199
199
|
</code><button>Copy</button></pre>
|
|
200
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlock">getBlock</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
200
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlock">getBlock</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L66">src/providers/AbstractRpcProvider.ts:66</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockByHash" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span><a href="#getBlockByHash" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockByHash.getBlockByHash-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>By<wbr/>Hash</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">></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>
|
|
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">blockHash</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The block hash</p>
|
|
202
202
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">></span></h4><p>The requested block</p>
|
|
203
203
|
<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>
|
|
204
204
|
<h4>Throws</h4><p>If the block is not found</p>
|
|
205
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockByHash">getBlockByHash</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
205
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockByHash">getBlockByHash</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L91">src/providers/AbstractRpcProvider.ts:91</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Number</span><a href="#getBlockNumber" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockNumber.getBlockNumber-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Number</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></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>
|
|
206
206
|
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">></span></h4><p>The latest block number</p>
|
|
207
207
|
<div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the latest block number.</p>
|
|
208
208
|
<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>
|
|
209
209
|
</code><button>Copy</button></pre>
|
|
210
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockNumber">getBlockNumber</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
210
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockNumber">getBlockNumber</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L53">src/providers/AbstractRpcProvider.ts:53</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getCode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Code</span><a href="#getCode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getCode.getCode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Code</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">onlyBytecode</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</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">></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>
|
|
211
211
|
</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>
|
|
212
212
|
</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>
|
|
213
213
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">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">></span></h4><p>The contract data or bytecode</p>
|
|
@@ -215,11 +215,11 @@
|
|
|
215
215
|
<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">'tb1pth90usc4f528aqphpjrfkkdm4vy8hxnt5gps6aau2nva6pxeshtqqzlt3a'</span><span class="hl-1">);</span>
|
|
216
216
|
</code><button>Copy</button></pre>
|
|
217
217
|
<h4>Throws</h4><p>If something went wrong while fetching the contract code</p>
|
|
218
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getCode">getCode</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
218
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getCode">getCode</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L209">src/providers/AbstractRpcProvider.ts:209</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Network</span><a href="#getNetwork" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getNetwork.getNetwork-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Network</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">></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>
|
|
219
219
|
</div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">></span></h4><p>The current connected network type</p>
|
|
220
220
|
<div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the current connected network type.</p>
|
|
221
221
|
<h4>Throws</h4><p>If the chain id is invalid</p>
|
|
222
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getNetwork">getNetwork</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
222
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getNetwork">getNetwork</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L184">src/providers/AbstractRpcProvider.ts:184</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getStorageAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Storage<wbr/>At</span><a href="#getStorageAt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getStorageAt.getStorageAt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Storage<wbr/>At</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">rawPointer</span>, <span class="tsd-kind-parameter">proofs</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">></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>
|
|
223
223
|
</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>
|
|
224
224
|
</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>
|
|
225
225
|
</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>
|
|
@@ -229,29 +229,29 @@
|
|
|
229
229
|
<h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getStorageAt</span><span class="hl-1">(</span><span class="hl-2">'tb1pth90usc4f528aqphpjrfkkdm4vy8hxnt5gps6aau2nva6pxeshtqqzlt3a'</span><span class="hl-1">, </span><span class="hl-2">'EXLK/QhEQMI5d9DrthLvozT+UcDQ7WuSPaz7g8GV3AQ='</span><span class="hl-1">);</span>
|
|
230
230
|
</code><button>Copy</button></pre>
|
|
231
231
|
<h4>Throws</h4><p>If something went wrong while fetching the storage</p>
|
|
232
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getStorageAt">getStorageAt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
232
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getStorageAt">getStorageAt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L240">src/providers/AbstractRpcProvider.ts:240</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction</span><a href="#getTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransaction.getTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol"><</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></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>
|
|
233
233
|
</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>
|
|
234
234
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol"><</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">></span></h4><p>The requested transaction</p>
|
|
235
235
|
<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>
|
|
236
236
|
<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">'63e77ba9fa4262b3d4d0d9d97fa8a7359534606c3f3af096284662e3f619f374'</span><span class="hl-1">);</span>
|
|
237
237
|
</code><button>Copy</button></pre>
|
|
238
238
|
<h4>Throws</h4><p>If something went wrong while fetching the transaction</p>
|
|
239
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransaction">getTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
239
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransaction">getTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L150">src/providers/AbstractRpcProvider.ts:150</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransactionReceipt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction<wbr/>Receipt</span><a href="#getTransactionReceipt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransactionReceipt.getTransactionReceipt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction<wbr/>Receipt</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/ITransactionReceipt.html" class="tsd-signature-type tsd-kind-interface">ITransactionReceipt</a><span class="tsd-signature-symbol">></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>
|
|
240
240
|
</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>
|
|
241
241
|
</div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><a href="../interfaces/ITransactionReceipt.html" class="tsd-signature-type tsd-kind-interface">ITransactionReceipt</a><span class="tsd-signature-symbol">></span></h4><p>The requested transaction receipt</p>
|
|
242
242
|
<div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a transaction receipt by its hash.</p>
|
|
243
243
|
<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">'63e77ba9fa4262b3d4d0d9d97fa8a7359534606c3f3af096284662e3f619f374'</span><span class="hl-1">);</span>
|
|
244
244
|
</code><button>Copy</button></pre>
|
|
245
245
|
<h4>Throws</h4><p>Something went wrong while fetching the transaction receipt</p>
|
|
246
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransactionReceipt">getTransactionReceipt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
246
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getTransactionReceipt">getTransactionReceipt</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L169">src/providers/AbstractRpcProvider.ts:169</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getUXTOs" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>getUXTOs</span><a href="#getUXTOs" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getUXTOs.getUXTOs-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">getUXTOs</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">optimize</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></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>
|
|
247
247
|
</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>
|
|
248
248
|
</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>
|
|
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"><</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">></span></h4><p>The UTXOs of the address</p>
|
|
250
250
|
<div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the UTXOs of a bitcoin address.</p>
|
|
251
|
-
<h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">
|
|
251
|
+
<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">'bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq'</span><span class="hl-1">);</span>
|
|
252
252
|
</code><button>Copy</button></pre>
|
|
253
253
|
<h4>Throws</h4><p>If something went wrong while fetching the UTXOs</p>
|
|
254
|
-
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getUXTOs">getUXTOs</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/
|
|
254
|
+
</div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getUXTOs">getUXTOs</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/AbstractRpcProvider.ts#L124">src/providers/AbstractRpcProvider.ts:124</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-protected"><a id="providerUrl" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><code class="tsd-tag ts-flagProtected">Protected</code> <span>provider<wbr/>Url</span><a href="#providerUrl" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-protected"><li class="tsd-signature tsd-anchor-link"><a id="providerUrl.providerUrl-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">provider<wbr/>Url</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><a href="#providerUrl.providerUrl-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">url</span>: <span class="tsd-signature-type">string</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#providerUrl">providerUrl</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/196468c4350eb7809ac84c707cb9ed7901f21d28/src/providers/WebsocketRpcProvider.ts#L21">src/providers/WebsocketRpcProvider.ts:21</a></li></ul></aside></li></ul></section></section></div><div class="col-sidebar"><div class="page-menu"><div class="tsd-navigation settings"><details class="tsd-index-accordion"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>Settings</h3></summary><div class="tsd-accordion-details"><div class="tsd-filter-visibility"><h4 class="uppercase">Member Visibility</h4><form><ul id="tsd-filter-options"><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-protected" name="protected"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Protected</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-private" name="private"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Private</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li><li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-external" name="external"/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>External</span></label></li></ul></form></div><div class="tsd-theme-toggle"><h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div><details open class="tsd-index-accordion tsd-page-navigation"><summary class="tsd-accordion-summary"><h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><use href="../assets/icons.svg#icon-chevronDown"></use></svg>On This Page</h3></summary><div class="tsd-accordion-details"><a href="#constructor" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-512"></use></svg><span>constructor</span></a><a href="#provider" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>provider</span></a><a href="#wsUrl" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>ws<wbr/>Url</span></a><a href="#call" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>call</span></a><a href="#getBalance" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Balance</span></a><a href="#getBlock" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block</span></a><a href="#getBlockByHash" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span></a><a href="#getBlockNumber" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Number</span></a><a href="#getCode" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Code</span></a><a href="#getNetwork" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Network</span></a><a href="#getStorageAt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Storage<wbr/>At</span></a><a href="#getTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction</span></a><a href="#getTransactionReceipt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction<wbr/>Receipt</span></a><a href="#getUXTOs" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a><a href="#providerUrl" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a></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>
|
|
255
255
|
try {
|
|
256
256
|
const generateLinkElement = document.querySelector(".tsd-generator a");
|
|
257
257
|
const link = document.createElement("a");
|