opnet 1.0.49 → 1.0.50

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 (478) hide show
  1. package/.babelrc +8 -7
  2. package/.github/ISSUE_TEMPLATE/bug_report.md +38 -38
  3. package/.github/ISSUE_TEMPLATE/feature_request.md +20 -20
  4. package/.github/workflows/ci.yml +48 -0
  5. package/.prettierrc.json +11 -11
  6. package/CONTRIBUTING.md +71 -71
  7. package/LICENSE.md +16 -16
  8. package/README.md +96 -93
  9. package/STAKING.md +60 -70
  10. package/browser/_version.d.ts +1 -1
  11. package/browser/bitcoin/BitcoinAddress.d.ts +0 -1
  12. package/browser/contracts/CallResult.d.ts +0 -1
  13. package/browser/contracts/Contract.d.ts +0 -1
  14. package/browser/contracts/ContractData.d.ts +0 -1
  15. package/browser/contracts/interfaces/IContract.d.ts +0 -1
  16. package/browser/contracts/interfaces/IRawContract.d.ts +0 -1
  17. package/browser/crypto/crypto.d.ts +0 -1
  18. package/browser/index.js +2 -2
  19. package/browser/providers/AbstractRpcProvider.d.ts +47 -48
  20. package/browser/providers/JSONRpcProvider.d.ts +10 -10
  21. package/browser/storage/StoredValue.d.ts +0 -1
  22. package/browser/storage/interfaces/IStorageValue.d.ts +0 -1
  23. package/browser/transactions/decoders/DeploymentTransaction.d.ts +0 -1
  24. package/browser/transactions/decoders/InteractionTransaction.d.ts +0 -1
  25. package/browser/transactions/interfaces/ITransaction.d.ts +0 -1
  26. package/browser/transactions/interfaces/ITransactionReceipt.d.ts +0 -1
  27. package/browser/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +0 -1
  28. package/browser/transactions/interfaces/transactions/IInteractionTransaction.d.ts +0 -1
  29. package/browser/transactions/interfaces/transactions/IUnwrapTransaction.d.ts +0 -1
  30. package/browser/transactions/metadata/TransactionOutput.d.ts +0 -1
  31. package/browser/transactions/metadata/TransactionReceipt.d.ts +0 -1
  32. package/build/abi/BitcoinInterface.js +0 -1
  33. package/build/bitcoin/BitcoinAddress.d.ts +0 -1
  34. package/build/bitcoin/BitcoinAddress.js +30 -19
  35. package/build/bitcoin/UTXOs.js +0 -4
  36. package/build/block/Block.js +1 -19
  37. package/build/contracts/CallResult.d.ts +0 -1
  38. package/build/contracts/CallResult.js +2 -7
  39. package/build/contracts/Contract.d.ts +0 -1
  40. package/build/contracts/Contract.js +1 -6
  41. package/build/contracts/ContractData.d.ts +0 -1
  42. package/build/contracts/ContractData.js +0 -11
  43. package/build/contracts/OPNetEvent.js +2 -5
  44. package/build/contracts/interfaces/IContract.d.ts +0 -1
  45. package/build/contracts/interfaces/IRawContract.d.ts +0 -1
  46. package/build/crypto/crypto.d.ts +0 -1
  47. package/build/providers/AbstractRpcProvider.d.ts +0 -1
  48. package/build/providers/AbstractRpcProvider.js +3 -4
  49. package/build/providers/JSONRpcProvider.js +1 -3
  50. package/build/providers/WebsocketRpcProvider.js +0 -1
  51. package/build/storage/StoredValue.d.ts +0 -1
  52. package/build/storage/StoredValue.js +0 -4
  53. package/build/storage/interfaces/IStorageValue.d.ts +0 -1
  54. package/build/transactions/Transaction.js +0 -8
  55. package/build/transactions/decoders/DeploymentTransaction.d.ts +0 -1
  56. package/build/transactions/decoders/DeploymentTransaction.js +0 -10
  57. package/build/transactions/decoders/InteractionTransaction.d.ts +0 -1
  58. package/build/transactions/decoders/InteractionTransaction.js +0 -7
  59. package/build/transactions/decoders/UnwrapTransaction.js +0 -5
  60. package/build/transactions/decoders/WrapTransaction.js +0 -7
  61. package/build/transactions/interfaces/ITransaction.d.ts +0 -1
  62. package/build/transactions/interfaces/ITransactionReceipt.d.ts +0 -1
  63. package/build/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +0 -1
  64. package/build/transactions/interfaces/transactions/IInteractionTransaction.d.ts +0 -1
  65. package/build/transactions/interfaces/transactions/IUnwrapTransaction.d.ts +0 -1
  66. package/build/transactions/metadata/TransactionInput.js +1 -5
  67. package/build/transactions/metadata/TransactionOutput.d.ts +0 -1
  68. package/build/transactions/metadata/TransactionOutput.js +0 -4
  69. package/build/transactions/metadata/TransactionReceipt.d.ts +0 -1
  70. package/build/transactions/metadata/TransactionReceipt.js +0 -4
  71. package/cjs/package.json +3 -3
  72. package/docs/assets/highlight.css +92 -92
  73. package/docs/classes/AbstractRpcProvider.html +334 -334
  74. package/docs/classes/BaseContract.html +198 -198
  75. package/docs/classes/BitcoinAddress.html +192 -192
  76. package/docs/classes/BitcoinInterface.html +182 -182
  77. package/docs/classes/BitcoinUtils.html +182 -182
  78. package/docs/classes/Block.html +196 -196
  79. package/docs/classes/CallResult.html +185 -185
  80. package/docs/classes/ContractData.html +187 -187
  81. package/docs/classes/DeploymentTransaction.html +220 -220
  82. package/docs/classes/GenericTransaction.html +200 -200
  83. package/docs/classes/IBaseContract.html +203 -203
  84. package/docs/classes/InteractionTransaction.html +213 -213
  85. package/docs/classes/JSONRpcProvider.html +332 -332
  86. package/docs/classes/OPNetEvent.html +181 -181
  87. package/docs/classes/StoredValue.html +181 -181
  88. package/docs/classes/TransactionBase.html +200 -200
  89. package/docs/classes/TransactionInput.html +180 -180
  90. package/docs/classes/TransactionOutput.html +180 -180
  91. package/docs/classes/TransactionParser.html +177 -177
  92. package/docs/classes/TransactionReceipt.html +187 -187
  93. package/docs/classes/UTXO.html +180 -180
  94. package/docs/classes/UnwrapTransaction.html +224 -224
  95. package/docs/classes/WebSocketRpcProvider.html +329 -329
  96. package/docs/classes/WrapTransaction.html +228 -228
  97. package/docs/enums/ABIDataTypes.html +193 -193
  98. package/docs/enums/BitcoinAbiTypes.html +177 -177
  99. package/docs/enums/GenerateTarget.html +174 -174
  100. package/docs/enums/JSONRPCErrorCode.html +183 -183
  101. package/docs/enums/JSONRPCErrorHttpCodes.html +183 -183
  102. package/docs/enums/JSONRpcMethods.html +196 -196
  103. package/docs/enums/OPNetTransactionTypes.html +178 -178
  104. package/docs/functions/getContract.html +182 -182
  105. package/docs/hierarchy.html +173 -173
  106. package/docs/index.html +218 -218
  107. package/docs/interfaces/BaseContractProperties.html +180 -180
  108. package/docs/interfaces/BitcoinAbiValue.html +179 -179
  109. package/docs/interfaces/BitcoinInterfaceAbiBase.html +177 -177
  110. package/docs/interfaces/BroadcastedTransaction.html +183 -183
  111. package/docs/interfaces/ContractEvents.html +173 -173
  112. package/docs/interfaces/EventBaseData.html +178 -178
  113. package/docs/interfaces/FunctionBaseData.html +181 -181
  114. package/docs/interfaces/IAccessList.html +175 -175
  115. package/docs/interfaces/IAccessListItem.html +175 -175
  116. package/docs/interfaces/IBlock.html +195 -195
  117. package/docs/interfaces/IBlockCommon.html +194 -194
  118. package/docs/interfaces/IBlockWitness.html +175 -175
  119. package/docs/interfaces/IBlockWitnessAPI.html +177 -177
  120. package/docs/interfaces/ICallRequestError.html +176 -176
  121. package/docs/interfaces/ICallResultData.html +179 -179
  122. package/docs/interfaces/ICommonTransaction.html +205 -205
  123. package/docs/interfaces/IContract.html +180 -180
  124. package/docs/interfaces/IDecodedEvent.html +177 -177
  125. package/docs/interfaces/IDeploymentTransaction.html +219 -219
  126. package/docs/interfaces/IGenericTransaction.html +199 -199
  127. package/docs/interfaces/IInteractionTransaction.html +213 -213
  128. package/docs/interfaces/IMotoContract.html +196 -196
  129. package/docs/interfaces/IMotoswapFactoryContract.html +193 -193
  130. package/docs/interfaces/IMotoswapPoolContract.html +208 -208
  131. package/docs/interfaces/IMotoswapRouterContract.html +227 -227
  132. package/docs/interfaces/IOP_20Contract.html +196 -196
  133. package/docs/interfaces/IOP_NETContract.html +183 -183
  134. package/docs/interfaces/IRawContract.html +187 -187
  135. package/docs/interfaces/IRawContractEvents.html +173 -173
  136. package/docs/interfaces/IStackingContract.html +183 -183
  137. package/docs/interfaces/IStorageValue.html +179 -179
  138. package/docs/interfaces/ITransactionBase.html +199 -199
  139. package/docs/interfaces/ITransactionInput.html +179 -179
  140. package/docs/interfaces/ITransactionOutput.html +177 -177
  141. package/docs/interfaces/ITransactionReceipt.html +183 -183
  142. package/docs/interfaces/IUTXO.html +179 -179
  143. package/docs/interfaces/IUnwrapTransaction.html +223 -223
  144. package/docs/interfaces/IWBTCContract.html +209 -209
  145. package/docs/interfaces/IWrapTransaction.html +227 -227
  146. package/docs/interfaces/JSONRpc2Request.html +177 -177
  147. package/docs/interfaces/JSONRpc2ResponseError.html +177 -177
  148. package/docs/interfaces/JSONRpc2ResponseResult.html +177 -177
  149. package/docs/interfaces/JSONRpc2ResultData.html +173 -173
  150. package/docs/interfaces/JSONRpcErrorData.html +173 -173
  151. package/docs/interfaces/JSONRpcParams.html +173 -173
  152. package/docs/interfaces/JSONRpcResultError.html +176 -176
  153. package/docs/interfaces/MergedOP_20AndStackingContract.html +201 -201
  154. package/docs/interfaces/NetEventDocument.html +182 -182
  155. package/docs/interfaces/ParsedPartialWBTCUTXODocument.html +178 -178
  156. package/docs/interfaces/PartialWBTCUTXODocument.html +178 -178
  157. package/docs/interfaces/ReorgInformation.html +176 -176
  158. package/docs/interfaces/UsedUTXO.html +175 -175
  159. package/docs/modules.html +296 -296
  160. package/docs/types/BaseContractProperty.html +175 -175
  161. package/docs/types/BigNumberish.html +173 -173
  162. package/docs/types/BitcoinAddressLike.html +173 -173
  163. package/docs/types/BitcoinInterfaceAbi.html +173 -173
  164. package/docs/types/BlockHeaderChecksumProof.html +173 -173
  165. package/docs/types/BlockTag.html +173 -173
  166. package/docs/types/BlockWitnesses.html +173 -173
  167. package/docs/types/ContractDecodedObjectResult.html +173 -173
  168. package/docs/types/DecodedCallResult.html +173 -173
  169. package/docs/types/DecodedOutput.html +173 -173
  170. package/docs/types/GenerationParameters.html +173 -173
  171. package/docs/types/ICallResult.html +174 -174
  172. package/docs/types/ITransaction.html +174 -174
  173. package/docs/types/InteractionType.html +173 -173
  174. package/docs/types/JSONRpc2RequestParams.html +173 -173
  175. package/docs/types/JSONRpc2Result.html +173 -173
  176. package/docs/types/JSONRpcId.html +173 -173
  177. package/docs/types/JsonRpcCallResult.html +173 -173
  178. package/docs/types/JsonRpcError.html +173 -173
  179. package/docs/types/JsonRpcPayload.html +173 -173
  180. package/docs/types/JsonRpcResult.html +173 -173
  181. package/docs/types/Numeric.html +173 -173
  182. package/docs/types/PointerLike.html +173 -173
  183. package/docs/types/RawContractEvents.html +173 -173
  184. package/docs/types/UTXOs.html +175 -175
  185. package/docs/variables/MOTOSWAP_ROUTER_ABI.html +173 -173
  186. package/docs/variables/MOTO_TOKEN_ABI.html +173 -173
  187. package/docs/variables/MotoSwapFactoryAbi.html +173 -173
  188. package/docs/variables/MotoSwapFactoryEvents.html +173 -173
  189. package/docs/variables/MotoSwapPoolEvents.html +173 -173
  190. package/docs/variables/MotoswapPoolAbi.html +173 -173
  191. package/docs/variables/OP20Events.html +173 -173
  192. package/docs/variables/OP_20_ABI.html +173 -173
  193. package/docs/variables/OP_NET_ABI.html +173 -173
  194. package/docs/variables/STAKING_ABI.html +173 -173
  195. package/docs/variables/StackingEvents.html +173 -173
  196. package/docs/variables/WBTCEvents.html +173 -173
  197. package/docs/variables/WBTC_ABI.html +173 -173
  198. package/docs/variables/version.html +173 -173
  199. package/gulpfile.js +49 -120
  200. package/package.json +111 -109
  201. package/src/_version.ts +1 -1
  202. package/src/abi/shared/json/MOTOSWAP_POOL_ABI.ts +299 -299
  203. package/src/contracts/Contract.ts +600 -600
  204. package/src/crypto/crypto.ts +1 -1
  205. package/src/providers/AbstractRpcProvider.ts +602 -602
  206. package/src/providers/JSONRpcProvider.ts +81 -81
  207. package/src/serialize/BigInt.ts +15 -15
  208. package/tsconfig.base.json +43 -43
  209. package/tsconfig.json +15 -8
  210. package/tsconfig.webpack.json +19 -19
  211. package/.github/workflows/node.js.yml +0 -21
  212. package/.idea/bsc.iml +0 -14
  213. package/.idea/bsi-binary.iml +0 -14
  214. package/.idea/codeStyles/Project.xml +0 -101
  215. package/.idea/codeStyles/codeStyleConfig.xml +0 -5
  216. package/.idea/inspectionProfiles/Project_Default.xml +0 -7
  217. package/.idea/markdown.xml +0 -7
  218. package/.idea/modules.xml +0 -8
  219. package/.idea/motoswap.iml +0 -12
  220. package/.idea/opnet.iml +0 -17
  221. package/.idea/prettier.xml +0 -7
  222. package/.idea/vcs.xml +0 -6
  223. package/browser/crypto/crypto-browser.d.ts +0 -40
  224. package/browser/generator/WrappedGenerationParameters.d.ts +0 -9
  225. package/browser/scripts/ITestContract.d.ts +0 -22
  226. package/browser/scripts/block.d.ts +0 -1
  227. package/browser/scripts/test.d.ts +0 -1
  228. package/browser/scripts/testContract.d.ts +0 -1
  229. package/browser/scripts/testMethods.d.ts +0 -1
  230. package/browser/scripts/testMethodsReg.d.ts +0 -1
  231. package/browser/scripts/testWBTCContract.d.ts +0 -1
  232. package/browser/transactions/DeploymentTransaction.d.ts +0 -16
  233. package/browser/transactions/GenericTransaction.d.ts +0 -6
  234. package/browser/transactions/InteractionTransaction.d.ts +0 -15
  235. package/browser/transactions/TransactionInput.d.ts +0 -16
  236. package/browser/transactions/TransactionOutput.d.ts +0 -19
  237. package/browser/transactions/TransactionReceipt.d.ts +0 -11
  238. package/build/abi/BitcoinInterfaceAbi.d.ts +0 -3
  239. package/build/abi/BitcoinInterfaceAbi.js +0 -1
  240. package/build/abi/enums/ParamTypes.d.ts +0 -0
  241. package/build/abi/enums/ParamTypes.js +0 -1
  242. package/build/abi/interface/BitcoinInterface.d.ts +0 -6
  243. package/build/abi/interface/BitcoinInterface.js +0 -12
  244. package/build/abi/interface/BitcoinInterfaceAbi.d.ts +0 -3
  245. package/build/abi/interface/BitcoinInterfaceAbi.js +0 -1
  246. package/build/abi/interfaces/BaseContractProperty.d.ts +0 -2
  247. package/build/abi/interfaces/BaseContractProperty.js +0 -1
  248. package/build/abi/interfaces/BitcoinAbiInput.d.ts +0 -5
  249. package/build/abi/interfaces/BitcoinAbiInput.js +0 -1
  250. package/build/abi/shared/MOTOSWAP_FACTORY_ABI.d.ts +0 -2
  251. package/build/abi/shared/MOTOSWAP_FACTORY_ABI.js +0 -68
  252. package/build/abi/shared/OP_20_ABI.d.ts +0 -2
  253. package/build/abi/shared/OP_20_ABI.js +0 -235
  254. package/build/abi/shared/OP_NET_ABI.d.ts +0 -2
  255. package/build/abi/shared/OP_NET_ABI.js +0 -31
  256. package/build/abi/shared/STAKING_ABI.d.ts +0 -2
  257. package/build/abi/shared/STAKING_ABI.js +0 -96
  258. package/build/abi/shared/WBTC_ABI.d.ts +0 -2
  259. package/build/abi/shared/WBTC_ABI.js +0 -40
  260. package/build/bitcoin/UXTOs.d.ts +0 -7
  261. package/build/bitcoin/UXTOs.js +0 -1
  262. package/build/block/index.d.ts +0 -2
  263. package/build/block/index.js +0 -1
  264. package/build/contracts/DecodedEvent.d.ts +0 -15
  265. package/build/contracts/DecodedEvent.js +0 -18
  266. package/build/contracts/IRawContract.d.ts +0 -13
  267. package/build/contracts/IRawContract.js +0 -1
  268. package/build/crypto/crypto-browser.d.ts +0 -0
  269. package/build/crypto/crypto-browser.js +0 -47
  270. package/build/generator/WrappedGenerationParameters.d.ts +0 -9
  271. package/build/generator/WrappedGenerationParameters.js +0 -14
  272. package/build/interface/BitcoinInterface.d.ts +0 -6
  273. package/build/interface/BitcoinInterface.js +0 -12
  274. package/build/interface/BitcoinInterfaceAbi.d.ts +0 -3
  275. package/build/interface/BitcoinInterfaceAbi.js +0 -1
  276. package/build/interface/Interface.d.ts +0 -2
  277. package/build/interface/Interface.js +0 -2
  278. package/build/interface.d.ts +0 -0
  279. package/build/interface.js +0 -1
  280. package/build/interfaces/Block.d.ts +0 -0
  281. package/build/interfaces/Block.js +0 -1
  282. package/build/interfaces/IBlock.d.ts +0 -0
  283. package/build/interfaces/IBlock.js +0 -1
  284. package/build/interfaces/blocks/IBlock.d.ts +0 -28
  285. package/build/interfaces/blocks/IBlock.js +0 -1
  286. package/build/interfaces/transactions/ITransaction.d.ts +0 -39
  287. package/build/interfaces/transactions/ITransaction.js +0 -1
  288. package/build/providers/index.d.ts +0 -4
  289. package/build/providers/index.js +0 -4
  290. package/build/providers/interfaces/GenerateResult.d.ts +0 -0
  291. package/build/providers/interfaces/GenerateResult.js +0 -1
  292. package/build/scripts/ITestContract.d.ts +0 -18
  293. package/build/scripts/ITestContract.js +0 -1
  294. package/build/scripts/block.d.ts +0 -1
  295. package/build/scripts/block.js +0 -13
  296. package/build/scripts/test.d.ts +0 -1
  297. package/build/scripts/test.js +0 -24
  298. package/build/scripts/testContract.d.ts +0 -1
  299. package/build/scripts/testContract.js +0 -11
  300. package/build/scripts/testMethods.d.ts +0 -1
  301. package/build/scripts/testMethods.js +0 -11
  302. package/build/scripts/testMethodsReg.d.ts +0 -1
  303. package/build/scripts/testMethodsReg.js +0 -8
  304. package/build/scripts/testWBTCContract.d.ts +0 -1
  305. package/build/scripts/testWBTCContract.js +0 -11
  306. package/build/storage/interfaces/IStorage.d.ts +0 -7
  307. package/build/storage/interfaces/IStorage.js +0 -1
  308. package/build/transactions/DeploymentTransaction.d.ts +0 -16
  309. package/build/transactions/DeploymentTransaction.js +0 -24
  310. package/build/transactions/GenericTransaction.d.ts +0 -6
  311. package/build/transactions/GenericTransaction.js +0 -6
  312. package/build/transactions/InteractionTransaction.d.ts +0 -15
  313. package/build/transactions/InteractionTransaction.js +0 -21
  314. package/build/transactions/TransactionInput.d.ts +0 -16
  315. package/build/transactions/TransactionInput.js +0 -14
  316. package/build/transactions/TransactionOutput.d.ts +0 -19
  317. package/build/transactions/TransactionOutput.js +0 -16
  318. package/build/transactions/TransactionReceipt.d.ts +0 -11
  319. package/build/transactions/TransactionReceipt.js +0 -53
  320. package/build/transactions/decoders/WrapInteractionTransaction.d.ts +0 -15
  321. package/build/transactions/decoders/WrapInteractionTransaction.js +0 -21
  322. package/build/transactions/index.d.ts +0 -6
  323. package/build/transactions/index.js +0 -6
  324. package/build/transactions/interfaces/IWrapTransaction.d.ts +0 -3
  325. package/build/transactions/interfaces/IWrapTransaction.js +0 -1
  326. package/build/transactions/types/DeploymentTransaction.d.ts +0 -16
  327. package/build/transactions/types/DeploymentTransaction.js +0 -24
  328. package/build/transactions/types/GenericTransaction.d.ts +0 -6
  329. package/build/transactions/types/GenericTransaction.js +0 -6
  330. package/build/transactions/types/InteractionTransaction.d.ts +0 -15
  331. package/build/transactions/types/InteractionTransaction.js +0 -21
  332. package/cjs/_version.d.ts +0 -1
  333. package/cjs/_version.js +0 -4
  334. package/cjs/abi/BaseContractProperty.d.ts +0 -3
  335. package/cjs/abi/BaseContractProperty.js +0 -2
  336. package/cjs/abi/BitcoinAbiTypes.d.ts +0 -4
  337. package/cjs/abi/BitcoinAbiTypes.js +0 -8
  338. package/cjs/abi/BitcoinInterface.d.ts +0 -10
  339. package/cjs/abi/BitcoinInterface.js +0 -60
  340. package/cjs/abi/interfaces/BaseContractProperties.d.ts +0 -5
  341. package/cjs/abi/interfaces/BaseContractProperties.js +0 -2
  342. package/cjs/abi/interfaces/BitcoinAbiValue.d.ts +0 -5
  343. package/cjs/abi/interfaces/BitcoinAbiValue.js +0 -2
  344. package/cjs/abi/interfaces/BitcoinInterfaceAbi.d.ts +0 -16
  345. package/cjs/abi/interfaces/BitcoinInterfaceAbi.js +0 -2
  346. package/cjs/abi/shared/interfaces/IMotoContract.d.ts +0 -6
  347. package/cjs/abi/shared/interfaces/IMotoContract.js +0 -2
  348. package/cjs/abi/shared/interfaces/IMotoswapFactoryContract.d.ts +0 -7
  349. package/cjs/abi/shared/interfaces/IMotoswapFactoryContract.js +0 -2
  350. package/cjs/abi/shared/interfaces/IMotoswapPoolContract.d.ts +0 -13
  351. package/cjs/abi/shared/interfaces/IMotoswapPoolContract.js +0 -2
  352. package/cjs/abi/shared/interfaces/IMotoswapRouterContract.d.ts +0 -15
  353. package/cjs/abi/shared/interfaces/IMotoswapRouterContract.js +0 -2
  354. package/cjs/abi/shared/interfaces/IOP_20Contract.d.ts +0 -16
  355. package/cjs/abi/shared/interfaces/IOP_20Contract.js +0 -2
  356. package/cjs/abi/shared/interfaces/IOP_NETContract.d.ts +0 -7
  357. package/cjs/abi/shared/interfaces/IOP_NETContract.js +0 -2
  358. package/cjs/abi/shared/interfaces/IStackingContract.d.ts +0 -11
  359. package/cjs/abi/shared/interfaces/IStackingContract.js +0 -2
  360. package/cjs/abi/shared/interfaces/IWBTCContract.d.ts +0 -8
  361. package/cjs/abi/shared/interfaces/IWBTCContract.js +0 -2
  362. package/cjs/abi/shared/json/MOTOSWAP_FACTORY_ABI.d.ts +0 -3
  363. package/cjs/abi/shared/json/MOTOSWAP_FACTORY_ABI.js +0 -74
  364. package/cjs/abi/shared/json/MOTOSWAP_POOL_ABI.d.ts +0 -3
  365. package/cjs/abi/shared/json/MOTOSWAP_POOL_ABI.js +0 -280
  366. package/cjs/abi/shared/json/MOTOSWAP_ROUTER_ABI.d.ts +0 -2
  367. package/cjs/abi/shared/json/MOTOSWAP_ROUTER_ABI.js +0 -277
  368. package/cjs/abi/shared/json/MOTO_TOKEN_ABI.d.ts +0 -2
  369. package/cjs/abi/shared/json/MOTO_TOKEN_ABI.js +0 -25
  370. package/cjs/abi/shared/json/OP_20_ABI.d.ts +0 -3
  371. package/cjs/abi/shared/json/OP_20_ABI.js +0 -270
  372. package/cjs/abi/shared/json/OP_NET_ABI.d.ts +0 -2
  373. package/cjs/abi/shared/json/OP_NET_ABI.js +0 -34
  374. package/cjs/abi/shared/json/STAKING_ABI.d.ts +0 -3
  375. package/cjs/abi/shared/json/STAKING_ABI.js +0 -132
  376. package/cjs/abi/shared/json/WBTC_ABI.d.ts +0 -3
  377. package/cjs/abi/shared/json/WBTC_ABI.js +0 -60
  378. package/cjs/bitcoin/BitcoinAddress.d.ts +0 -20
  379. package/cjs/bitcoin/BitcoinAddress.js +0 -116
  380. package/cjs/bitcoin/UTXOs.d.ts +0 -10
  381. package/cjs/bitcoin/UTXOs.js +0 -16
  382. package/cjs/bitcoin/interfaces/IUTXO.d.ts +0 -7
  383. package/cjs/bitcoin/interfaces/IUTXO.js +0 -2
  384. package/cjs/block/Block.d.ts +0 -26
  385. package/cjs/block/Block.js +0 -47
  386. package/cjs/block/interfaces/BlockWitness.d.ts +0 -11
  387. package/cjs/block/interfaces/BlockWitness.js +0 -2
  388. package/cjs/block/interfaces/IBlock.d.ts +0 -28
  389. package/cjs/block/interfaces/IBlock.js +0 -2
  390. package/cjs/common/CommonTypes.d.ts +0 -8
  391. package/cjs/common/CommonTypes.js +0 -2
  392. package/cjs/contracts/CallResult.d.ts +0 -19
  393. package/cjs/contracts/CallResult.js +0 -35
  394. package/cjs/contracts/Contract.d.ts +0 -44
  395. package/cjs/contracts/Contract.js +0 -398
  396. package/cjs/contracts/ContractData.d.ts +0 -17
  397. package/cjs/contracts/ContractData.js +0 -38
  398. package/cjs/contracts/OPNetEvent.d.ts +0 -15
  399. package/cjs/contracts/OPNetEvent.js +0 -22
  400. package/cjs/contracts/interfaces/IAccessList.d.ts +0 -6
  401. package/cjs/contracts/interfaces/IAccessList.js +0 -2
  402. package/cjs/contracts/interfaces/ICallResult.d.ts +0 -12
  403. package/cjs/contracts/interfaces/ICallResult.js +0 -2
  404. package/cjs/contracts/interfaces/IContract.d.ts +0 -12
  405. package/cjs/contracts/interfaces/IContract.js +0 -2
  406. package/cjs/contracts/interfaces/IRawContract.d.ts +0 -15
  407. package/cjs/contracts/interfaces/IRawContract.js +0 -2
  408. package/cjs/crypto/crypto.d.ts +0 -2
  409. package/cjs/crypto/crypto.js +0 -8
  410. package/cjs/index.d.ts +0 -3
  411. package/cjs/index.js +0 -32
  412. package/cjs/interfaces/opnet/OPNetTransactionTypes.d.ts +0 -8
  413. package/cjs/interfaces/opnet/OPNetTransactionTypes.js +0 -11
  414. package/cjs/opnet.d.ts +0 -70
  415. package/cjs/opnet.js +0 -89
  416. package/cjs/providers/AbstractRpcProvider.d.ts +0 -48
  417. package/cjs/providers/AbstractRpcProvider.js +0 -277
  418. package/cjs/providers/JSONRpcProvider.d.ts +0 -10
  419. package/cjs/providers/JSONRpcProvider.js +0 -59
  420. package/cjs/providers/WebsocketRpcProvider.d.ts +0 -9
  421. package/cjs/providers/WebsocketRpcProvider.js +0 -27
  422. package/cjs/providers/interfaces/Generate.d.ts +0 -5
  423. package/cjs/providers/interfaces/Generate.js +0 -7
  424. package/cjs/providers/interfaces/JSONRpc.d.ts +0 -11
  425. package/cjs/providers/interfaces/JSONRpc.js +0 -2
  426. package/cjs/providers/interfaces/JSONRpcMethods.d.ts +0 -17
  427. package/cjs/providers/interfaces/JSONRpcMethods.js +0 -21
  428. package/cjs/providers/interfaces/JSONRpcParams.d.ts +0 -3
  429. package/cjs/providers/interfaces/JSONRpcParams.js +0 -2
  430. package/cjs/providers/interfaces/JSONRpcResult.d.ts +0 -51
  431. package/cjs/providers/interfaces/JSONRpcResult.js +0 -29
  432. package/cjs/providers/interfaces/ReorgInformation.d.ts +0 -5
  433. package/cjs/providers/interfaces/ReorgInformation.js +0 -2
  434. package/cjs/serialize/BigInt.d.ts +0 -6
  435. package/cjs/serialize/BigInt.js +0 -5
  436. package/cjs/storage/StoredValue.d.ts +0 -10
  437. package/cjs/storage/StoredValue.js +0 -28
  438. package/cjs/storage/interfaces/IStorageValue.d.ts +0 -8
  439. package/cjs/storage/interfaces/IStorageValue.js +0 -2
  440. package/cjs/transactions/Transaction.d.ts +0 -17
  441. package/cjs/transactions/Transaction.js +0 -33
  442. package/cjs/transactions/TransactionParser.d.ts +0 -7
  443. package/cjs/transactions/TransactionParser.js +0 -43
  444. package/cjs/transactions/decoders/DeploymentTransaction.d.ts +0 -17
  445. package/cjs/transactions/decoders/DeploymentTransaction.js +0 -30
  446. package/cjs/transactions/decoders/GenericTransaction.d.ts +0 -6
  447. package/cjs/transactions/decoders/GenericTransaction.js +0 -10
  448. package/cjs/transactions/decoders/InteractionTransaction.d.ts +0 -15
  449. package/cjs/transactions/decoders/InteractionTransaction.js +0 -25
  450. package/cjs/transactions/decoders/UnwrapTransaction.d.ts +0 -11
  451. package/cjs/transactions/decoders/UnwrapTransaction.js +0 -33
  452. package/cjs/transactions/decoders/WrapTransaction.d.ts +0 -15
  453. package/cjs/transactions/decoders/WrapTransaction.js +0 -34
  454. package/cjs/transactions/interfaces/BroadcastedTransaction.d.ts +0 -7
  455. package/cjs/transactions/interfaces/BroadcastedTransaction.js +0 -2
  456. package/cjs/transactions/interfaces/ITransaction.d.ts +0 -23
  457. package/cjs/transactions/interfaces/ITransaction.js +0 -2
  458. package/cjs/transactions/interfaces/ITransactionReceipt.d.ts +0 -21
  459. package/cjs/transactions/interfaces/ITransactionReceipt.js +0 -2
  460. package/cjs/transactions/interfaces/transactions/ICommonTransaction.d.ts +0 -7
  461. package/cjs/transactions/interfaces/transactions/ICommonTransaction.js +0 -2
  462. package/cjs/transactions/interfaces/transactions/IDeploymentTransaction.d.ts +0 -13
  463. package/cjs/transactions/interfaces/transactions/IDeploymentTransaction.js +0 -2
  464. package/cjs/transactions/interfaces/transactions/IInteractionTransaction.d.ts +0 -14
  465. package/cjs/transactions/interfaces/transactions/IInteractionTransaction.js +0 -2
  466. package/cjs/transactions/interfaces/transactions/IUnwrapTransaction.d.ts +0 -28
  467. package/cjs/transactions/interfaces/transactions/IUnwrapTransaction.js +0 -2
  468. package/cjs/transactions/interfaces/transactions/IWrapTransaction.d.ts +0 -10
  469. package/cjs/transactions/interfaces/transactions/IWrapTransaction.js +0 -2
  470. package/cjs/transactions/metadata/TransactionInput.d.ts +0 -16
  471. package/cjs/transactions/metadata/TransactionInput.js +0 -18
  472. package/cjs/transactions/metadata/TransactionOutput.d.ts +0 -19
  473. package/cjs/transactions/metadata/TransactionOutput.js +0 -20
  474. package/cjs/transactions/metadata/TransactionReceipt.d.ts +0 -11
  475. package/cjs/transactions/metadata/TransactionReceipt.js +0 -57
  476. package/cjs/utils/BitcoinUtils.d.ts +0 -4
  477. package/cjs/utils/BitcoinUtils.js +0 -14
  478. package/tsconfig.cjs.json +0 -9
