signet.js 0.0.6 → 0.0.7

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 (182) hide show
  1. package/.eslintrc.json +67 -0
  2. package/.prettierrc +1 -0
  3. package/babel.config.js +6 -0
  4. package/docs/dist/.vocs/icons/arrow-diagonal.svg +3 -0
  5. package/docs/dist/.vocs/icons/chevron-down.svg +13 -0
  6. package/docs/dist/.vocs/icons/chevron-up.svg +13 -0
  7. package/docs/dist/.vocs/icons/link.svg +3 -0
  8. package/docs/dist/.vocs/search-index-7b499e25.json +1 -0
  9. package/docs/dist/assets/arbitrary-hash-Cd6eo8ZD.js +309 -0
  10. package/docs/dist/assets/broadcast-tx-CeTEE9yX.js +8 -0
  11. package/docs/dist/assets/btc-rpc-adapter-C-qSHpFV.js +226 -0
  12. package/docs/dist/assets/chain-adapter-interface-B9TpOgQv.js +1280 -0
  13. package/docs/dist/assets/chain-contract-interface-DEku3k45.js +392 -0
  14. package/docs/dist/assets/constructor-73n7bp3b.js +161 -0
  15. package/docs/dist/assets/constructor-Bg7nvLe0.js +14 -0
  16. package/docs/dist/assets/contract-addresses-BYlrAOs3.js +200 -0
  17. package/docs/dist/assets/derive-address-and-public-key-DExrKiGV.js +14 -0
  18. package/docs/dist/assets/finalize-message-signing-W435d71R.js +20 -0
  19. package/docs/dist/assets/finalize-transaction-signing-BIgJ2dnc.js +36 -0
  20. package/docs/dist/assets/finalize-transaction-signing-C--HJs8D.js +24 -0
  21. package/docs/dist/assets/finalize-transaction-signing-CjGmN7d9.js +24 -0
  22. package/docs/dist/assets/finalize-typed-data-signing-CEOp_GWt.js +21 -0
  23. package/docs/dist/assets/get-balance-DBC-i6KG.js +13 -0
  24. package/docs/dist/assets/get-current-signature-deposit-BXm9AzYy.js +6 -0
  25. package/docs/dist/assets/get-current-signature-deposit-nOw4j1MN.js +6 -0
  26. package/docs/dist/assets/get-derived-public-key-BXvfo2m2.js +14 -0
  27. package/docs/dist/assets/get-derived-public-key-DQ1pyiFS.js +14 -0
  28. package/docs/dist/assets/get-latest-key-version-DWlkMCre.js +6 -0
  29. package/docs/dist/assets/get-public-key-B4PFoVqu.js +6 -0
  30. package/docs/dist/assets/get-public-key-B9xkYkD_.js +6 -0
  31. package/docs/dist/assets/index-BFuwoY4w.js +601 -0
  32. package/docs/dist/assets/index-C62Mf-vy.js +426 -0
  33. package/docs/dist/assets/index-D8xhaiVb.js +121 -0
  34. package/docs/dist/assets/index-DTr0DlO0.js +36 -0
  35. package/docs/dist/assets/index-V9dXf-ik.js +457 -0
  36. package/docs/dist/assets/prepare-message-for-signing-DESTq-Hg.js +16 -0
  37. package/docs/dist/assets/prepare-transaction-for-signing-DIKTU0zj.js +33 -0
  38. package/docs/dist/assets/prepare-transaction-for-signing-DV_wkZ5g.js +21 -0
  39. package/docs/dist/assets/prepare-transaction-for-signing-LVDP0COu.js +33 -0
  40. package/docs/dist/assets/prepare-typed-data-for-signing-CWcmJvw0.js +192 -0
  41. package/docs/dist/assets/sign-CwtS5LnB.js +13 -0
  42. package/docs/dist/assets/sign-OQxf9yn7.js +15 -0
  43. package/docs/dist/assets/signet-quick-start-CQK52nVG.js +350 -0
  44. package/docs/dist/assets/sponsor-foreign-chain-gas-C9iWXM8Q.js +1 -0
  45. package/docs/dist/assets/style-CKGXuRqx.css +1 -0
  46. package/docs/dist/examples/arbitrary-hash/index.html +88 -0
  47. package/docs/dist/examples/sponsor-foreign-chain-gas/index.html +21 -0
  48. package/docs/dist/index.html +56 -0
  49. package/docs/dist/initializeTheme.iife.js +1 -0
  50. package/docs/dist/introduction/signet-quick-start/index.html +109 -0
  51. package/docs/dist/primitives/chain-adapter-interface/index.html +515 -0
  52. package/docs/dist/primitives/chain-contract-interface/index.html +306 -0
  53. package/docs/dist/primitives/contract-addresses/index.html +97 -0
  54. package/docs/dist/signet-logo.png +0 -0
  55. package/docs/dist/signetjs/chain-adapters/bitcoin/btc-rpc-adapter/index.html +148 -0
  56. package/docs/dist/signetjs/chain-adapters/bitcoin/finalize-transaction-signing/index.html +41 -0
  57. package/docs/dist/signetjs/chain-adapters/bitcoin/index.html +187 -0
  58. package/docs/dist/signetjs/chain-adapters/bitcoin/prepare-transaction-for-signing/index.html +34 -0
  59. package/docs/dist/signetjs/chain-adapters/broadcast-tx/index.html +28 -0
  60. package/docs/dist/signetjs/chain-adapters/cosmos/finalize-transaction-signing/index.html +41 -0
  61. package/docs/dist/signetjs/chain-adapters/cosmos/index.html +166 -0
  62. package/docs/dist/signetjs/chain-adapters/cosmos/prepare-transaction-for-signing/index.html +43 -0
  63. package/docs/dist/signetjs/chain-adapters/derive-address-and-public-key/index.html +31 -0
  64. package/docs/dist/signetjs/chain-adapters/evm/finalize-message-signing/index.html +38 -0
  65. package/docs/dist/signetjs/chain-adapters/evm/finalize-transaction-signing/index.html +41 -0
  66. package/docs/dist/signetjs/chain-adapters/evm/finalize-typed-data-signing/index.html +39 -0
  67. package/docs/dist/signetjs/chain-adapters/evm/index.html +129 -0
  68. package/docs/dist/signetjs/chain-adapters/evm/prepare-message-for-signing/index.html +31 -0
  69. package/docs/dist/signetjs/chain-adapters/evm/prepare-transaction-for-signing/index.html +34 -0
  70. package/docs/dist/signetjs/chain-adapters/evm/prepare-typed-data-for-signing/index.html +49 -0
  71. package/docs/dist/signetjs/chain-adapters/get-balance/index.html +30 -0
  72. package/docs/dist/signetjs/contracts/evm/constructor/index.html +45 -0
  73. package/docs/dist/signetjs/contracts/evm/get-current-signature-deposit/index.html +26 -0
  74. package/docs/dist/signetjs/contracts/evm/get-derived-public-key/index.html +31 -0
  75. package/docs/dist/signetjs/contracts/evm/get-latest-key-version/index.html +26 -0
  76. package/docs/dist/signetjs/contracts/evm/get-public-key/index.html +26 -0
  77. package/docs/dist/signetjs/contracts/evm/sign/index.html +32 -0
  78. package/docs/dist/signetjs/contracts/near/constructor/index.html +34 -0
  79. package/docs/dist/signetjs/contracts/near/get-current-signature-deposit/index.html +26 -0
  80. package/docs/dist/signetjs/contracts/near/get-derived-public-key/index.html +31 -0
  81. package/docs/dist/signetjs/contracts/near/get-public-key/index.html +26 -0
  82. package/docs/dist/signetjs/contracts/near/sign/index.html +32 -0
  83. package/docs/pages/examples/arbitrary-hash.mdx +73 -0
  84. package/docs/pages/examples/sponsor-foreign-chain-gas.mdx +1 -0
  85. package/docs/pages/index.mdx +36 -0
  86. package/docs/pages/introduction/signet-quick-start.mdx +88 -0
  87. package/docs/pages/primitives/chain-adapter-interface.mdx +45 -0
  88. package/docs/pages/primitives/chain-contract-interface.mdx +52 -0
  89. package/docs/pages/primitives/contract-addresses.mdx +27 -0
  90. package/docs/pages/signetjs/chain-adapters/bitcoin/btc-rpc-adapter.mdx +26 -0
  91. package/docs/pages/signetjs/chain-adapters/bitcoin/finalize-transaction-signing.mdx +47 -0
  92. package/docs/pages/signetjs/chain-adapters/bitcoin/index.mdx +119 -0
  93. package/docs/pages/signetjs/chain-adapters/bitcoin/prepare-transaction-for-signing.mdx +30 -0
  94. package/docs/pages/signetjs/chain-adapters/broadcast-tx.mdx +23 -0
  95. package/docs/pages/signetjs/chain-adapters/cosmos/finalize-transaction-signing.mdx +53 -0
  96. package/docs/pages/signetjs/chain-adapters/cosmos/index.mdx +108 -0
  97. package/docs/pages/signetjs/chain-adapters/cosmos/prepare-transaction-for-signing.mdx +39 -0
  98. package/docs/pages/signetjs/chain-adapters/derive-address-and-public-key.mdx +28 -0
  99. package/docs/pages/signetjs/chain-adapters/evm/finalize-message-signing.mdx +33 -0
  100. package/docs/pages/signetjs/chain-adapters/evm/finalize-transaction-signing.mdx +44 -0
  101. package/docs/pages/signetjs/chain-adapters/evm/finalize-typed-data-signing.mdx +34 -0
  102. package/docs/pages/signetjs/chain-adapters/evm/index.mdx +84 -0
  103. package/docs/pages/signetjs/chain-adapters/evm/prepare-message-for-signing.mdx +26 -0
  104. package/docs/pages/signetjs/chain-adapters/evm/prepare-transaction-for-signing.mdx +30 -0
  105. package/docs/pages/signetjs/chain-adapters/evm/prepare-typed-data-for-signing.mdx +44 -0
  106. package/docs/pages/signetjs/chain-adapters/get-balance.mdx +26 -0
  107. package/docs/pages/signetjs/contracts/evm/constructor.mdx +38 -0
  108. package/docs/pages/signetjs/contracts/evm/get-current-signature-deposit.mdx +17 -0
  109. package/docs/pages/signetjs/contracts/evm/get-derived-public-key.mdx +28 -0
  110. package/docs/pages/signetjs/contracts/evm/get-latest-key-version.mdx +17 -0
  111. package/docs/pages/signetjs/contracts/evm/get-public-key.mdx +17 -0
  112. package/docs/pages/signetjs/contracts/evm/sign.mdx +36 -0
  113. package/docs/pages/signetjs/contracts/near/constructor.mdx +29 -0
  114. package/docs/pages/signetjs/contracts/near/get-current-signature-deposit.mdx +17 -0
  115. package/docs/pages/signetjs/contracts/near/get-derived-public-key.mdx +28 -0
  116. package/docs/pages/signetjs/contracts/near/get-public-key.mdx +17 -0
  117. package/docs/pages/signetjs/contracts/near/sign.mdx +32 -0
  118. package/docs/public/signet-logo.png +0 -0
  119. package/docs/snippets/code/chains.ts +42 -0
  120. package/docs/snippets/code/contract.ts +44 -0
  121. package/docs/snippets/code/evm/contract.ts +24 -0
  122. package/docs/snippets/code/evm/env.ts +16 -0
  123. package/docs/snippets/code/near/env.ts +13 -0
  124. package/hardhat.config.mts +19 -0
  125. package/package.json +18 -19
  126. package/src/chain-adapters/Bitcoin/BTCRpcAdapter/BTCRpcAdapter.ts +15 -0
  127. package/src/chain-adapters/Bitcoin/BTCRpcAdapter/Mempool/Mempool.ts +101 -0
  128. package/src/chain-adapters/Bitcoin/BTCRpcAdapter/Mempool/index.ts +1 -0
  129. package/src/chain-adapters/Bitcoin/BTCRpcAdapter/Mempool/types.ts +72 -0
  130. package/src/chain-adapters/Bitcoin/BTCRpcAdapter/index.ts +6 -0
  131. package/src/chain-adapters/Bitcoin/Bitcoin.ts +287 -0
  132. package/src/chain-adapters/Bitcoin/index.ts +13 -0
  133. package/src/chain-adapters/Bitcoin/types.ts +48 -0
  134. package/src/chain-adapters/Bitcoin/utils.ts +14 -0
  135. package/src/chain-adapters/ChainAdapter.ts +92 -0
  136. package/src/chain-adapters/Cosmos/Cosmos.ts +258 -0
  137. package/src/chain-adapters/Cosmos/index.ts +8 -0
  138. package/src/chain-adapters/Cosmos/types.ts +35 -0
  139. package/src/chain-adapters/Cosmos/utils.ts +45 -0
  140. package/src/chain-adapters/EVM/EVM.test.ts +238 -0
  141. package/src/chain-adapters/EVM/EVM.ts +337 -0
  142. package/src/chain-adapters/EVM/index.ts +11 -0
  143. package/src/chain-adapters/EVM/types.ts +53 -0
  144. package/src/chain-adapters/EVM/utils.ts +27 -0
  145. package/src/chain-adapters/index.ts +5 -0
  146. package/src/constants.ts +62 -0
  147. package/src/contracts/ChainSignatureContract.ts +65 -0
  148. package/src/contracts/evm/ChainSignaturesContract.ts +323 -0
  149. package/src/contracts/evm/ChainSignaturesContractABI.ts +359 -0
  150. package/src/contracts/evm/errors.ts +52 -0
  151. package/src/contracts/evm/index.ts +10 -0
  152. package/src/contracts/evm/types.ts +39 -0
  153. package/src/contracts/evm/utils.ts +41 -0
  154. package/src/contracts/index.ts +4 -0
  155. package/src/contracts/near/ChainSignatureContract.ts +196 -0
  156. package/src/contracts/near/account.ts +42 -0
  157. package/src/contracts/near/constants.ts +4 -0
  158. package/src/contracts/near/index.ts +10 -0
  159. package/src/contracts/near/signAndSend/index.ts +1 -0
  160. package/src/contracts/near/signAndSend/keypair.ts +178 -0
  161. package/src/contracts/near/transaction.ts +202 -0
  162. package/src/contracts/near/types.ts +71 -0
  163. package/src/index.ts +5 -0
  164. package/src/types.ts +46 -0
  165. package/src/utils/cryptography.ts +141 -0
  166. package/src/utils/index.ts +1 -0
  167. package/src/utils/publicKey.ts +17 -0
  168. package/tsconfig.eslint.json +8 -0
  169. package/tsconfig.json +126 -0
  170. package/tsup.config.ts +58 -0
  171. package/vitest.config.ts +19 -0
  172. package/vocs.config.ts +213 -0
  173. package/browser/index.browser.cjs +0 -3
  174. package/browser/index.browser.cjs.map +0 -1
  175. package/browser/index.browser.js +0 -3
  176. package/browser/index.browser.js.map +0 -1
  177. package/node/index.node.cjs +0 -3
  178. package/node/index.node.cjs.map +0 -1
  179. package/node/index.node.js +0 -3
  180. package/node/index.node.js.map +0 -1
  181. package/types/index.d.cts +0 -1048
  182. package/types/index.d.ts +0 -1048