@@ -1,333 +1,333 @@
1
- <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>JSONRpcProvider | OPNet</title><meta name="description" content="Documentation for OPNet"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><style>
2
- @media (prefers-color-scheme: dark) {
3
- :root {
4
- --md-sys-color-primary: #fbbb45;
5
- --md-sys-color-on-primary: #422c00;
6
- --md-sys-color-primary-container: #5f4100;
7
- --md-sys-color-on-primary-container: #ffdeab;
8
- --md-sys-color-secondary: #dbc3a1;
9
- --md-sys-color-on-secondary: #3c2e16;
10
- --md-sys-color-secondary-container: #54442a;
11
- --md-sys-color-on-secondary-container: #f8dfbb;
12
- --md-sys-color-tertiary: #b4cea5;
13
- --md-sys-color-on-tertiary: #213618;
14
- --md-sys-color-tertiary-container: #374d2d;
15
- --md-sys-color-on-tertiary-container: #d0eabf;
16
- --md-sys-color-error: #ffb4ab;
17
- --md-sys-color-on-error: #690005;
18
- --md-sys-color-error-container: #93000a;
19
- --md-sys-color-on-error-container: #ffb4ab;
20
- --md-sys-color-background: #1f1b16;
21
- --md-sys-color-on-background: #eae1d9;
22
- --md-sys-color-surface: #1f1b16;
23
- --md-sys-color-on-surface: #eae1d9;
24
- --md-sys-color-surface-variant: #4e4539;
25
- --md-sys-color-on-surface-variant: #d2c5b4;
26
- --md-sys-color-outline: #9b8f80;
27
- --md-sys-color-outline-variant: #4e4539;
28
- --md-sys-color-shadow: #000000;
29
- --md-sys-color-scrim: #000000;
30
- --md-sys-color-inverse-surface: #eae1d9;
31
- --md-sys-color-inverse-on-surface: #34302a;
32
- --md-sys-color-inverse-primary: #7e5700;
33
- --md-sys-color-surface-dim: #16130e;
34
- --md-sys-color-surface-bright: #3d3833;
35
- --md-sys-color-surface-container-lowest: #110e09;
36
- --md-sys-color-surface-container-low: #1f1b16;
37
- --md-sys-color-surface-container: #231f1a;
38
- --md-sys-color-surface-container-high: #2d2924;
39
- --md-sys-color-surface-container-highest: #38342e
40
- }
41
- }
42
- :root[data-theme="dark"] {
43
- --md-sys-color-primary: #fbbb45;
44
- --md-sys-color-on-primary: #422c00;
45
- --md-sys-color-primary-container: #5f4100;
46
- --md-sys-color-on-primary-container: #ffdeab;
47
- --md-sys-color-secondary: #dbc3a1;
48
- --md-sys-color-on-secondary: #3c2e16;
49
- --md-sys-color-secondary-container: #54442a;
50
- --md-sys-color-on-secondary-container: #f8dfbb;
51
- --md-sys-color-tertiary: #b4cea5;
52
- --md-sys-color-on-tertiary: #213618;
53
- --md-sys-color-tertiary-container: #374d2d;
54
- --md-sys-color-on-tertiary-container: #d0eabf;
55
- --md-sys-color-error: #ffb4ab;
56
- --md-sys-color-on-error: #690005;
57
- --md-sys-color-error-container: #93000a;
58
- --md-sys-color-on-error-container: #ffb4ab;
59
- --md-sys-color-background: #1f1b16;
60
- --md-sys-color-on-background: #eae1d9;
61
- --md-sys-color-surface: #1f1b16;
62
- --md-sys-color-on-surface: #eae1d9;
63
- --md-sys-color-surface-variant: #4e4539;
64
- --md-sys-color-on-surface-variant: #d2c5b4;
65
- --md-sys-color-outline: #9b8f80;
66
- --md-sys-color-outline-variant: #4e4539;
67
- --md-sys-color-shadow: #000000;
68
- --md-sys-color-scrim: #000000;
69
- --md-sys-color-inverse-surface: #eae1d9;
70
- --md-sys-color-inverse-on-surface: #34302a;
71
- --md-sys-color-inverse-primary: #7e5700;
72
- --md-sys-color-surface-dim: #16130e;
73
- --md-sys-color-surface-bright: #3d3833;
74
- --md-sys-color-surface-container-lowest: #110e09;
75
- --md-sys-color-surface-container-low: #1f1b16;
76
- --md-sys-color-surface-container: #231f1a;
77
- --md-sys-color-surface-container-high: #2d2924;
78
- --md-sys-color-surface-container-highest: #38342e
79
- }
80
-
81
- @media (prefers-color-scheme: light) {
82
- :root {
83
- --md-sys-color-primary: #7e5700;
84
- --md-sys-color-on-primary: #ffffff;
85
- --md-sys-color-primary-container: #ffdeab;
86
- --md-sys-color-on-primary-container: #271900;
87
- --md-sys-color-secondary: #6e5c3f;
88
- --md-sys-color-on-secondary: #ffffff;
89
- --md-sys-color-secondary-container: #f8dfbb;
90
- --md-sys-color-on-secondary-container: #261904;
91
- --md-sys-color-tertiary: #4e6543;
92
- --md-sys-color-on-tertiary: #ffffff;
93
- --md-sys-color-tertiary-container: #d0eabf;
94
- --md-sys-color-on-tertiary-container: #0c2006;
95
- --md-sys-color-error: #ba1a1a;
96
- --md-sys-color-on-error: #ffffff;
97
- --md-sys-color-error-container: #ffdad6;
98
- --md-sys-color-on-error-container: #410002;
99
- --md-sys-color-background: #fffbff;
100
- --md-sys-color-on-background: #1f1b16;
101
- --md-sys-color-surface: #fffbff;
102
- --md-sys-color-on-surface: #1f1b16;
103
- --md-sys-color-surface-variant: #eee0cf;
104
- --md-sys-color-on-surface-variant: #4e4539;
105
- --md-sys-color-outline: #807567;
106
- --md-sys-color-outline-variant: #d2c5b4;
107
- --md-sys-color-shadow: #000000;
108
- --md-sys-color-scrim: #000000;
109
- --md-sys-color-inverse-surface: #34302a;
110
- --md-sys-color-inverse-on-surface: #f8efe7;
111
- --md-sys-color-inverse-primary: #fbbb45;
112
- --md-sys-color-surface-dim: #e1d9d0;
113
- --md-sys-color-surface-bright: #fff8f3;
114
- --md-sys-color-surface-container-lowest: #ffffff;
115
- --md-sys-color-surface-container-low: #fbf2e9;
116
- --md-sys-color-surface-container: #f5ece4;
117
- --md-sys-color-surface-container-high: #f0e7de;
118
- --md-sys-color-surface-container-highest: #eae1d9
119
- }
120
- }
121
- :root[data-theme="light"] {
122
- --md-sys-color-primary: #7e5700;
123
- --md-sys-color-on-primary: #ffffff;
124
- --md-sys-color-primary-container: #ffdeab;
125
- --md-sys-color-on-primary-container: #271900;
126
- --md-sys-color-secondary: #6e5c3f;
127
- --md-sys-color-on-secondary: #ffffff;
128
- --md-sys-color-secondary-container: #f8dfbb;
129
- --md-sys-color-on-secondary-container: #261904;
130
- --md-sys-color-tertiary: #4e6543;
131
- --md-sys-color-on-tertiary: #ffffff;
132
- --md-sys-color-tertiary-container: #d0eabf;
133
- --md-sys-color-on-tertiary-container: #0c2006;
134
- --md-sys-color-error: #ba1a1a;
135
- --md-sys-color-on-error: #ffffff;
136
- --md-sys-color-error-container: #ffdad6;
137
- --md-sys-color-on-error-container: #410002;
138
- --md-sys-color-background: #fffbff;
139
- --md-sys-color-on-background: #1f1b16;
140
- --md-sys-color-surface: #fffbff;
141
- --md-sys-color-on-surface: #1f1b16;
142
- --md-sys-color-surface-variant: #eee0cf;
143
- --md-sys-color-on-surface-variant: #4e4539;
144
- --md-sys-color-outline: #807567;
145
- --md-sys-color-outline-variant: #d2c5b4;
146
- --md-sys-color-shadow: #000000;
147
- --md-sys-color-scrim: #000000;
148
- --md-sys-color-inverse-surface: #34302a;
149
- --md-sys-color-inverse-on-surface: #f8efe7;
150
- --md-sys-color-inverse-primary: #fbbb45;
151
- --md-sys-color-surface-dim: #e1d9d0;
152
- --md-sys-color-surface-bright: #fff8f3;
153
- --md-sys-color-surface-container-lowest: #ffffff;
154
- --md-sys-color-surface-container-low: #fbf2e9;
155
- --md-sys-color-surface-container: #f5ece4;
156
- --md-sys-color-surface-container-high: #f0e7de;
157
- --md-sys-color-surface-container-highest: #eae1d9
158
- }
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="JSONRpcProvider.html">JSONRpcProvider</a></li></ul><h1>Class JSONRpcProvider</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 JSON RPC provider.
160
- JSONRpcProvider</p>
161
- </div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#JSONRpcProvider">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">JSONRpcProvider</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L10">src/providers/JSONRpcProvider.ts:10</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="JSONRpcProvider.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
- </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="JSONRpcProvider.html#timeout" 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>timeout</span></a>
163
- <a href="JSONRpcProvider.html#url" 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>url</span></a>
164
- </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="JSONRpcProvider.html#_send" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_send</span></a>
165
- <a href="JSONRpcProvider.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>
166
- <a href="JSONRpcProvider.html#callMultiplePayloads" 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<wbr/>Multiple<wbr/>Payloads</span></a>
167
- <a href="JSONRpcProvider.html#callPayloadSingle" class="tsd-index-link tsd-is-private tsd-is-inherited"><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>
168
- <a href="JSONRpcProvider.html#getBalance" 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/>Balance</span></a>
169
- <a href="JSONRpcProvider.html#getBlock" 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/>Block</span></a>
170
- <a href="JSONRpcProvider.html#getBlockByHash" 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/>Block<wbr/>By<wbr/>Hash</span></a>
171
- <a href="JSONRpcProvider.html#getBlockNumber" 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/>Block<wbr/>Number</span></a>
172
- <a href="JSONRpcProvider.html#getBlockWitness" 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/>Block<wbr/>Witness</span></a>
173
- <a href="JSONRpcProvider.html#getBlocks" 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/>Blocks</span></a>
174
- <a href="JSONRpcProvider.html#getChainId" 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/>Chain<wbr/>Id</span></a>
175
- <a href="JSONRpcProvider.html#getCode" 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/>Code</span></a>
176
- <a href="JSONRpcProvider.html#getNetwork" 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/>Network</span></a>
177
- <a href="JSONRpcProvider.html#getReorg" 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/>Reorg</span></a>
178
- <a href="JSONRpcProvider.html#getStorageAt" 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/>Storage<wbr/>At</span></a>
179
- <a href="JSONRpcProvider.html#getTransaction" 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</span></a>
180
- <a href="JSONRpcProvider.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>
181
- <a href="JSONRpcProvider.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>
182
- <a href="JSONRpcProvider.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>
183
- <a href="JSONRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a>
184
- <a href="JSONRpcProvider.html#sendRawTransaction" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</span></a>
185
- </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_JSONRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new JSONRpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span>, <span class="tsd-kind-parameter">timeout</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="JSONRpcProvider.html" class="tsd-signature-type tsd-kind-class">JSONRpcProvider</a><a href="#constructor.new_JSONRpcProvider" 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><li><span><span class="tsd-kind-parameter">timeout</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10_000</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="JSONRpcProvider.html" class="tsd-signature-type tsd-kind-class">JSONRpcProvider</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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L13">src/providers/JSONRpcProvider.ts:13</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-private"><a id="timeout" 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>timeout</span><a href="#timeout" 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">timeout</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10_000</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L13">src/providers/JSONRpcProvider.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="url" 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>url</span><a href="#url" 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">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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L11">src/providers/JSONRpcProvider.ts:11</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="_send" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_send</span><a href="#_send" 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="_send._send-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">_send</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><a href="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#_send._send-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">payload</span>: <a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a><span class="tsd-signature-symbol"> | </span><a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The payload to send</p>
186
- </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="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span></h4><ul>
187
- <li>The result of the call</li>
188
- </ul>
189
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>Sends a JSON RPC payload to the provider.</p>
190
- </div><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#_send">_send</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L24">src/providers/JSONRpcProvider.ts:24</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="call" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call</span><a href="#call" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="call.call-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">to</span>, <span class="tsd-kind-parameter">data</span>, <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ICallRequestError.html" class="tsd-signature-type tsd-kind-interface">ICallRequestError</a><span class="tsd-signature-symbol"> | </span><a href="CallResult.html" class="tsd-signature-type tsd-kind-class">CallResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#call.call-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Call a contract function with a given calldata.</p>
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">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>
192
- </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>
193
- </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>
194
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">height</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The height to call the contract from</p>
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">&lt;</span><a href="../interfaces/ICallRequestError.html" class="tsd-signature-type tsd-kind-interface">ICallRequestError</a><span class="tsd-signature-symbol"> | </span><a href="CallResult.html" class="tsd-signature-type tsd-kind-class">CallResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the contract function call</p>
196
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to call a contract function with a given calldata.</p>
197
- <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>
198
- </code><button>Copy</button></pre>
199
- <h4>Throws</h4><p>If something went wrong while calling the contract</p>
200
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L370">src/providers/AbstractRpcProvider.ts:370</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="callMultiplePayloads" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call<wbr/>Multiple<wbr/>Payloads</span><a href="#callMultiplePayloads" 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="callMultiplePayloads.callMultiplePayloads-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call<wbr/>Multiple<wbr/>Payloads</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">payloads</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#callMultiplePayloads.callMultiplePayloads-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Send multiple payloads. This method is used to send multiple payloads.</p>
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">payloads</span>: <a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The payloads to send</p>
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">&lt;</span><a href="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the payloads</p>
203
- <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#callMultiplePayloads">callMultiplePayloads</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L564">src/providers/AbstractRpcProvider.ts:564</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private tsd-is-inherited"><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 tsd-is-inherited"><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><a href="../types/JsonRpcResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcResult</a><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>
204
- </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>: <a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a></span><div class="tsd-comment tsd-typography"><p>The payload to send</p>
205
- </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="../types/JsonRpcResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcResult</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the payload</p>
206
- <div class="tsd-comment tsd-typography"><h4>Throws</h4><p>If no data is returned</p>
207
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#callPayloadSingle">callPayloadSingle</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L545">src/providers/AbstractRpcProvider.ts:545</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-kind-parameter">filterOrdinals</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">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>
208
- </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>
209
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">filterOrdinals</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 filter ordinals or not</p>
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><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The balance of the address</p>
211
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the balance of a bitcoin address.</p>
212
- <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>
213
- </code><button>Copy</button></pre>
214
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBalance">getBalance</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L152">src/providers/AbstractRpcProvider.ts:152</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlock" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block</span><a href="#getBlock" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlock.getBlock-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumberOrHash</span>, <span class="tsd-kind-parameter">prefetchTxs</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlock.getBlock-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get block by number or hash.</p>
215
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">blockNumberOrHash</span>: <a href="../types/BlockTag.html" class="tsd-signature-type tsd-kind-type-alias">BlockTag</a></span><div class="tsd-comment tsd-typography"><p>The block number or hash</p>
216
- </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>
217
- </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>
218
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a block by its number or hash.</p>
219
- <h4>Throws</h4><p>If the block is not found</p>
220
- <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-9">123456</span><span class="hl-1">);</span>
221
- </code><button>Copy</button></pre>
222
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L76">src/providers/AbstractRpcProvider.ts:76</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockByHash" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span><a href="#getBlockByHash" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockByHash.getBlockByHash-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>By<wbr/>Hash</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockByHash.getBlockByHash-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get block by hash. This is the same method as getBlock.</p>
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">blockHash</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The block hash</p>
224
- </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>
225
- <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>
226
- <h4>Throws</h4><p>If the block is not found</p>
227
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L140">src/providers/AbstractRpcProvider.ts:140</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Number</span><a href="#getBlockNumber" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockNumber.getBlockNumber-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Number</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">bigint</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>
228
- </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 latest block number</p>
229
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the latest block number.</p>
230
- <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>
231
- </code><button>Copy</button></pre>
232
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L55">src/providers/AbstractRpcProvider.ts:55</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockWitness" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Witness</span><a href="#getBlockWitness" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockWitness.getBlockWitness-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Witness</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">trusted</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">limit</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">page</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/BlockWitnesses.html" class="tsd-signature-type tsd-kind-type-alias">BlockWitnesses</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockWitness.getBlockWitness-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get block witnesses.</p>
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">height</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a><span class="tsd-signature-symbol"> = -1</span></span><div class="tsd-comment tsd-typography"><p>The block number or hash, use -1 for latest block</p>
234
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">trusted</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether to trust the witnesses or not</p>
235
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">limit</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The maximum number of witnesses to return</p>
236
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">page</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The page number of the witnesses</p>
237
- </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="../types/BlockWitnesses.html" class="tsd-signature-type tsd-kind-type-alias">BlockWitnesses</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The witnesses of the block</p>
238
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the witnesses of a block. This proves that the action executed inside a block are valid and confirmed by the network. If the minimum number of witnesses are not met, the block is considered as potentially invalid.</p>
239
- <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getBlockWitness</span><span class="hl-1">(</span><span class="hl-9">123456</span><span class="hl-5">n</span><span class="hl-1">);</span>
240
- </code><button>Copy</button></pre>
241
- <h4>Throws</h4><p>If something went wrong while fetching the witnesses</p>
242
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockWitness">getBlockWitness</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L447">src/providers/AbstractRpcProvider.ts:447</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlocks" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Blocks</span><a href="#getBlocks" 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="getBlocks.getBlocks-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Blocks</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumbers</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">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getBlocks.getBlocks-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 multiple blocks by number or hash.</p>
243
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">blockNumbers</span>: <a href="../types/BlockTag.html" class="tsd-signature-type tsd-kind-type-alias">BlockTag</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The block numbers or hashes</p>
244
- </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>
245
- </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">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested blocks</p>
246
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get multiple blocks by their numbers or hashes.</p>
247
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlocks">getBlocks</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L103">src/providers/AbstractRpcProvider.ts:103</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getChainId" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Chain<wbr/>Id</span><a href="#getChainId" 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="getChainId.getChainId-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Chain<wbr/>Id</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">bigint</span><span class="tsd-signature-symbol">&gt;</span><a href="#getChainId.getChainId-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 chain id.</p>
248
- </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 chain id</p>
249
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the chain id.</p>
250
- <h4>Throws</h4><p>If something went wrong while fetching the chain id</p>
251
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getChainId">getChainId</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L270">src/providers/AbstractRpcProvider.ts:270</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getCode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Code</span><a href="#getCode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getCode.getCode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Code</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">onlyBytecode</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><a href="ContractData.html" class="tsd-signature-type tsd-kind-class">ContractData</a><span class="tsd-signature-symbol">&gt;</span><a href="#getCode.getCode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the contract code of an address.</p>
252
- </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>
253
- </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>
254
- </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>
255
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the contract code of an address.</p>
256
- <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>
257
- </code><button>Copy</button></pre>
258
- <h4>Throws</h4><p>If something went wrong while fetching the contract code</p>
259
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L294">src/providers/AbstractRpcProvider.ts:294</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Network</span><a href="#getNetwork" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getNetwork.getNetwork-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Network</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">&gt;</span><a href="#getNetwork.getNetwork-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the current connected network type.</p>
260
- </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>
261
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the current connected network type.</p>
262
- <h4>Throws</h4><p>If the chain id is invalid</p>
263
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L245">src/providers/AbstractRpcProvider.ts:245</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getReorg" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Reorg</span><a href="#getReorg" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getReorg.getReorg-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Reorg</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">fromBlock</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">toBlock</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getReorg.getReorg-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get reorgs that happened between two blocks.</p>
264
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">fromBlock</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The block number to start from</p>
265
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">toBlock</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The block number to end at</p>
266
- </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The reorg information</p>
267
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the reorgs that happened between two blocks.</p>
268
- <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getReorg</span><span class="hl-1">(</span><span class="hl-9">123456</span><span class="hl-5">n</span><span class="hl-1">, </span><span class="hl-9">123457</span><span class="hl-5">n</span><span class="hl-1">);</span>
269
- </code><button>Copy</button></pre>
270
- <h4>Throws</h4><p>If something went wrong while fetching the reorg information</p>
271
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getReorg">getReorg</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L483">src/providers/AbstractRpcProvider.ts:483</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getStorageAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Storage<wbr/>At</span><a href="#getStorageAt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getStorageAt.getStorageAt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Storage<wbr/>At</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">rawPointer</span>, <span class="tsd-kind-parameter">proofs</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">&gt;</span><a href="#getStorageAt.getStorageAt-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the storage at a specific address and pointer.</p>
272
- </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>
273
- </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>
274
- </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>
275
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">height</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The height to get the storage from</p>
276
- </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="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The storage value</p>
277
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the storage at a specific address and pointer.</p>
278
- <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>
279
- </code><button>Copy</button></pre>
280
- <h4>Throws</h4><p>If something went wrong while fetching the storage</p>
281
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L333">src/providers/AbstractRpcProvider.ts:333</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction</span><a href="#getTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransaction.getTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol">&lt;</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#getTransaction.getTransaction-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a transaction by its hash or hash id.</p>
282
- </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>
283
- </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>
284
- <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>
285
- <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>
286
- </code><button>Copy</button></pre>
287
- <h4>Throws</h4><p>If something went wrong while fetching the transaction</p>
288
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L203">src/providers/AbstractRpcProvider.ts:203</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransactionReceipt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction<wbr/>Receipt</span><a href="#getTransactionReceipt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransactionReceipt.getTransactionReceipt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction<wbr/>Receipt</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span><a href="#getTransactionReceipt.getTransactionReceipt-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a transaction receipt by its hash.</p>
289
- </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>
290
- </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested transaction receipt</p>
291
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a transaction receipt by its hash.</p>
292
- <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>
293
- </code><button>Copy</button></pre>
294
- <h4>Throws</h4><p>Something went wrong while fetching the transaction receipt</p>
295
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L229">src/providers/AbstractRpcProvider.ts:229</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getUXTOs" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>getUXTOs</span><a href="#getUXTOs" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getUXTOs.getUXTOs-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">getUXTOs</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">optimize</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getUXTOs.getUXTOs-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the UTXOs (Unspent Transaction Outputs) of an address.</p>
296
- </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>
297
- </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>
298
- </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>
299
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the UTXOs of a bitcoin address.</p>
300
- <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>
301
- </code><button>Copy</button></pre>
302
- <h4>Throws</h4><p>If something went wrong while fetching the UTXOs</p>
303
- </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L177">src/providers/AbstractRpcProvider.ts:177</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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L68">src/providers/JSONRpcProvider.ts:68</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="requestTrustedPublicKeyForBitcoinWrapping" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span><a href="#requestTrustedPublicKeyForBitcoinWrapping" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">amount</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WrappedGeneration</span><span class="tsd-signature-symbol">&gt;</span><a href="#requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate parameters needed to wrap bitcoin.</p>
304
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">amount</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The amount to wrap</p>
305
- </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">WrappedGeneration</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The wrapped generation parameters</p>
306
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to generate the parameters needed to wrap bitcoin.</p>
307
- <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">requestTrustedPublicKeyForBitcoinWrapping</span><span class="hl-1">(</span><span class="hl-9">100000000</span><span class="hl-5">n</span><span class="hl-1">);</span>
308
- </code><button>Copy</button></pre>
309
- <h4>Throws</h4><p>If something went wrong while generating the parameters</p>
310
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping">requestTrustedPublicKeyForBitcoinWrapping</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L516">src/providers/AbstractRpcProvider.ts:516</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="sendRawTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Raw<wbr/>Transaction</span><a href="#sendRawTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="sendRawTransaction.sendRawTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Raw<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">tx</span>, <span class="tsd-kind-parameter">psbt</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span><a href="#sendRawTransaction.sendRawTransaction-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Send a raw transaction.</p>
311
- </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">tx</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The raw transaction to send as hex string</p>
312
- </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">psbt</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the transaction is a PSBT or not</p>
313
- </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the transaction</p>
314
- <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to send a raw transaction.</p>
315
- <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">sendRawTransaction</span><span class="hl-1">(</span><span class="hl-2">&#39;02000000000101ad897689f66c98daae5fdc3606235c1ad7a17b9e0a6aaa0ea9e58ecc1198ad2a0100000000ffffffff01a154c39400000000160014482038efcc91af945f0c756d07a46401920380520247304402201c1f8718dec637ddb41b42abc44dcbf35a94c6be6a9de8c1db48c9fa6e456b7e022032a4b3286808372a7ac2c5094d6341b4d61b17663f4ccd1c1d92efa85c7dada80121020373626d317ae8788ce3280b491068610d840c23ecb64c14075bbb9f670af52c00000000&#39;</span><span class="hl-1">, </span><span class="hl-5">false</span><span class="hl-1">);</span>
316
- </code><button>Copy</button></pre>
317
- <h4>Throws</h4><p>If something went wrong while sending the transaction</p>
318
- </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#sendRawTransaction">sendRawTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L413">src/providers/AbstractRpcProvider.ts:413</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="#timeout" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>timeout</span></a><a href="#url" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>url</span></a><a href="#_send" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_send</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="#callMultiplePayloads" 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<wbr/>Multiple<wbr/>Payloads</span></a><a href="#callPayloadSingle" class="tsd-is-private tsd-is-inherited"><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="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Balance</span></a><a href="#getBlock" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block</span></a><a href="#getBlockByHash" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span></a><a href="#getBlockNumber" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Number</span></a><a href="#getBlockWitness" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Witness</span></a><a href="#getBlocks" 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/>Blocks</span></a><a href="#getChainId" 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/>Chain<wbr/>Id</span></a><a href="#getCode" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Code</span></a><a href="#getNetwork" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Network</span></a><a href="#getReorg" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Reorg</span></a><a href="#getStorageAt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Storage<wbr/>At</span></a><a href="#getTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction</span></a><a href="#getTransactionReceipt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction<wbr/>Receipt</span></a><a href="#getUXTOs" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a><a href="#providerUrl" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a><a href="#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a><a href="#sendRawTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>OPNet</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div><script>
319
- try {
320
- const generateLinkElement = document.querySelector(".tsd-generator a");
321
- const link = document.createElement("a");
322
- Object.assign(link, {
323
- href: "https://github.com/dmnsgn/typedoc-material-theme",
324
- target: "_blank",
325
- rel: "noreferrer",
326
- innerText: "typedoc-material-theme."
327
- });
328
- generateLinkElement.insertAdjacentElement("afterend", link);
329
- generateLinkElement.insertAdjacentText("afterend", " with ");
330
- } catch (error) {
331
-
332
- }
1
+ <!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>JSONRpcProvider | OPNet</title><meta name="description" content="Documentation for OPNet"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script defer src="../assets/main.js"></script><script async src="../assets/icons.js" id="tsd-icons-script"></script><script async src="../assets/search.js" id="tsd-search-script"></script><script async src="../assets/navigation.js" id="tsd-nav-script"></script><style>
2
+ @media (prefers-color-scheme: dark) {
3
+ :root {
4
+ --md-sys-color-primary: #fbbb45;
5
+ --md-sys-color-on-primary: #422c00;
6
+ --md-sys-color-primary-container: #5f4100;
7
+ --md-sys-color-on-primary-container: #ffdeab;
8
+ --md-sys-color-secondary: #dbc3a1;
9
+ --md-sys-color-on-secondary: #3c2e16;
10
+ --md-sys-color-secondary-container: #54442a;
11
+ --md-sys-color-on-secondary-container: #f8dfbb;
12
+ --md-sys-color-tertiary: #b4cea5;
13
+ --md-sys-color-on-tertiary: #213618;
14
+ --md-sys-color-tertiary-container: #374d2d;
15
+ --md-sys-color-on-tertiary-container: #d0eabf;
16
+ --md-sys-color-error: #ffb4ab;
17
+ --md-sys-color-on-error: #690005;
18
+ --md-sys-color-error-container: #93000a;
19
+ --md-sys-color-on-error-container: #ffb4ab;
20
+ --md-sys-color-background: #1f1b16;
21
+ --md-sys-color-on-background: #eae1d9;
22
+ --md-sys-color-surface: #1f1b16;
23
+ --md-sys-color-on-surface: #eae1d9;
24
+ --md-sys-color-surface-variant: #4e4539;
25
+ --md-sys-color-on-surface-variant: #d2c5b4;
26
+ --md-sys-color-outline: #9b8f80;
27
+ --md-sys-color-outline-variant: #4e4539;
28
+ --md-sys-color-shadow: #000000;
29
+ --md-sys-color-scrim: #000000;
30
+ --md-sys-color-inverse-surface: #eae1d9;
31
+ --md-sys-color-inverse-on-surface: #34302a;
32
+ --md-sys-color-inverse-primary: #7e5700;
33
+ --md-sys-color-surface-dim: #16130e;
34
+ --md-sys-color-surface-bright: #3d3833;
35
+ --md-sys-color-surface-container-lowest: #110e09;
36
+ --md-sys-color-surface-container-low: #1f1b16;
37
+ --md-sys-color-surface-container: #231f1a;
38
+ --md-sys-color-surface-container-high: #2d2924;
39
+ --md-sys-color-surface-container-highest: #38342e
40
+ }
41
+ }
42
+ :root[data-theme="dark"] {
43
+ --md-sys-color-primary: #fbbb45;
44
+ --md-sys-color-on-primary: #422c00;
45
+ --md-sys-color-primary-container: #5f4100;
46
+ --md-sys-color-on-primary-container: #ffdeab;
47
+ --md-sys-color-secondary: #dbc3a1;
48
+ --md-sys-color-on-secondary: #3c2e16;
49
+ --md-sys-color-secondary-container: #54442a;
50
+ --md-sys-color-on-secondary-container: #f8dfbb;
51
+ --md-sys-color-tertiary: #b4cea5;
52
+ --md-sys-color-on-tertiary: #213618;
53
+ --md-sys-color-tertiary-container: #374d2d;
54
+ --md-sys-color-on-tertiary-container: #d0eabf;
55
+ --md-sys-color-error: #ffb4ab;
56
+ --md-sys-color-on-error: #690005;
57
+ --md-sys-color-error-container: #93000a;
58
+ --md-sys-color-on-error-container: #ffb4ab;
59
+ --md-sys-color-background: #1f1b16;
60
+ --md-sys-color-on-background: #eae1d9;
61
+ --md-sys-color-surface: #1f1b16;
62
+ --md-sys-color-on-surface: #eae1d9;
63
+ --md-sys-color-surface-variant: #4e4539;
64
+ --md-sys-color-on-surface-variant: #d2c5b4;
65
+ --md-sys-color-outline: #9b8f80;
66
+ --md-sys-color-outline-variant: #4e4539;
67
+ --md-sys-color-shadow: #000000;
68
+ --md-sys-color-scrim: #000000;
69
+ --md-sys-color-inverse-surface: #eae1d9;
70
+ --md-sys-color-inverse-on-surface: #34302a;
71
+ --md-sys-color-inverse-primary: #7e5700;
72
+ --md-sys-color-surface-dim: #16130e;
73
+ --md-sys-color-surface-bright: #3d3833;
74
+ --md-sys-color-surface-container-lowest: #110e09;
75
+ --md-sys-color-surface-container-low: #1f1b16;
76
+ --md-sys-color-surface-container: #231f1a;
77
+ --md-sys-color-surface-container-high: #2d2924;
78
+ --md-sys-color-surface-container-highest: #38342e
79
+ }
80
+
81
+ @media (prefers-color-scheme: light) {
82
+ :root {
83
+ --md-sys-color-primary: #7e5700;
84
+ --md-sys-color-on-primary: #ffffff;
85
+ --md-sys-color-primary-container: #ffdeab;
86
+ --md-sys-color-on-primary-container: #271900;
87
+ --md-sys-color-secondary: #6e5c3f;
88
+ --md-sys-color-on-secondary: #ffffff;
89
+ --md-sys-color-secondary-container: #f8dfbb;
90
+ --md-sys-color-on-secondary-container: #261904;
91
+ --md-sys-color-tertiary: #4e6543;
92
+ --md-sys-color-on-tertiary: #ffffff;
93
+ --md-sys-color-tertiary-container: #d0eabf;
94
+ --md-sys-color-on-tertiary-container: #0c2006;
95
+ --md-sys-color-error: #ba1a1a;
96
+ --md-sys-color-on-error: #ffffff;
97
+ --md-sys-color-error-container: #ffdad6;
98
+ --md-sys-color-on-error-container: #410002;
99
+ --md-sys-color-background: #fffbff;
100
+ --md-sys-color-on-background: #1f1b16;
101
+ --md-sys-color-surface: #fffbff;
102
+ --md-sys-color-on-surface: #1f1b16;
103
+ --md-sys-color-surface-variant: #eee0cf;
104
+ --md-sys-color-on-surface-variant: #4e4539;
105
+ --md-sys-color-outline: #807567;
106
+ --md-sys-color-outline-variant: #d2c5b4;
107
+ --md-sys-color-shadow: #000000;
108
+ --md-sys-color-scrim: #000000;
109
+ --md-sys-color-inverse-surface: #34302a;
110
+ --md-sys-color-inverse-on-surface: #f8efe7;
111
+ --md-sys-color-inverse-primary: #fbbb45;
112
+ --md-sys-color-surface-dim: #e1d9d0;
113
+ --md-sys-color-surface-bright: #fff8f3;
114
+ --md-sys-color-surface-container-lowest: #ffffff;
115
+ --md-sys-color-surface-container-low: #fbf2e9;
116
+ --md-sys-color-surface-container: #f5ece4;
117
+ --md-sys-color-surface-container-high: #f0e7de;
118
+ --md-sys-color-surface-container-highest: #eae1d9
119
+ }
120
+ }
121
+ :root[data-theme="light"] {
122
+ --md-sys-color-primary: #7e5700;
123
+ --md-sys-color-on-primary: #ffffff;
124
+ --md-sys-color-primary-container: #ffdeab;
125
+ --md-sys-color-on-primary-container: #271900;
126
+ --md-sys-color-secondary: #6e5c3f;
127
+ --md-sys-color-on-secondary: #ffffff;
128
+ --md-sys-color-secondary-container: #f8dfbb;
129
+ --md-sys-color-on-secondary-container: #261904;
130
+ --md-sys-color-tertiary: #4e6543;
131
+ --md-sys-color-on-tertiary: #ffffff;
132
+ --md-sys-color-tertiary-container: #d0eabf;
133
+ --md-sys-color-on-tertiary-container: #0c2006;
134
+ --md-sys-color-error: #ba1a1a;
135
+ --md-sys-color-on-error: #ffffff;
136
+ --md-sys-color-error-container: #ffdad6;
137
+ --md-sys-color-on-error-container: #410002;
138
+ --md-sys-color-background: #fffbff;
139
+ --md-sys-color-on-background: #1f1b16;
140
+ --md-sys-color-surface: #fffbff;
141
+ --md-sys-color-on-surface: #1f1b16;
142
+ --md-sys-color-surface-variant: #eee0cf;
143
+ --md-sys-color-on-surface-variant: #4e4539;
144
+ --md-sys-color-outline: #807567;
145
+ --md-sys-color-outline-variant: #d2c5b4;
146
+ --md-sys-color-shadow: #000000;
147
+ --md-sys-color-scrim: #000000;
148
+ --md-sys-color-inverse-surface: #34302a;
149
+ --md-sys-color-inverse-on-surface: #f8efe7;
150
+ --md-sys-color-inverse-primary: #fbbb45;
151
+ --md-sys-color-surface-dim: #e1d9d0;
152
+ --md-sys-color-surface-bright: #fff8f3;
153
+ --md-sys-color-surface-container-lowest: #ffffff;
154
+ --md-sys-color-surface-container-low: #fbf2e9;
155
+ --md-sys-color-surface-container: #f5ece4;
156
+ --md-sys-color-surface-container-high: #f0e7de;
157
+ --md-sys-color-surface-container-highest: #eae1d9
158
+ }
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="JSONRpcProvider.html">JSONRpcProvider</a></li></ul><h1>Class JSONRpcProvider</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 JSON RPC provider.
160
+ JSONRpcProvider</p>
161
+ </div></section><section class="tsd-panel tsd-hierarchy"><h4>Hierarchy (<a class="link" href="../hierarchy.html#JSONRpcProvider">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">JSONRpcProvider</span></li></ul></li></ul></section><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L10">src/providers/JSONRpcProvider.ts:10</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="JSONRpcProvider.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
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Properties</h3><div class="tsd-index-list"><a href="JSONRpcProvider.html#timeout" 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>timeout</span></a>
163
+ <a href="JSONRpcProvider.html#url" 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>url</span></a>
164
+ </div></section><section class="tsd-index-section"><h3 class="tsd-index-heading">Methods</h3><div class="tsd-index-list"><a href="JSONRpcProvider.html#_send" class="tsd-index-link"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_send</span></a>
165
+ <a href="JSONRpcProvider.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>
166
+ <a href="JSONRpcProvider.html#callMultiplePayloads" 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<wbr/>Multiple<wbr/>Payloads</span></a>
167
+ <a href="JSONRpcProvider.html#callPayloadSingle" class="tsd-index-link tsd-is-private tsd-is-inherited"><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>
168
+ <a href="JSONRpcProvider.html#getBalance" 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/>Balance</span></a>
169
+ <a href="JSONRpcProvider.html#getBlock" 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/>Block</span></a>
170
+ <a href="JSONRpcProvider.html#getBlockByHash" 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/>Block<wbr/>By<wbr/>Hash</span></a>
171
+ <a href="JSONRpcProvider.html#getBlockNumber" 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/>Block<wbr/>Number</span></a>
172
+ <a href="JSONRpcProvider.html#getBlockWitness" 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/>Block<wbr/>Witness</span></a>
173
+ <a href="JSONRpcProvider.html#getBlocks" 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/>Blocks</span></a>
174
+ <a href="JSONRpcProvider.html#getChainId" 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/>Chain<wbr/>Id</span></a>
175
+ <a href="JSONRpcProvider.html#getCode" 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/>Code</span></a>
176
+ <a href="JSONRpcProvider.html#getNetwork" 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/>Network</span></a>
177
+ <a href="JSONRpcProvider.html#getReorg" 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/>Reorg</span></a>
178
+ <a href="JSONRpcProvider.html#getStorageAt" 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/>Storage<wbr/>At</span></a>
179
+ <a href="JSONRpcProvider.html#getTransaction" 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</span></a>
180
+ <a href="JSONRpcProvider.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>
181
+ <a href="JSONRpcProvider.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>
182
+ <a href="JSONRpcProvider.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>
183
+ <a href="JSONRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a>
184
+ <a href="JSONRpcProvider.html#sendRawTransaction" class="tsd-index-link tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</span></a>
185
+ </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_JSONRpcProvider" class="tsd-anchor"></a><span class="tsd-kind-constructor-signature">new JSONRpc<wbr/>Provider</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">url</span>, <span class="tsd-kind-parameter">timeout</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="JSONRpcProvider.html" class="tsd-signature-type tsd-kind-class">JSONRpcProvider</a><a href="#constructor.new_JSONRpcProvider" 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><li><span><span class="tsd-kind-parameter">timeout</span>: <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10_000</span></span></li></ul></div><h4 class="tsd-returns-title">Returns <a href="JSONRpcProvider.html" class="tsd-signature-type tsd-kind-class">JSONRpcProvider</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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L13">src/providers/JSONRpcProvider.ts:13</a></li></ul></aside></li></ul></section></section><section class="tsd-panel-group tsd-member-group"><h2>Properties</h2><section class="tsd-panel tsd-member tsd-is-private"><a id="timeout" 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>timeout</span><a href="#timeout" 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">timeout</span><span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 10_000</span></div><aside class="tsd-sources"><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L13">src/providers/JSONRpcProvider.ts:13</a></li></ul></aside></section><section class="tsd-panel tsd-member tsd-is-private"><a id="url" 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>url</span><a href="#url" 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">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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L11">src/providers/JSONRpcProvider.ts:11</a></li></ul></aside></section></section><section class="tsd-panel-group tsd-member-group"><h2>Methods</h2><section class="tsd-panel tsd-member"><a id="_send" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>_send</span><a href="#_send" 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="_send._send-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">_send</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><a href="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#_send._send-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">payload</span>: <a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a><span class="tsd-signature-symbol"> | </span><a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The payload to send</p>
186
+ </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="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span></h4><ul>
187
+ <li>The result of the call</li>
188
+ </ul>
189
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>Sends a JSON RPC payload to the provider.</p>
190
+ </div><aside class="tsd-sources"><p>Overrides <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#_send">_send</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L24">src/providers/JSONRpcProvider.ts:24</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="call" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call</span><a href="#call" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="call.call-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">to</span>, <span class="tsd-kind-parameter">data</span>, <span class="tsd-kind-parameter">from</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ICallRequestError.html" class="tsd-signature-type tsd-kind-interface">ICallRequestError</a><span class="tsd-signature-symbol"> | </span><a href="CallResult.html" class="tsd-signature-type tsd-kind-class">CallResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#call.call-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Call a contract function with a given calldata.</p>
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">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>
192
+ </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>
193
+ </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>
194
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">height</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The height to call the contract from</p>
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">&lt;</span><a href="../interfaces/ICallRequestError.html" class="tsd-signature-type tsd-kind-interface">ICallRequestError</a><span class="tsd-signature-symbol"> | </span><a href="CallResult.html" class="tsd-signature-type tsd-kind-class">CallResult</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{}</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the contract function call</p>
196
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to call a contract function with a given calldata.</p>
197
+ <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>
198
+ </code><button>Copy</button></pre>
199
+ <h4>Throws</h4><p>If something went wrong while calling the contract</p>
200
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L370">src/providers/AbstractRpcProvider.ts:370</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="callMultiplePayloads" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>call<wbr/>Multiple<wbr/>Payloads</span><a href="#callMultiplePayloads" 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="callMultiplePayloads.callMultiplePayloads-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">call<wbr/>Multiple<wbr/>Payloads</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">payloads</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span><a href="#callMultiplePayloads.callMultiplePayloads-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Send multiple payloads. This method is used to send multiple payloads.</p>
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">payloads</span>: <a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The payloads to send</p>
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">&lt;</span><a href="../types/JsonRpcCallResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcCallResult</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the payloads</p>
203
+ <div class="tsd-comment tsd-typography"></div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#callMultiplePayloads">callMultiplePayloads</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L564">src/providers/AbstractRpcProvider.ts:564</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-private tsd-is-inherited"><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 tsd-is-inherited"><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><a href="../types/JsonRpcResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcResult</a><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>
204
+ </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>: <a href="../types/JsonRpcPayload.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcPayload</a></span><div class="tsd-comment tsd-typography"><p>The payload to send</p>
205
+ </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="../types/JsonRpcResult.html" class="tsd-signature-type tsd-kind-type-alias">JsonRpcResult</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the payload</p>
206
+ <div class="tsd-comment tsd-typography"><h4>Throws</h4><p>If no data is returned</p>
207
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#callPayloadSingle">callPayloadSingle</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L545">src/providers/AbstractRpcProvider.ts:545</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-kind-parameter">filterOrdinals</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">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>
208
+ </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>
209
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><span class="tsd-kind-parameter">filterOrdinals</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 filter ordinals or not</p>
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><span class="tsd-signature-type">bigint</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The balance of the address</p>
211
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the balance of a bitcoin address.</p>
212
+ <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>
213
+ </code><button>Copy</button></pre>
214
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBalance">getBalance</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L152">src/providers/AbstractRpcProvider.ts:152</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlock" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block</span><a href="#getBlock" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlock.getBlock-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumberOrHash</span>, <span class="tsd-kind-parameter">prefetchTxs</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlock.getBlock-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get block by number or hash.</p>
215
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">blockNumberOrHash</span>: <a href="../types/BlockTag.html" class="tsd-signature-type tsd-kind-type-alias">BlockTag</a></span><div class="tsd-comment tsd-typography"><p>The block number or hash</p>
216
+ </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>
217
+ </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>
218
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a block by its number or hash.</p>
219
+ <h4>Throws</h4><p>If the block is not found</p>
220
+ <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-9">123456</span><span class="hl-1">);</span>
221
+ </code><button>Copy</button></pre>
222
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L76">src/providers/AbstractRpcProvider.ts:76</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockByHash" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span><a href="#getBlockByHash" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockByHash.getBlockByHash-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>By<wbr/>Hash</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="Block.html" class="tsd-signature-type tsd-kind-class">Block</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockByHash.getBlockByHash-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get block by hash. This is the same method as getBlock.</p>
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">blockHash</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The block hash</p>
224
+ </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>
225
+ <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>
226
+ <h4>Throws</h4><p>If the block is not found</p>
227
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L140">src/providers/AbstractRpcProvider.ts:140</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockNumber" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Number</span><a href="#getBlockNumber" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockNumber.getBlockNumber-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Number</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">bigint</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>
228
+ </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 latest block number</p>
229
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the latest block number.</p>
230
+ <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>
231
+ </code><button>Copy</button></pre>
232
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L55">src/providers/AbstractRpcProvider.ts:55</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlockWitness" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Block<wbr/>Witness</span><a href="#getBlockWitness" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getBlockWitness.getBlockWitness-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Block<wbr/>Witness</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">trusted</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">limit</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">page</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../types/BlockWitnesses.html" class="tsd-signature-type tsd-kind-type-alias">BlockWitnesses</a><span class="tsd-signature-symbol">&gt;</span><a href="#getBlockWitness.getBlockWitness-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get block witnesses.</p>
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">height</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a><span class="tsd-signature-symbol"> = -1</span></span><div class="tsd-comment tsd-typography"><p>The block number or hash, use -1 for latest block</p>
234
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">trusted</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether to trust the witnesses or not</p>
235
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">limit</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The maximum number of witnesses to return</p>
236
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">page</span>: <span class="tsd-signature-type">number</span></span><div class="tsd-comment tsd-typography"><p>The page number of the witnesses</p>
237
+ </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="../types/BlockWitnesses.html" class="tsd-signature-type tsd-kind-type-alias">BlockWitnesses</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The witnesses of the block</p>
238
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the witnesses of a block. This proves that the action executed inside a block are valid and confirmed by the network. If the minimum number of witnesses are not met, the block is considered as potentially invalid.</p>
239
+ <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getBlockWitness</span><span class="hl-1">(</span><span class="hl-9">123456</span><span class="hl-5">n</span><span class="hl-1">);</span>
240
+ </code><button>Copy</button></pre>
241
+ <h4>Throws</h4><p>If something went wrong while fetching the witnesses</p>
242
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlockWitness">getBlockWitness</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L447">src/providers/AbstractRpcProvider.ts:447</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getBlocks" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Blocks</span><a href="#getBlocks" 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="getBlocks.getBlocks-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Blocks</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">blockNumbers</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">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getBlocks.getBlocks-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 multiple blocks by number or hash.</p>
243
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">blockNumbers</span>: <a href="../types/BlockTag.html" class="tsd-signature-type tsd-kind-type-alias">BlockTag</a><span class="tsd-signature-symbol">[]</span></span><div class="tsd-comment tsd-typography"><p>The block numbers or hashes</p>
244
+ </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>
245
+ </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">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested blocks</p>
246
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get multiple blocks by their numbers or hashes.</p>
247
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getBlocks">getBlocks</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L103">src/providers/AbstractRpcProvider.ts:103</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getChainId" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Chain<wbr/>Id</span><a href="#getChainId" 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="getChainId.getChainId-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Chain<wbr/>Id</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">bigint</span><span class="tsd-signature-symbol">&gt;</span><a href="#getChainId.getChainId-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 chain id.</p>
248
+ </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 chain id</p>
249
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the chain id.</p>
250
+ <h4>Throws</h4><p>If something went wrong while fetching the chain id</p>
251
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getChainId">getChainId</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L270">src/providers/AbstractRpcProvider.ts:270</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getCode" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Code</span><a href="#getCode" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getCode.getCode-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Code</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">onlyBytecode</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Buffer</span><span class="tsd-signature-symbol"> | </span><a href="ContractData.html" class="tsd-signature-type tsd-kind-class">ContractData</a><span class="tsd-signature-symbol">&gt;</span><a href="#getCode.getCode-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the contract code of an address.</p>
252
+ </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>
253
+ </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>
254
+ </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>
255
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the contract code of an address.</p>
256
+ <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>
257
+ </code><button>Copy</button></pre>
258
+ <h4>Throws</h4><p>If something went wrong while fetching the contract code</p>
259
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L294">src/providers/AbstractRpcProvider.ts:294</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getNetwork" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Network</span><a href="#getNetwork" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getNetwork.getNetwork-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Network</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">Network</span><span class="tsd-signature-symbol">&gt;</span><a href="#getNetwork.getNetwork-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the current connected network type.</p>
260
+ </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>
261
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the current connected network type.</p>
262
+ <h4>Throws</h4><p>If the chain id is invalid</p>
263
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L245">src/providers/AbstractRpcProvider.ts:245</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getReorg" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Reorg</span><a href="#getReorg" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getReorg.getReorg-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Reorg</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">fromBlock</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">toBlock</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span><a href="#getReorg.getReorg-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get reorgs that happened between two blocks.</p>
264
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">fromBlock</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The block number to start from</p>
265
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">toBlock</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The block number to end at</p>
266
+ </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/ReorgInformation.html" class="tsd-signature-type tsd-kind-interface">ReorgInformation</a><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The reorg information</p>
267
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the reorgs that happened between two blocks.</p>
268
+ <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">getReorg</span><span class="hl-1">(</span><span class="hl-9">123456</span><span class="hl-5">n</span><span class="hl-1">, </span><span class="hl-9">123457</span><span class="hl-5">n</span><span class="hl-1">);</span>
269
+ </code><button>Copy</button></pre>
270
+ <h4>Throws</h4><p>If something went wrong while fetching the reorg information</p>
271
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#getReorg">getReorg</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L483">src/providers/AbstractRpcProvider.ts:483</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getStorageAt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Storage<wbr/>At</span><a href="#getStorageAt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getStorageAt.getStorageAt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Storage<wbr/>At</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">rawPointer</span>, <span class="tsd-kind-parameter">proofs</span><span class="tsd-signature-symbol">?</span>, <span class="tsd-kind-parameter">height</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">&gt;</span><a href="#getStorageAt.getStorageAt-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the storage at a specific address and pointer.</p>
272
+ </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>
273
+ </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>
274
+ </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>
275
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">height</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The height to get the storage from</p>
276
+ </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="StoredValue.html" class="tsd-signature-type tsd-kind-class">StoredValue</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The storage value</p>
277
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the storage at a specific address and pointer.</p>
278
+ <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>
279
+ </code><button>Copy</button></pre>
280
+ <h4>Throws</h4><p>If something went wrong while fetching the storage</p>
281
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L333">src/providers/AbstractRpcProvider.ts:333</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction</span><a href="#getTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransaction.getTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="TransactionBase.html" class="tsd-signature-type tsd-kind-class">TransactionBase</a><span class="tsd-signature-symbol">&lt;</span><a href="../enums/OPNetTransactionTypes.html" class="tsd-signature-type tsd-kind-enum">OPNetTransactionTypes</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span><a href="#getTransaction.getTransaction-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a transaction by its hash or hash id.</p>
282
+ </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>
283
+ </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>
284
+ <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>
285
+ <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>
286
+ </code><button>Copy</button></pre>
287
+ <h4>Throws</h4><p>If something went wrong while fetching the transaction</p>
288
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L203">src/providers/AbstractRpcProvider.ts:203</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getTransactionReceipt" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>get<wbr/>Transaction<wbr/>Receipt</span><a href="#getTransactionReceipt" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getTransactionReceipt.getTransactionReceipt-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">get<wbr/>Transaction<wbr/>Receipt</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">txHash</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span><a href="#getTransactionReceipt.getTransactionReceipt-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get a transaction receipt by its hash.</p>
289
+ </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>
290
+ </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="TransactionReceipt.html" class="tsd-signature-type tsd-kind-class">TransactionReceipt</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The requested transaction receipt</p>
291
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get a transaction receipt by its hash.</p>
292
+ <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>
293
+ </code><button>Copy</button></pre>
294
+ <h4>Throws</h4><p>Something went wrong while fetching the transaction receipt</p>
295
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L229">src/providers/AbstractRpcProvider.ts:229</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="getUXTOs" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>getUXTOs</span><a href="#getUXTOs" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="getUXTOs.getUXTOs-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">getUXTOs</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">address</span>, <span class="tsd-kind-parameter">optimize</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">&gt;</span><a href="#getUXTOs.getUXTOs-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Get the UTXOs (Unspent Transaction Outputs) of an address.</p>
296
+ </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>
297
+ </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>
298
+ </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>
299
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to get the UTXOs of a bitcoin address.</p>
300
+ <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>
301
+ </code><button>Copy</button></pre>
302
+ <h4>Throws</h4><p>If something went wrong while fetching the UTXOs</p>
303
+ </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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L177">src/providers/AbstractRpcProvider.ts:177</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/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/JSONRpcProvider.ts#L68">src/providers/JSONRpcProvider.ts:68</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="requestTrustedPublicKeyForBitcoinWrapping" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span><a href="#requestTrustedPublicKeyForBitcoinWrapping" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">amount</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">WrappedGeneration</span><span class="tsd-signature-symbol">&gt;</span><a href="#requestTrustedPublicKeyForBitcoinWrapping.requestTrustedPublicKeyForBitcoinWrapping-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Generate parameters needed to wrap bitcoin.</p>
304
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">amount</span>: <a href="../types/BigNumberish.html" class="tsd-signature-type tsd-kind-type-alias">BigNumberish</a></span><div class="tsd-comment tsd-typography"><p>The amount to wrap</p>
305
+ </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">WrappedGeneration</span><span class="tsd-signature-symbol">&gt;</span></h4><p>The wrapped generation parameters</p>
306
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to generate the parameters needed to wrap bitcoin.</p>
307
+ <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">requestTrustedPublicKeyForBitcoinWrapping</span><span class="hl-1">(</span><span class="hl-9">100000000</span><span class="hl-5">n</span><span class="hl-1">);</span>
308
+ </code><button>Copy</button></pre>
309
+ <h4>Throws</h4><p>If something went wrong while generating the parameters</p>
310
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#requestTrustedPublicKeyForBitcoinWrapping">requestTrustedPublicKeyForBitcoinWrapping</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L516">src/providers/AbstractRpcProvider.ts:516</a></li></ul></aside></li></ul></section><section class="tsd-panel tsd-member tsd-is-inherited"><a id="sendRawTransaction" class="tsd-anchor"></a><h3 class="tsd-anchor-link"><span>send<wbr/>Raw<wbr/>Transaction</span><a href="#sendRawTransaction" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></h3><ul class="tsd-signatures tsd-is-inherited"><li class="tsd-signature tsd-anchor-link"><a id="sendRawTransaction.sendRawTransaction-1" class="tsd-anchor"></a><span class="tsd-kind-call-signature">send<wbr/>Raw<wbr/>Transaction</span><span class="tsd-signature-symbol">(</span><span class="tsd-kind-parameter">tx</span>, <span class="tsd-kind-parameter">psbt</span><span class="tsd-signature-symbol">?</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span><a href="#sendRawTransaction.sendRawTransaction-1" aria-label="Permalink" class="tsd-anchor-icon"><svg viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-anchor"></use></svg></a></li><li class="tsd-description"><div class="tsd-comment tsd-typography"><p>Send a raw transaction.</p>
311
+ </div><div class="tsd-parameters"><h4 class="tsd-parameters-title">Parameters</h4><ul class="tsd-parameter-list"><li><span><span class="tsd-kind-parameter">tx</span>: <span class="tsd-signature-type">string</span></span><div class="tsd-comment tsd-typography"><p>The raw transaction to send as hex string</p>
312
+ </div><div class="tsd-comment tsd-typography"></div></li><li><span><code class="tsd-tag ts-flagOptional">Optional</code> <span class="tsd-kind-parameter">psbt</span>: <span class="tsd-signature-type">boolean</span></span><div class="tsd-comment tsd-typography"><p>Whether the transaction is a PSBT or not</p>
313
+ </div><div class="tsd-comment tsd-typography"></div></li></ul></div><h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="../interfaces/BroadcastedTransaction.html" class="tsd-signature-type tsd-kind-interface">BroadcastedTransaction</a><span class="tsd-signature-symbol">&gt;</span></h4><p>The result of the transaction</p>
314
+ <div class="tsd-comment tsd-typography"><h4>Description</h4><p>This method is used to send a raw transaction.</p>
315
+ <h4>Example</h4><pre><code class="language-ts"><span class="hl-3">await</span><span class="hl-1"> </span><span class="hl-0">sendRawTransaction</span><span class="hl-1">(</span><span class="hl-2">&#39;02000000000101ad897689f66c98daae5fdc3606235c1ad7a17b9e0a6aaa0ea9e58ecc1198ad2a0100000000ffffffff01a154c39400000000160014482038efcc91af945f0c756d07a46401920380520247304402201c1f8718dec637ddb41b42abc44dcbf35a94c6be6a9de8c1db48c9fa6e456b7e022032a4b3286808372a7ac2c5094d6341b4d61b17663f4ccd1c1d92efa85c7dada80121020373626d317ae8788ce3280b491068610d840c23ecb64c14075bbb9f670af52c00000000&#39;</span><span class="hl-1">, </span><span class="hl-5">false</span><span class="hl-1">);</span>
316
+ </code><button>Copy</button></pre>
317
+ <h4>Throws</h4><p>If something went wrong while sending the transaction</p>
318
+ </div><aside class="tsd-sources"><p>Inherited from <a href="AbstractRpcProvider.html">AbstractRpcProvider</a>.<a href="AbstractRpcProvider.html#sendRawTransaction">sendRawTransaction</a></p><ul><li>Defined in <a href="https://github.com/btc-vision/opnet/blob/d5f37887e6b0d0909bd35513d9ddff63008b093a/src/providers/AbstractRpcProvider.ts#L413">src/providers/AbstractRpcProvider.ts:413</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="#timeout" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>timeout</span></a><a href="#url" class="tsd-is-private"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1024"></use></svg><span>url</span></a><a href="#_send" class=""><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>_send</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="#callMultiplePayloads" 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<wbr/>Multiple<wbr/>Payloads</span></a><a href="#callPayloadSingle" class="tsd-is-private tsd-is-inherited"><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="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Balance</span></a><a href="#getBlock" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block</span></a><a href="#getBlockByHash" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>By<wbr/>Hash</span></a><a href="#getBlockNumber" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Number</span></a><a href="#getBlockWitness" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Block<wbr/>Witness</span></a><a href="#getBlocks" 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/>Blocks</span></a><a href="#getChainId" 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/>Chain<wbr/>Id</span></a><a href="#getCode" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Code</span></a><a href="#getNetwork" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Network</span></a><a href="#getReorg" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Reorg</span></a><a href="#getStorageAt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Storage<wbr/>At</span></a><a href="#getTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction</span></a><a href="#getTransactionReceipt" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>get<wbr/>Transaction<wbr/>Receipt</span></a><a href="#getUXTOs" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>getUXTOs</span></a><a href="#providerUrl" class="tsd-is-protected"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>provider<wbr/>Url</span></a><a href="#requestTrustedPublicKeyForBitcoinWrapping" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>request<wbr/>Trusted<wbr/>Public<wbr/>Key<wbr/>For<wbr/>Bitcoin<wbr/>Wrapping</span></a><a href="#sendRawTransaction" class="tsd-is-inherited"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-2048"></use></svg><span>send<wbr/>Raw<wbr/>Transaction</span></a></div></details></div><div class="site-menu"><nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="../assets/icons.svg#icon-1"></use></svg><span>OPNet</span></a><ul class="tsd-small-nested-navigation" id="tsd-nav-container" data-base=".."><li>Loading...</li></ul></nav></div></div></div><footer><p class="tsd-generator">Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></footer><div class="overlay"></div><script>
319
+ try {
320
+ const generateLinkElement = document.querySelector(".tsd-generator a");
321
+ const link = document.createElement("a");
322
+ Object.assign(link, {
323
+ href: "https://github.com/dmnsgn/typedoc-material-theme",
324
+ target: "_blank",
325
+ rel: "noreferrer",
326
+ innerText: "typedoc-material-theme."
327
+ });
328
+ generateLinkElement.insertAdjacentElement("afterend", link);
329
+ generateLinkElement.insertAdjacentText("afterend", " with ");
330
+ } catch (error) {
331
+
332
+ }
333
333
  </script></body></html>