@@ -0,0 +1,161 @@
1
+ import{u as e,j as s}from"./index-D8xhaiVb.js";const a={title:"EVM Chain Signatures Contract",description:"undefined"};function r(i){const l={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...e(),...i.components};return s.jsxs(s.Fragment,{children:[s.jsx(l.header,{children:s.jsxs(l.h1,{id:"evm-chain-signatures-contract",children:["EVM Chain Signatures Contract",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#evm-chain-signatures-contract",children:s.jsx(l.div,{"data-autolink-icon":!0})})]})}),`
2
+ `,s.jsxs(l.p,{children:["The EVM Chain Signatures Contract provides an implementation of the abstract ",s.jsx(l.code,{children:"ChainSignatureContract"})," for EVM-compatible blockchains. It allows you to interact with the Chain Signatures contract deployed on EVM chains."]}),`
3
+ `,s.jsxs(l.h2,{id:"usage",children:["Usage",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",children:s.jsx(l.div,{"data-autolink-icon":!0})})]}),`
4
+ `,s.jsx(s.Fragment,{children:s.jsx(l.pre,{className:"shiki shiki-themes github-light github-dark-dimmed twoslash lsp",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(l.code,{children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" contracts"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"contracts"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" constants"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"constants"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsxs(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" '","signet",".","js","'"]})]}),`
5
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"function"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" createPublicClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"chain"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Chain"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"accountOrAddress"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Account"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Address"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"rpcSchema"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" RpcSchema"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"parameters"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PublicClientConfig"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"chain"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"accountOrAddress"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"rpcSchema"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">)"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" PublicClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"chain"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"ParseAccount"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"accountOrAddress"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">, "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"rpcSchema"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),s.jsxs(l.div,{className:"twoslash-popup-jsdoc",children:[s.jsxs(l.p,{children:["Creates a Public Client with a given ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/intro",children:"Transport"})," configured for a ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/chains",children:"Chain"}),"."]}),`
6
+ `,s.jsxs(l.p,{children:["Docs: ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/public",children:"https://viem.sh/docs/clients/public"})]}),`
7
+ `,s.jsxs(l.p,{children:['A Public Client is an interface to "public" ',s.jsx(l.a,{href:"https://ethereum.org/en/developers/docs/apis/json-rpc/",children:"JSON-RPC API"})," methods such as retrieving block numbers, transactions, reading from smart contracts, etc through ",s.jsx(l.a,{href:"/docs/actions/public/introduction",children:"Public Actions"}),"."]})]})]}),s.jsx(l.span,{className:"twoslash-target",children:"createPublicClient"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"function"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" createWalletClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"chain"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Chain"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"accountOrAddress"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Account"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Address"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"rpcSchema"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" RpcSchema"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"parameters"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" WalletClientConfig"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"chain"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"accountOrAddress"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"rpcSchema"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">)"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" WalletClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"chain"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"ParseAccount"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"accountOrAddress"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">, "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"rpcSchema"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]}),s.jsxs(l.div,{className:"twoslash-popup-jsdoc",children:[s.jsxs(l.p,{children:["Creates a Wallet Client with a given ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/intro",children:"Transport"})," configured for a ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/chains",children:"Chain"}),"."]}),`
8
+ `,s.jsxs(l.p,{children:["Docs: ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/wallet",children:"https://viem.sh/docs/clients/wallet"})]}),`
9
+ `,s.jsxs(l.p,{children:["A Wallet Client is an interface to interact with ",s.jsx(l.a,{href:"https://ethereum.org/en/glossary/#account",children:"Ethereum Account(s)"})," and provides the ability to retrieve accounts, execute transactions, sign messages, etc. through ",s.jsx(l.a,{href:"https://viem.sh/docs/actions/wallet/introduction",children:"Wallet Actions"}),"."]}),`
10
+ `,s.jsxs(l.p,{children:[`The Wallet Client supports signing over:
11
+ `,s.jsx(l.a,{href:"https://viem.sh/docs/clients/wallet#json-rpc-accounts",children:"JSON-RPC Accounts"}),` (e.g. Browser Extension Wallets, WalletConnect, etc).
12
+ `,s.jsx(l.a,{href:"https://viem.sh/docs/clients/wallet#local-accounts-private-key-mnemonic-etc",children:"Local Accounts"})," (e.g. private key/mnemonic wallets)."]})]})]}),s.jsx(l.span,{className:"twoslash-target",children:"createWalletClient"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"function"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" http"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"url"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"config"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HttpTransportConfig"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:")"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HttpTransport"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"http"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsxs(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" '","viem","'"]})]}),`
13
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" sepolia"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
14
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" blockExplorers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
15
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" default"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
16
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" name"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
17
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" url"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
18
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" apiUrl"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
19
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
20
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
21
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),`
22
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...> "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
23
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"sepolia"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsxs(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" '","viem","/","chains","'"]})]}),`
24
+ `,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),`
25
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" publicClient"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
26
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" account"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
27
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" batch"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
28
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" multicall"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" boolean"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Prettify"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"MulticallBatchOptions"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"> "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
29
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
30
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 62"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),`
31
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" extend"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" <"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
32
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
33
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"&"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ExactPartial"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>>("}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"fn"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>;"})]}),`
34
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"publicClient"})]})}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"createPublicClient"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"HttpTransport, {"})]}),`
35
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" blockExplorers: {"})}),`
36
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly default: {"})}),`
37
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly name: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
38
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly url: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
39
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly apiUrl: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
40
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
41
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
42
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" more "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
43
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<...>"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
44
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}, "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:">"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"parameters"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
45
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
46
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"})"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
47
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
48
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})}),s.jsxs(l.div,{className:"twoslash-popup-jsdoc",children:[s.jsxs(l.p,{children:["Creates a Public Client with a given ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/intro",children:"Transport"})," configured for a ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/chains",children:"Chain"}),"."]}),`
49
+ `,s.jsxs(l.p,{children:["Docs: ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/public",children:"https://viem.sh/docs/clients/public"})]}),`
50
+ `,s.jsxs(l.p,{children:['A Public Client is an interface to "public" ',s.jsx(l.a,{href:"https://ethereum.org/en/developers/docs/apis/json-rpc/",children:"JSON-RPC API"})," methods such as retrieving block numbers, transactions, reading from smart contracts, etc through ",s.jsx(l.a,{href:"/docs/actions/public/introduction",children:"Public Actions"}),"."]})]})]}),s.jsx(l.span,{className:"twoslash-target",children:"createPublicClient"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
51
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"chain"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" Chain "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
52
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" blockExplorers"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
53
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"default"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
54
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly name: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
55
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly url: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
56
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly apiUrl: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
57
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
58
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
59
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" more "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
60
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<...>"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
61
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"} "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]}),s.jsx(l.div,{className:"twoslash-popup-jsdoc",children:s.jsx(l.p,{children:"Chain for the client."})})]}),s.jsx(l.span,{className:"twoslash-target",children:"chain"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" sepolia"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
62
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" blockExplorers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
63
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" default"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
64
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" name"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
65
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" url"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
66
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" apiUrl"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
67
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
68
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
69
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),`
70
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...> "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
71
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"sepolia"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
72
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": HttpTransport"})]}),s.jsx(l.div,{className:"twoslash-popup-jsdoc",children:s.jsx(l.p,{children:"The RPC transport"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"transport"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"function"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" http"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"url"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"config"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HttpTransportConfig"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:")"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HttpTransport"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"http"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(),"})]}),`
73
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"})"})}),`
74
+ `,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),`
75
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" walletClient"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
76
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" account"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
77
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" batch"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
78
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" multicall"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" boolean"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Prettify"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"MulticallBatchOptions"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"> "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
79
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
80
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 26"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),`
81
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" extend"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" <"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
82
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
83
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"&"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ExactPartial"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>>("}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"fn"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>;"})]}),`
84
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"walletClient"})]})}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"createWalletClient"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"HttpTransport, {"})]}),`
85
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" blockExplorers: {"})}),`
86
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly default: {"})}),`
87
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly name: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
88
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly url: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
89
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly apiUrl: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
90
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
91
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
92
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" more "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
93
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<...>"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
94
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}, "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"undefined"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:">"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"parameters"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
95
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
96
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"})"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
97
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
98
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})}),s.jsxs(l.div,{className:"twoslash-popup-jsdoc",children:[s.jsxs(l.p,{children:["Creates a Wallet Client with a given ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/intro",children:"Transport"})," configured for a ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/chains",children:"Chain"}),"."]}),`
99
+ `,s.jsxs(l.p,{children:["Docs: ",s.jsx(l.a,{href:"https://viem.sh/docs/clients/wallet",children:"https://viem.sh/docs/clients/wallet"})]}),`
100
+ `,s.jsxs(l.p,{children:["A Wallet Client is an interface to interact with ",s.jsx(l.a,{href:"https://ethereum.org/en/glossary/#account",children:"Ethereum Account(s)"})," and provides the ability to retrieve accounts, execute transactions, sign messages, etc. through ",s.jsx(l.a,{href:"https://viem.sh/docs/actions/wallet/introduction",children:"Wallet Actions"}),"."]}),`
101
+ `,s.jsxs(l.p,{children:[`The Wallet Client supports signing over:
102
+ `,s.jsx(l.a,{href:"https://viem.sh/docs/clients/wallet#json-rpc-accounts",children:"JSON-RPC Accounts"}),` (e.g. Browser Extension Wallets, WalletConnect, etc).
103
+ `,s.jsx(l.a,{href:"https://viem.sh/docs/clients/wallet#local-accounts-private-key-mnemonic-etc",children:"Local Accounts"})," (e.g. private key/mnemonic wallets)."]})]})]}),s.jsx(l.span,{className:"twoslash-target",children:"createWalletClient"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
104
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"chain"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" Chain "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
105
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" blockExplorers"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
106
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"default"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
107
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly name: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
108
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly url: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
109
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" readonly apiUrl: "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
110
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
111
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
112
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" more "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
113
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<...>"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
114
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"} "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]}),s.jsx(l.div,{className:"twoslash-popup-jsdoc",children:s.jsx(l.p,{children:"Chain for the client."})})]}),s.jsx(l.span,{className:"twoslash-target",children:"chain"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" sepolia"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
115
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" blockExplorers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
116
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" default"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
117
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" name"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "Etherscan"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
118
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" url"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "https://sepolia.etherscan.io"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
119
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" readonly"}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" apiUrl"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "https://api-sepolia.etherscan.io/api"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
120
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
121
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" };"})}),`
122
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 10"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" more"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ...;"})]}),`
123
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:" serializers"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ChainSerializers"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...> "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
124
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"sepolia"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
125
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"transport"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": HttpTransport"})]}),s.jsx(l.div,{className:"twoslash-popup-jsdoc",children:s.jsx(l.p,{children:"The RPC transport"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"transport"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"function"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:" http"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"url"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" string"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"config"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HttpTransportConfig"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:")"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" HttpTransport"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"http"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(),"})]}),`
126
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"})"})}),`
127
+ `,s.jsx(l.span,{className:"line","data-empty-line":!0,children:" "}),`
128
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" contract"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" contracts"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"evm"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"ChainSignatureContract"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"contract"})]})}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsxs(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","new"]}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" contracts"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"contracts"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" evm"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"evm"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"constructor "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"ChainSignatureContract"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(args: {"})]}),`
129
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" publicClient: PublicClient;"})}),`
130
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" walletClient: WalletClient;"})}),`
131
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" contractAddress: Hex;"})}),`
132
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" rootPublicKey"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" NajPublicKey;"})]}),`
133
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}): contracts.evm.ChainSignatureContract"})}),s.jsx(l.div,{className:"twoslash-popup-jsdoc",children:s.jsx(l.p,{children:"Creates a new instance of the ChainSignatureContract for EVM chains."})})]}),s.jsx(l.span,{className:"twoslash-target",children:"ChainSignatureContract"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
134
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"publicClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
135
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" account"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
136
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" batch"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
137
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" multicall?: boolean "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" Prettify"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"MulticallBatchOptions"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:">"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
138
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
139
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 62"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" more "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
140
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" extend"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": <"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"const"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
141
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
142
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"&"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ExactPartial"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>>("}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"fn"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>;"})]}),`
143
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"publicClient"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
144
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"walletClient"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": {"})]}),`
145
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" account"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": Account "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
146
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" batch"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
147
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" multicall?: boolean "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" Prettify"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"<"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"MulticallBatchOptions"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:">"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
148
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
149
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" 26"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" more "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
150
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" extend"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": <"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"const"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" extends"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" {"})]}),`
151
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ..."}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:";"})]}),`
152
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"&"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ExactPartial"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>>("}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"fn"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ("}),s.jsx(l.span,{style:{color:"#E36209","--shiki-dark":"#F69D50"},children:"client"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>) "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:") "}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"=>"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Client"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<...>;"})]}),`
153
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"}"})})]}),s.jsx(l.span,{className:"twoslash-target",children:"walletClient"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
154
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"contractAddress"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"`0x${"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"string"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"contractAddress"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" constants"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"constants"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsxs(l.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" CONTRACT_ADDRESSES"}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" Record"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"ETHEREUM"'}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "NEAR"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"Record"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"<"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"TESTNET_DEV"'}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "TESTNET"'}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "MAINNET"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"string"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">>"})]}),s.jsxs(l.div,{className:"twoslash-popup-jsdoc",children:[s.jsx(l.p,{children:"Contract addresses for different chains and environments."}),`
155
+ `,s.jsx(l.p,{children:`Testnet Dev: Used for internal development, very unstable
156
+ Testnet: Used for external development, stable
157
+ Mainnet: Production contract address`})]})]}),s.jsx(l.span,{className:"twoslash-target",children:"CONTRACT_ADDRESSES"})]})}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" ETHEREUM"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": Record<"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:'"TESTNET_DEV"'}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "TESTNET"'}),s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" |"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:' "MAINNET"'}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:", "}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"string"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:">"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"ETHEREUM"})]})})]}),`
158
+ `,s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" ."}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(l.span,{className:"twoslash-hover",children:[s.jsx(l.div,{className:"twoslash-popup-info-hover",children:s.jsxs(l.span,{className:"line",children:[s.jsx(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"type"}),s.jsx(l.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" TESTNET_DEV"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": string"})]})}),s.jsx(l.span,{className:"twoslash-target",children:"TESTNET_DEV"})]})}),s.jsxs(l.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","as"]}),s.jsxs(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" `","0x","${"]}),s.jsx(l.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:"string"}),s.jsx(l.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:"}`"}),s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
159
+ `,s.jsx(l.span,{className:"line",children:s.jsx(l.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"})"})})]})})}),`
160
+ `,s.jsxs(l.h2,{id:"parameters",children:["Parameters",s.jsx(l.a,{"aria-hidden":"true",tabIndex:"-1",href:"#parameters",children:s.jsx(l.div,{"data-autolink-icon":!0})})]}),`
161
+ `,s.jsxs(l.table,{children:[s.jsx(l.thead,{children:s.jsxs(l.tr,{children:[s.jsx(l.th,{children:"Parameter"}),s.jsx(l.th,{children:"Type"}),s.jsx(l.th,{children:"Description"})]})}),s.jsxs(l.tbody,{children:[s.jsxs(l.tr,{children:[s.jsx(l.td,{children:s.jsx(l.code,{children:"args"})}),s.jsx(l.td,{children:s.jsx(l.code,{children:"object"})}),s.jsx(l.td,{children:"Configuration options for the contract"})]}),s.jsxs(l.tr,{children:[s.jsx(l.td,{children:s.jsx(l.code,{children:"args.publicClient"})}),s.jsx(l.td,{children:s.jsx(l.code,{children:"PublicClient"})}),s.jsx(l.td,{children:"A Viem PublicClient instance for reading from the blockchain"})]}),s.jsxs(l.tr,{children:[s.jsx(l.td,{children:s.jsx(l.code,{children:"args.walletClient"})}),s.jsx(l.td,{children:s.jsx(l.code,{children:"WalletClient"})}),s.jsx(l.td,{children:"A Viem WalletClient instance for sending transactions"})]}),s.jsxs(l.tr,{children:[s.jsx(l.td,{children:s.jsx(l.code,{children:"args.contractAddress"})}),s.jsx(l.td,{children:s.jsx(l.code,{children:"Hex"})}),s.jsx(l.td,{children:"The address of the deployed ChainSignatures contract"})]}),s.jsxs(l.tr,{children:[s.jsx(l.td,{children:s.jsx(l.code,{children:"args.rootPublicKey?"})}),s.jsx(l.td,{children:s.jsx(l.code,{children:"NajPublicKey"})}),s.jsx(l.td,{children:"Optional root public key. If not provided, it will be derived from the contract"})]})]})]})]})}function c(i={}){const{wrapper:l}={...e(),...i.components};return l?s.jsx(l,{...i,children:s.jsx(r,{...i})}):r(i)}export{c as default,a as frontmatter};
@@ -0,0 +1,14 @@
1
+ import{u as n,j as s}from"./index-D8xhaiVb.js";const l={title:"Constructor",description:"undefined"};function a(e){const r={a:"a",code:"code",div:"div",h1:"h1",h2:"h2",header:"header",p:"p",pre:"pre",span:"span",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...n(),...e.components};return s.jsxs(s.Fragment,{children:[s.jsx(r.header,{children:s.jsxs(r.h1,{id:"constructor",children:["Constructor",s.jsx(r.a,{"aria-hidden":"true",tabIndex:"-1",href:"#constructor",children:s.jsx(r.div,{"data-autolink-icon":!0})})]})}),`
2
+ `,s.jsx(r.p,{children:"Creates a new instance of the NEAR Chain Signature Contract."}),`
3
+ `,s.jsxs(r.h2,{id:"usage",children:["Usage",s.jsx(r.a,{"aria-hidden":"true",tabIndex:"-1",href:"#usage",children:s.jsx(r.div,{"data-autolink-icon":!0})})]}),`
4
+ `,s.jsx(s.Fragment,{children:s.jsx(r.pre,{className:"shiki shiki-themes github-light github-dark-dimmed twoslash lsp",style:{backgroundColor:"#fff","--shiki-dark-bg":"#22272e",color:"#24292e","--shiki-dark":"#adbac7"},tabIndex:"0",children:s.jsxs(r.code,{children:[s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" contracts"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"contracts"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsxs(r.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" '","signet",".","js","'"]})]}),`
5
+ `,s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" { "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"class"}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" KeyPair"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"KeyPair"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" } "}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"from"}),s.jsxs(r.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:[" '@","near","-","js","/","crypto","'"]})]}),`
6
+ `,s.jsx(r.span,{className:"line","data-empty-line":!0,children:" "}),`
7
+ `,s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(r.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" "}),s.jsx(r.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"const"}),s.jsx(r.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" contract"}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:":"}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" contracts"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"near"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:"ChainSignatureContract"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"contract"})]})}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:" ="}),s.jsxs(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:[" ","new"]}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" contracts"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"contracts"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"import"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" near"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"near"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsxs(r.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"constructor "}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"ChainSignatureContract"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({ networkId, contractId, accountId, keypair, rootPublicKey, sendTransactionOptions, }: ChainSignatureContractArgs): contracts.near.ChainSignatureContract"})]}),s.jsx(r.div,{className:"twoslash-popup-jsdoc",children:s.jsx(r.p,{children:"Creates a new instance of the ChainSignatureContract for NEAR chains."})})]}),s.jsx(r.span,{className:"twoslash-target",children:"ChainSignatureContract"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"({"})]}),`
8
+ `,s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsx(r.span,{className:"line",children:s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"ChainSignatureContractArgs.networkId: NearNetworkIds"})})}),s.jsx(r.span,{className:"twoslash-target",children:"networkId"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(r.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","testnet","'"]}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
9
+ `,s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsx(r.span,{className:"line",children:s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"ChainSignatureContractArgs.contractId: string"})})}),s.jsx(r.span,{className:"twoslash-target",children:"contractId"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(r.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","chainsig",".","testnet","'"]}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
10
+ `,s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"ChainSignatureContractArgs.accountId"}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" string "}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(r.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"accountId"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsxs(r.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","your","-","account",".","testnet","'"]}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:","})]}),`
11
+ `,s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"ChainSignatureContractArgs.keypair"}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"?:"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:" KeyPair "}),s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"|"}),s.jsx(r.span,{style:{color:"#005CC5","--shiki-dark":"#6CB6FF"},children:" undefined"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"keypair"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:": "}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsx(r.div,{className:"twoslash-popup-info-hover",children:s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#D73A49","--shiki-dark":"#F47067"},children:"class"}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#F69D50"},children:" KeyPair"})]})}),s.jsx(r.span,{className:"twoslash-target",children:"KeyPair"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"."}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:s.jsxs(r.span,{className:"twoslash-hover",children:[s.jsxs(r.div,{className:"twoslash-popup-info-hover",children:[s.jsxs(r.span,{className:"line",children:[s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"KeyPair."}),s.jsx(r.span,{style:{color:"#6F42C1","--shiki-dark":"#DCBDFB"},children:"fromString"}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"(encodedKey: KeyPairString): KeyPair"})]}),s.jsx(r.div,{className:"twoslash-popup-jsdoc",children:s.jsx(r.p,{children:"Creates a key pair from an encoded key string."})})]}),s.jsx(r.span,{className:"twoslash-target",children:"fromString"})]})}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"("}),s.jsxs(r.span,{style:{color:"#032F62","--shiki-dark":"#96D0FF"},children:["'","ed25519",":","your","-","private","-","key","'"]}),s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"),"})]}),`
12
+ `,s.jsx(r.span,{className:"line",children:s.jsx(r.span,{style:{color:"#24292E","--shiki-dark":"#ADBAC7"},children:"})"})})]})})}),`
13
+ `,s.jsxs(r.h2,{id:"parameters",children:["Parameters",s.jsx(r.a,{"aria-hidden":"true",tabIndex:"-1",href:"#parameters",children:s.jsx(r.div,{"data-autolink-icon":!0})})]}),`
14
+ `,s.jsxs(r.table,{children:[s.jsx(r.thead,{children:s.jsxs(r.tr,{children:[s.jsx(r.th,{children:"Parameter"}),s.jsx(r.th,{children:"Type"}),s.jsx(r.th,{children:"Description"})]})}),s.jsxs(r.tbody,{children:[s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"ChainSignatureContractArgs"})}),s.jsx(r.td,{children:"Configuration options for the contract"})]}),s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args.networkId"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"NearNetworkIds"})}),s.jsx(r.td,{children:"The NEAR network ID ('mainnet', 'testnet', etc.)"})]}),s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args.contractId"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"ChainSignatureContractIds"})}),s.jsx(r.td,{children:"The contract ID of the Chain Signatures contract"})]}),s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args.accountId?"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"string"})}),s.jsx(r.td,{children:"Optional account ID to use for transactions. Defaults to a placeholder account"})]}),s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args.keypair?"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"KeyPair"})}),s.jsx(r.td,{children:"Optional keypair to use for transactions. Defaults to a random keypair"})]}),s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args.rootPublicKey?"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"NajPublicKey"})}),s.jsx(r.td,{children:"Optional root public key. If not provided, it will be fetched from the contract"})]}),s.jsxs(r.tr,{children:[s.jsx(r.td,{children:s.jsx(r.code,{children:"args.sendTransactionOptions?"})}),s.jsx(r.td,{children:s.jsx(r.code,{children:"SendTransactionOptions"})}),s.jsx(r.td,{children:"Optional configuration for sending transactions"})]})]})]})]})}function c(e={}){const{wrapper:r}={...n(),...e.components};return r?s.jsx(r,{...e,children:s.jsx(a,{...e})}):a(e)}export{c as default,l as frontmatter};