viem 1.10.10 → 1.10.11

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 (933) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/_cjs/{abi.js → abi/index.js} +9 -9
  3. package/_cjs/abi/index.js.map +1 -0
  4. package/_cjs/chains/{utils.js → utils/index.js} +5 -5
  5. package/_cjs/chains/utils/index.js.map +1 -0
  6. package/_cjs/{contract.js → contract/index.js} +25 -25
  7. package/_cjs/contract/index.js.map +1 -0
  8. package/_cjs/{ens.js → ens/index.js} +9 -9
  9. package/_cjs/ens/index.js.map +1 -0
  10. package/_cjs/errors/node.js +11 -11
  11. package/_cjs/errors/node.js.map +1 -1
  12. package/_cjs/errors/rpc.js +18 -18
  13. package/_cjs/errors/rpc.js.map +1 -1
  14. package/_cjs/errors/version.js +1 -1
  15. package/_cjs/{public.js → public/index.js} +29 -29
  16. package/_cjs/public/index.js.map +1 -0
  17. package/_cjs/{test.js → test/index.js} +29 -29
  18. package/_cjs/test/index.js.map +1 -0
  19. package/_cjs/{wallet.js → wallet/index.js} +11 -11
  20. package/_cjs/wallet/index.js.map +1 -0
  21. package/_cjs/{window.js → window/window.js} +1 -1
  22. package/_cjs/window/window.js.map +1 -0
  23. package/_esm/abi/index.js +7 -0
  24. package/_esm/abi/index.js.map +1 -0
  25. package/_esm/chains/utils/index.js +5 -0
  26. package/_esm/chains/utils/index.js.map +1 -0
  27. package/_esm/contract/index.js +26 -0
  28. package/_esm/contract/index.js.map +1 -0
  29. package/_esm/ens/index.js +9 -0
  30. package/_esm/ens/index.js.map +1 -0
  31. package/_esm/errors/node.js +11 -22
  32. package/_esm/errors/node.js.map +1 -1
  33. package/_esm/errors/rpc.js +18 -36
  34. package/_esm/errors/rpc.js.map +1 -1
  35. package/_esm/errors/version.js +1 -1
  36. package/_esm/public/index.js +30 -0
  37. package/_esm/public/index.js.map +1 -0
  38. package/_esm/test/index.js +30 -0
  39. package/_esm/test/index.js.map +1 -0
  40. package/_esm/wallet/index.js +12 -0
  41. package/_esm/wallet/index.js.map +1 -0
  42. package/_esm/window/window.js +2 -0
  43. package/_esm/window/window.js.map +1 -0
  44. package/_types/abi/index.d.ts +6 -0
  45. package/_types/abi/index.d.ts.map +1 -0
  46. package/_types/accounts/generateMnemonic.d.ts +9 -0
  47. package/_types/accounts/generateMnemonic.d.ts.map +1 -0
  48. package/_types/accounts/generatePrivateKey.d.ts +8 -0
  49. package/_types/accounts/generatePrivateKey.d.ts.map +1 -0
  50. package/_types/accounts/hdKeyToAccount.d.ts +9 -0
  51. package/_types/accounts/hdKeyToAccount.d.ts.map +1 -0
  52. package/_types/accounts/index.d.ts +27 -0
  53. package/_types/accounts/index.d.ts.map +1 -0
  54. package/_types/accounts/mnemonicToAccount.d.ts +8 -0
  55. package/_types/accounts/mnemonicToAccount.d.ts.map +1 -0
  56. package/_types/accounts/privateKeyToAccount.d.ts +9 -0
  57. package/_types/accounts/privateKeyToAccount.d.ts.map +1 -0
  58. package/_types/accounts/toAccount.d.ts +11 -0
  59. package/_types/accounts/toAccount.d.ts.map +1 -0
  60. package/_types/accounts/types.d.ts +52 -0
  61. package/_types/accounts/types.d.ts.map +1 -0
  62. package/_types/accounts/utils/parseAccount.d.ts +4 -0
  63. package/_types/accounts/utils/parseAccount.d.ts.map +1 -0
  64. package/_types/accounts/utils/privateKeyToAddress.d.ts +11 -0
  65. package/_types/accounts/utils/privateKeyToAddress.d.ts.map +1 -0
  66. package/_types/accounts/utils/publicKeyToAddress.d.ts +11 -0
  67. package/_types/accounts/utils/publicKeyToAddress.d.ts.map +1 -0
  68. package/_types/accounts/utils/sign.d.ts +16 -0
  69. package/_types/accounts/utils/sign.d.ts.map +1 -0
  70. package/_types/accounts/utils/signMessage.d.ts +16 -0
  71. package/_types/accounts/utils/signMessage.d.ts.map +1 -0
  72. package/_types/accounts/utils/signTransaction.d.ts +12 -0
  73. package/_types/accounts/utils/signTransaction.d.ts.map +1 -0
  74. package/_types/accounts/utils/signTypedData.d.ts +20 -0
  75. package/_types/accounts/utils/signTypedData.d.ts.map +1 -0
  76. package/_types/actions/ens/getEnsAddress.d.ts +45 -0
  77. package/_types/actions/ens/getEnsAddress.d.ts.map +1 -0
  78. package/_types/actions/ens/getEnsAvatar.d.ts +41 -0
  79. package/_types/actions/ens/getEnsAvatar.d.ts.map +1 -0
  80. package/_types/actions/ens/getEnsName.d.ts +41 -0
  81. package/_types/actions/ens/getEnsName.d.ts.map +1 -0
  82. package/_types/actions/ens/getEnsResolver.d.ts +43 -0
  83. package/_types/actions/ens/getEnsResolver.d.ts.map +1 -0
  84. package/_types/actions/ens/getEnsText.d.ts +46 -0
  85. package/_types/actions/ens/getEnsText.d.ts.map +1 -0
  86. package/_types/actions/getContract.d.ts +314 -0
  87. package/_types/actions/getContract.d.ts.map +1 -0
  88. package/_types/actions/index.d.ts +85 -0
  89. package/_types/actions/index.d.ts.map +1 -0
  90. package/_types/actions/public/call.d.ts +56 -0
  91. package/_types/actions/public/call.d.ts.map +1 -0
  92. package/_types/actions/public/createBlockFilter.d.ts +28 -0
  93. package/_types/actions/public/createBlockFilter.d.ts.map +1 -0
  94. package/_types/actions/public/createContractEventFilter.d.ts +50 -0
  95. package/_types/actions/public/createContractEventFilter.d.ts.map +1 -0
  96. package/_types/actions/public/createEventFilter.d.ts +76 -0
  97. package/_types/actions/public/createEventFilter.d.ts.map +1 -0
  98. package/_types/actions/public/createPendingTransactionFilter.d.ts +28 -0
  99. package/_types/actions/public/createPendingTransactionFilter.d.ts.map +1 -0
  100. package/_types/actions/public/estimateContractGas.d.ts +39 -0
  101. package/_types/actions/public/estimateContractGas.d.ts.map +1 -0
  102. package/_types/actions/public/estimateFeesPerGas.d.ts +48 -0
  103. package/_types/actions/public/estimateFeesPerGas.d.ts.map +1 -0
  104. package/_types/actions/public/estimateGas.d.ts +49 -0
  105. package/_types/actions/public/estimateGas.d.ts.map +1 -0
  106. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts +37 -0
  107. package/_types/actions/public/estimateMaxPriorityFeePerGas.d.ts.map +1 -0
  108. package/_types/actions/public/getBalance.d.ts +55 -0
  109. package/_types/actions/public/getBalance.d.ts.map +1 -0
  110. package/_types/actions/public/getBlock.d.ts +56 -0
  111. package/_types/actions/public/getBlock.d.ts.map +1 -0
  112. package/_types/actions/public/getBlockNumber.d.ts +57 -0
  113. package/_types/actions/public/getBlockNumber.d.ts.map +1 -0
  114. package/_types/actions/public/getBlockTransactionCount.d.ts +47 -0
  115. package/_types/actions/public/getBlockTransactionCount.d.ts.map +1 -0
  116. package/_types/actions/public/getBytecode.d.ts +41 -0
  117. package/_types/actions/public/getBytecode.d.ts.map +1 -0
  118. package/_types/actions/public/getChainId.d.ts +28 -0
  119. package/_types/actions/public/getChainId.d.ts.map +1 -0
  120. package/_types/actions/public/getFeeHistory.d.ts +53 -0
  121. package/_types/actions/public/getFeeHistory.d.ts.map +1 -0
  122. package/_types/actions/public/getFilterChanges.d.ts +96 -0
  123. package/_types/actions/public/getFilterChanges.d.ts.map +1 -0
  124. package/_types/actions/public/getFilterLogs.d.ts +40 -0
  125. package/_types/actions/public/getFilterLogs.d.ts.map +1 -0
  126. package/_types/actions/public/getGasPrice.d.ts +27 -0
  127. package/_types/actions/public/getGasPrice.d.ts.map +1 -0
  128. package/_types/actions/public/getLogs.d.ts +71 -0
  129. package/_types/actions/public/getLogs.d.ts.map +1 -0
  130. package/_types/actions/public/getStorageAt.d.ts +43 -0
  131. package/_types/actions/public/getStorageAt.d.ts.map +1 -0
  132. package/_types/actions/public/getTransaction.d.ts +65 -0
  133. package/_types/actions/public/getTransaction.d.ts.map +1 -0
  134. package/_types/actions/public/getTransactionConfirmations.d.ts +41 -0
  135. package/_types/actions/public/getTransactionConfirmations.d.ts.map +1 -0
  136. package/_types/actions/public/getTransactionCount.d.ts +44 -0
  137. package/_types/actions/public/getTransactionCount.d.ts.map +1 -0
  138. package/_types/actions/public/getTransactionReceipt.d.ts +36 -0
  139. package/_types/actions/public/getTransactionReceipt.d.ts.map +1 -0
  140. package/_types/actions/public/multicall.d.ts +56 -0
  141. package/_types/actions/public/multicall.d.ts.map +1 -0
  142. package/_types/actions/public/readContract.d.ts +41 -0
  143. package/_types/actions/public/readContract.d.ts.map +1 -0
  144. package/_types/actions/public/simulateContract.d.ts +54 -0
  145. package/_types/actions/public/simulateContract.d.ts.map +1 -0
  146. package/_types/actions/public/uninstallFilter.d.ts +34 -0
  147. package/_types/actions/public/uninstallFilter.d.ts.map +1 -0
  148. package/_types/actions/public/verifyHash.d.ts +24 -0
  149. package/_types/actions/public/verifyHash.d.ts.map +1 -0
  150. package/_types/actions/public/verifyMessage.d.ts +28 -0
  151. package/_types/actions/public/verifyMessage.d.ts.map +1 -0
  152. package/_types/actions/public/verifyTypedData.d.ts +27 -0
  153. package/_types/actions/public/verifyTypedData.d.ts.map +1 -0
  154. package/_types/actions/public/waitForTransactionReceipt.d.ts +72 -0
  155. package/_types/actions/public/waitForTransactionReceipt.d.ts.map +1 -0
  156. package/_types/actions/public/watchBlockNumber.d.ts +59 -0
  157. package/_types/actions/public/watchBlockNumber.d.ts.map +1 -0
  158. package/_types/actions/public/watchBlocks.d.ts +67 -0
  159. package/_types/actions/public/watchBlocks.d.ts.map +1 -0
  160. package/_types/actions/public/watchContractEvent.d.ts +89 -0
  161. package/_types/actions/public/watchContractEvent.d.ts.map +1 -0
  162. package/_types/actions/public/watchEvent.d.ts +104 -0
  163. package/_types/actions/public/watchEvent.d.ts.map +1 -0
  164. package/_types/actions/public/watchPendingTransactions.d.ts +74 -0
  165. package/_types/actions/public/watchPendingTransactions.d.ts.map +1 -0
  166. package/_types/actions/test/dropTransaction.d.ts +33 -0
  167. package/_types/actions/test/dropTransaction.d.ts.map +1 -0
  168. package/_types/actions/test/getAutomine.d.ts +27 -0
  169. package/_types/actions/test/getAutomine.d.ts.map +1 -0
  170. package/_types/actions/test/getTxpoolContent.d.ts +34 -0
  171. package/_types/actions/test/getTxpoolContent.d.ts.map +1 -0
  172. package/_types/actions/test/getTxpoolStatus.d.ts +30 -0
  173. package/_types/actions/test/getTxpoolStatus.d.ts.map +1 -0
  174. package/_types/actions/test/impersonateAccount.d.ts +33 -0
  175. package/_types/actions/test/impersonateAccount.d.ts.map +1 -0
  176. package/_types/actions/test/increaseTime.d.ts +32 -0
  177. package/_types/actions/test/increaseTime.d.ts.map +1 -0
  178. package/_types/actions/test/inspectTxpool.d.ts +31 -0
  179. package/_types/actions/test/inspectTxpool.d.ts.map +1 -0
  180. package/_types/actions/test/mine.d.ts +32 -0
  181. package/_types/actions/test/mine.d.ts.map +1 -0
  182. package/_types/actions/test/removeBlockTimestampInterval.d.ts +25 -0
  183. package/_types/actions/test/removeBlockTimestampInterval.d.ts.map +1 -0
  184. package/_types/actions/test/reset.d.ts +32 -0
  185. package/_types/actions/test/reset.d.ts.map +1 -0
  186. package/_types/actions/test/revert.d.ts +31 -0
  187. package/_types/actions/test/revert.d.ts.map +1 -0
  188. package/_types/actions/test/sendUnsignedTransaction.d.ts +35 -0
  189. package/_types/actions/test/sendUnsignedTransaction.d.ts.map +1 -0
  190. package/_types/actions/test/setAutomine.d.ts +25 -0
  191. package/_types/actions/test/setAutomine.d.ts.map +1 -0
  192. package/_types/actions/test/setBalance.d.ts +36 -0
  193. package/_types/actions/test/setBalance.d.ts.map +1 -0
  194. package/_types/actions/test/setBlockGasLimit.d.ts +30 -0
  195. package/_types/actions/test/setBlockGasLimit.d.ts.map +1 -0
  196. package/_types/actions/test/setBlockTimestampInterval.d.ts +30 -0
  197. package/_types/actions/test/setBlockTimestampInterval.d.ts.map +1 -0
  198. package/_types/actions/test/setCode.d.ts +37 -0
  199. package/_types/actions/test/setCode.d.ts.map +1 -0
  200. package/_types/actions/test/setCoinbase.d.ts +33 -0
  201. package/_types/actions/test/setCoinbase.d.ts.map +1 -0
  202. package/_types/actions/test/setIntervalMining.d.ts +30 -0
  203. package/_types/actions/test/setIntervalMining.d.ts.map +1 -0
  204. package/_types/actions/test/setLoggingEnabled.d.ts +25 -0
  205. package/_types/actions/test/setLoggingEnabled.d.ts.map +1 -0
  206. package/_types/actions/test/setMinGasPrice.d.ts +34 -0
  207. package/_types/actions/test/setMinGasPrice.d.ts.map +1 -0
  208. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts +32 -0
  209. package/_types/actions/test/setNextBlockBaseFeePerGas.d.ts.map +1 -0
  210. package/_types/actions/test/setNextBlockTimestamp.d.ts +30 -0
  211. package/_types/actions/test/setNextBlockTimestamp.d.ts.map +1 -0
  212. package/_types/actions/test/setNonce.d.ts +36 -0
  213. package/_types/actions/test/setNonce.d.ts.map +1 -0
  214. package/_types/actions/test/setRpcUrl.d.ts +26 -0
  215. package/_types/actions/test/setRpcUrl.d.ts.map +1 -0
  216. package/_types/actions/test/setStorageAt.d.ts +40 -0
  217. package/_types/actions/test/setStorageAt.d.ts.map +1 -0
  218. package/_types/actions/test/snapshot.d.ts +25 -0
  219. package/_types/actions/test/snapshot.d.ts.map +1 -0
  220. package/_types/actions/test/stopImpersonatingAccount.d.ts +33 -0
  221. package/_types/actions/test/stopImpersonatingAccount.d.ts.map +1 -0
  222. package/_types/actions/wallet/addChain.d.ts +29 -0
  223. package/_types/actions/wallet/addChain.d.ts.map +1 -0
  224. package/_types/actions/wallet/deployContract.d.ts +44 -0
  225. package/_types/actions/wallet/deployContract.d.ts.map +1 -0
  226. package/_types/actions/wallet/getAddresses.d.ts +28 -0
  227. package/_types/actions/wallet/getAddresses.d.ts.map +1 -0
  228. package/_types/actions/wallet/getPermissions.d.ts +28 -0
  229. package/_types/actions/wallet/getPermissions.d.ts.map +1 -0
  230. package/_types/actions/wallet/prepareTransactionRequest.d.ts +52 -0
  231. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -0
  232. package/_types/actions/wallet/requestAddresses.d.ts +32 -0
  233. package/_types/actions/wallet/requestAddresses.d.ts.map +1 -0
  234. package/_types/actions/wallet/requestPermissions.d.ts +37 -0
  235. package/_types/actions/wallet/requestPermissions.d.ts.map +1 -0
  236. package/_types/actions/wallet/sendRawTransaction.d.ts +38 -0
  237. package/_types/actions/wallet/sendRawTransaction.d.ts.map +1 -0
  238. package/_types/actions/wallet/sendTransaction.d.ts +58 -0
  239. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -0
  240. package/_types/actions/wallet/signMessage.d.ts +58 -0
  241. package/_types/actions/wallet/signMessage.d.ts.map +1 -0
  242. package/_types/actions/wallet/signTransaction.d.ts +55 -0
  243. package/_types/actions/wallet/signTransaction.d.ts.map +1 -0
  244. package/_types/actions/wallet/signTypedData.d.ts +114 -0
  245. package/_types/actions/wallet/signTypedData.d.ts.map +1 -0
  246. package/_types/actions/wallet/switchChain.d.ts +30 -0
  247. package/_types/actions/wallet/switchChain.d.ts.map +1 -0
  248. package/_types/actions/wallet/watchAsset.d.ts +37 -0
  249. package/_types/actions/wallet/watchAsset.d.ts.map +1 -0
  250. package/_types/actions/wallet/writeContract.d.ts +69 -0
  251. package/_types/actions/wallet/writeContract.d.ts.map +1 -0
  252. package/_types/chains/celo/formatters.d.ts +493 -0
  253. package/_types/chains/celo/formatters.d.ts.map +1 -0
  254. package/_types/chains/celo/parsers.d.ts +6 -0
  255. package/_types/chains/celo/parsers.d.ts.map +1 -0
  256. package/_types/chains/celo/serializers.d.ts +9 -0
  257. package/_types/chains/celo/serializers.d.ts.map +1 -0
  258. package/_types/chains/celo/types.d.ts +100 -0
  259. package/_types/chains/celo/types.d.ts.map +1 -0
  260. package/_types/chains/definitions/arbitrum.d.ts +43 -0
  261. package/_types/chains/definitions/arbitrum.d.ts.map +1 -0
  262. package/_types/chains/definitions/arbitrumGoerli.d.ts +44 -0
  263. package/_types/chains/definitions/arbitrumGoerli.d.ts.map +1 -0
  264. package/_types/chains/definitions/arbitrumNova.d.ts +43 -0
  265. package/_types/chains/definitions/arbitrumNova.d.ts.map +1 -0
  266. package/_types/chains/definitions/aurora.d.ts +32 -0
  267. package/_types/chains/definitions/aurora.d.ts.map +1 -0
  268. package/_types/chains/definitions/auroraTestnet.d.ts +33 -0
  269. package/_types/chains/definitions/auroraTestnet.d.ts.map +1 -0
  270. package/_types/chains/definitions/avalanche.d.ts +35 -0
  271. package/_types/chains/definitions/avalanche.d.ts.map +1 -0
  272. package/_types/chains/definitions/avalancheFuji.d.ts +36 -0
  273. package/_types/chains/definitions/avalancheFuji.d.ts.map +1 -0
  274. package/_types/chains/definitions/base.d.ts +338 -0
  275. package/_types/chains/definitions/base.d.ts.map +1 -0
  276. package/_types/chains/definitions/baseGoerli.d.ts +336 -0
  277. package/_types/chains/definitions/baseGoerli.d.ts.map +1 -0
  278. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts +25 -0
  279. package/_types/chains/definitions/bearNetworkChainMainnet.d.ts.map +1 -0
  280. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts +26 -0
  281. package/_types/chains/definitions/bearNetworkChainTestnet.d.ts.map +1 -0
  282. package/_types/chains/definitions/boba.d.ts +35 -0
  283. package/_types/chains/definitions/boba.d.ts.map +1 -0
  284. package/_types/chains/definitions/bronos.d.ts +25 -0
  285. package/_types/chains/definitions/bronos.d.ts.map +1 -0
  286. package/_types/chains/definitions/bronosTestnet.d.ts +26 -0
  287. package/_types/chains/definitions/bronosTestnet.d.ts.map +1 -0
  288. package/_types/chains/definitions/bsc.d.ts +35 -0
  289. package/_types/chains/definitions/bsc.d.ts.map +1 -0
  290. package/_types/chains/definitions/bscTestnet.d.ts +36 -0
  291. package/_types/chains/definitions/bscTestnet.d.ts.map +1 -0
  292. package/_types/chains/definitions/bxn.d.ts +25 -0
  293. package/_types/chains/definitions/bxn.d.ts.map +1 -0
  294. package/_types/chains/definitions/bxnTestnet.d.ts +25 -0
  295. package/_types/chains/definitions/bxnTestnet.d.ts.map +1 -0
  296. package/_types/chains/definitions/canto.d.ts +31 -0
  297. package/_types/chains/definitions/canto.d.ts.map +1 -0
  298. package/_types/chains/definitions/celo.d.ts +528 -0
  299. package/_types/chains/definitions/celo.d.ts.map +1 -0
  300. package/_types/chains/definitions/celoAlfajores.d.ts +528 -0
  301. package/_types/chains/definitions/celoAlfajores.d.ts.map +1 -0
  302. package/_types/chains/definitions/celoCannoli.d.ts +521 -0
  303. package/_types/chains/definitions/celoCannoli.d.ts.map +1 -0
  304. package/_types/chains/definitions/classic.d.ts +25 -0
  305. package/_types/chains/definitions/classic.d.ts.map +1 -0
  306. package/_types/chains/definitions/confluxESpace.d.ts +31 -0
  307. package/_types/chains/definitions/confluxESpace.d.ts.map +1 -0
  308. package/_types/chains/definitions/cronos.d.ts +31 -0
  309. package/_types/chains/definitions/cronos.d.ts.map +1 -0
  310. package/_types/chains/definitions/cronosTestnet.d.ts +32 -0
  311. package/_types/chains/definitions/cronosTestnet.d.ts.map +1 -0
  312. package/_types/chains/definitions/crossbell.d.ts +31 -0
  313. package/_types/chains/definitions/crossbell.d.ts.map +1 -0
  314. package/_types/chains/definitions/dfk.d.ts +29 -0
  315. package/_types/chains/definitions/dfk.d.ts.map +1 -0
  316. package/_types/chains/definitions/dogechain.d.ts +29 -0
  317. package/_types/chains/definitions/dogechain.d.ts.map +1 -0
  318. package/_types/chains/definitions/edgeware.d.ts +35 -0
  319. package/_types/chains/definitions/edgeware.d.ts.map +1 -0
  320. package/_types/chains/definitions/edgewareTestnet.d.ts +29 -0
  321. package/_types/chains/definitions/edgewareTestnet.d.ts.map +1 -0
  322. package/_types/chains/definitions/ekta.d.ts +25 -0
  323. package/_types/chains/definitions/ekta.d.ts.map +1 -0
  324. package/_types/chains/definitions/ektaTestnet.d.ts +26 -0
  325. package/_types/chains/definitions/ektaTestnet.d.ts.map +1 -0
  326. package/_types/chains/definitions/eon.d.ts +26 -0
  327. package/_types/chains/definitions/eon.d.ts.map +1 -0
  328. package/_types/chains/definitions/eos.d.ts +35 -0
  329. package/_types/chains/definitions/eos.d.ts.map +1 -0
  330. package/_types/chains/definitions/eosTestnet.d.ts +36 -0
  331. package/_types/chains/definitions/eosTestnet.d.ts.map +1 -0
  332. package/_types/chains/definitions/evmos.d.ts +25 -0
  333. package/_types/chains/definitions/evmos.d.ts.map +1 -0
  334. package/_types/chains/definitions/evmosTestnet.d.ts +25 -0
  335. package/_types/chains/definitions/evmosTestnet.d.ts.map +1 -0
  336. package/_types/chains/definitions/fantom.d.ts +35 -0
  337. package/_types/chains/definitions/fantom.d.ts.map +1 -0
  338. package/_types/chains/definitions/fantomTestnet.d.ts +35 -0
  339. package/_types/chains/definitions/fantomTestnet.d.ts.map +1 -0
  340. package/_types/chains/definitions/fibo.d.ts +25 -0
  341. package/_types/chains/definitions/fibo.d.ts.map +1 -0
  342. package/_types/chains/definitions/filecoin.d.ts +37 -0
  343. package/_types/chains/definitions/filecoin.d.ts.map +1 -0
  344. package/_types/chains/definitions/filecoinCalibration.d.ts +25 -0
  345. package/_types/chains/definitions/filecoinCalibration.d.ts.map +1 -0
  346. package/_types/chains/definitions/filecoinHyperspace.d.ts +29 -0
  347. package/_types/chains/definitions/filecoinHyperspace.d.ts.map +1 -0
  348. package/_types/chains/definitions/flare.d.ts +25 -0
  349. package/_types/chains/definitions/flare.d.ts.map +1 -0
  350. package/_types/chains/definitions/flareTestnet.d.ts +26 -0
  351. package/_types/chains/definitions/flareTestnet.d.ts.map +1 -0
  352. package/_types/chains/definitions/foundry.d.ts +21 -0
  353. package/_types/chains/definitions/foundry.d.ts.map +1 -0
  354. package/_types/chains/definitions/fuse.d.ts +25 -0
  355. package/_types/chains/definitions/fuse.d.ts.map +1 -0
  356. package/_types/chains/definitions/fuseSparknet.d.ts +25 -0
  357. package/_types/chains/definitions/fuseSparknet.d.ts.map +1 -0
  358. package/_types/chains/definitions/gnosis.d.ts +35 -0
  359. package/_types/chains/definitions/gnosis.d.ts.map +1 -0
  360. package/_types/chains/definitions/gnosisChiado.d.ts +26 -0
  361. package/_types/chains/definitions/gnosisChiado.d.ts.map +1 -0
  362. package/_types/chains/definitions/gobi.d.ts +27 -0
  363. package/_types/chains/definitions/gobi.d.ts.map +1 -0
  364. package/_types/chains/definitions/goerli.d.ts +51 -0
  365. package/_types/chains/definitions/goerli.d.ts.map +1 -0
  366. package/_types/chains/definitions/haqqMainnet.d.ts +25 -0
  367. package/_types/chains/definitions/haqqMainnet.d.ts.map +1 -0
  368. package/_types/chains/definitions/haqqTestedge2.d.ts +25 -0
  369. package/_types/chains/definitions/haqqTestedge2.d.ts.map +1 -0
  370. package/_types/chains/definitions/hardhat.d.ts +19 -0
  371. package/_types/chains/definitions/hardhat.d.ts.map +1 -0
  372. package/_types/chains/definitions/harmonyOne.d.ts +31 -0
  373. package/_types/chains/definitions/harmonyOne.d.ts.map +1 -0
  374. package/_types/chains/definitions/iotex.d.ts +27 -0
  375. package/_types/chains/definitions/iotex.d.ts.map +1 -0
  376. package/_types/chains/definitions/iotexTestnet.d.ts +27 -0
  377. package/_types/chains/definitions/iotexTestnet.d.ts.map +1 -0
  378. package/_types/chains/definitions/klaytn.d.ts +29 -0
  379. package/_types/chains/definitions/klaytn.d.ts.map +1 -0
  380. package/_types/chains/definitions/linea.d.ts +46 -0
  381. package/_types/chains/definitions/linea.d.ts.map +1 -0
  382. package/_types/chains/definitions/lineaTestnet.d.ts +46 -0
  383. package/_types/chains/definitions/lineaTestnet.d.ts.map +1 -0
  384. package/_types/chains/definitions/localhost.d.ts +19 -0
  385. package/_types/chains/definitions/localhost.d.ts.map +1 -0
  386. package/_types/chains/definitions/mainnet.d.ts +50 -0
  387. package/_types/chains/definitions/mainnet.d.ts.map +1 -0
  388. package/_types/chains/definitions/mantle.d.ts +35 -0
  389. package/_types/chains/definitions/mantle.d.ts.map +1 -0
  390. package/_types/chains/definitions/mantleTestnet.d.ts +30 -0
  391. package/_types/chains/definitions/mantleTestnet.d.ts.map +1 -0
  392. package/_types/chains/definitions/meter.d.ts +25 -0
  393. package/_types/chains/definitions/meter.d.ts.map +1 -0
  394. package/_types/chains/definitions/meterTestnet.d.ts +25 -0
  395. package/_types/chains/definitions/meterTestnet.d.ts.map +1 -0
  396. package/_types/chains/definitions/metis.d.ts +31 -0
  397. package/_types/chains/definitions/metis.d.ts.map +1 -0
  398. package/_types/chains/definitions/metisGoerli.d.ts +31 -0
  399. package/_types/chains/definitions/metisGoerli.d.ts.map +1 -0
  400. package/_types/chains/definitions/mev.d.ts +31 -0
  401. package/_types/chains/definitions/mev.d.ts.map +1 -0
  402. package/_types/chains/definitions/mevTestnet.d.ts +32 -0
  403. package/_types/chains/definitions/mevTestnet.d.ts.map +1 -0
  404. package/_types/chains/definitions/modeTestnet.d.ts +26 -0
  405. package/_types/chains/definitions/modeTestnet.d.ts.map +1 -0
  406. package/_types/chains/definitions/moonbaseAlpha.d.ts +38 -0
  407. package/_types/chains/definitions/moonbaseAlpha.d.ts.map +1 -0
  408. package/_types/chains/definitions/moonbeam.d.ts +38 -0
  409. package/_types/chains/definitions/moonbeam.d.ts.map +1 -0
  410. package/_types/chains/definitions/moonriver.d.ts +38 -0
  411. package/_types/chains/definitions/moonriver.d.ts.map +1 -0
  412. package/_types/chains/definitions/neonDevnet.d.ts +32 -0
  413. package/_types/chains/definitions/neonDevnet.d.ts.map +1 -0
  414. package/_types/chains/definitions/nexi.d.ts +35 -0
  415. package/_types/chains/definitions/nexi.d.ts.map +1 -0
  416. package/_types/chains/definitions/nexilix.d.ts +35 -0
  417. package/_types/chains/definitions/nexilix.d.ts.map +1 -0
  418. package/_types/chains/definitions/oasys.d.ts +25 -0
  419. package/_types/chains/definitions/oasys.d.ts.map +1 -0
  420. package/_types/chains/definitions/okc.d.ts +31 -0
  421. package/_types/chains/definitions/okc.d.ts.map +1 -0
  422. package/_types/chains/definitions/opBNB.d.ts +31 -0
  423. package/_types/chains/definitions/opBNB.d.ts.map +1 -0
  424. package/_types/chains/definitions/opBNBTestnet.d.ts +32 -0
  425. package/_types/chains/definitions/opBNBTestnet.d.ts.map +1 -0
  426. package/_types/chains/definitions/optimism.d.ts +338 -0
  427. package/_types/chains/definitions/optimism.d.ts.map +1 -0
  428. package/_types/chains/definitions/optimismGoerli.d.ts +339 -0
  429. package/_types/chains/definitions/optimismGoerli.d.ts.map +1 -0
  430. package/_types/chains/definitions/plinga.d.ts +31 -0
  431. package/_types/chains/definitions/plinga.d.ts.map +1 -0
  432. package/_types/chains/definitions/polygon.d.ts +43 -0
  433. package/_types/chains/definitions/polygon.d.ts.map +1 -0
  434. package/_types/chains/definitions/polygonMumbai.d.ts +44 -0
  435. package/_types/chains/definitions/polygonMumbai.d.ts.map +1 -0
  436. package/_types/chains/definitions/polygonZkEvm.d.ts +31 -0
  437. package/_types/chains/definitions/polygonZkEvm.d.ts.map +1 -0
  438. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts +36 -0
  439. package/_types/chains/definitions/polygonZkEvmTestnet.d.ts.map +1 -0
  440. package/_types/chains/definitions/pulsechain.d.ts +37 -0
  441. package/_types/chains/definitions/pulsechain.d.ts.map +1 -0
  442. package/_types/chains/definitions/pulsechainV4.d.ts +37 -0
  443. package/_types/chains/definitions/pulsechainV4.d.ts.map +1 -0
  444. package/_types/chains/definitions/qMainnet.d.ts +25 -0
  445. package/_types/chains/definitions/qMainnet.d.ts.map +1 -0
  446. package/_types/chains/definitions/qTestnet.d.ts +26 -0
  447. package/_types/chains/definitions/qTestnet.d.ts.map +1 -0
  448. package/_types/chains/definitions/rollux.d.ts +32 -0
  449. package/_types/chains/definitions/rollux.d.ts.map +1 -0
  450. package/_types/chains/definitions/rolluxTestnet.d.ts +32 -0
  451. package/_types/chains/definitions/rolluxTestnet.d.ts.map +1 -0
  452. package/_types/chains/definitions/ronin.d.ts +31 -0
  453. package/_types/chains/definitions/ronin.d.ts.map +1 -0
  454. package/_types/chains/definitions/saigon.d.ts +32 -0
  455. package/_types/chains/definitions/saigon.d.ts.map +1 -0
  456. package/_types/chains/definitions/scrollSepolia.d.ts +34 -0
  457. package/_types/chains/definitions/scrollSepolia.d.ts.map +1 -0
  458. package/_types/chains/definitions/scrollTestnet.d.ts +28 -0
  459. package/_types/chains/definitions/scrollTestnet.d.ts.map +1 -0
  460. package/_types/chains/definitions/sepolia.d.ts +51 -0
  461. package/_types/chains/definitions/sepolia.d.ts.map +1 -0
  462. package/_types/chains/definitions/shardeumSphinx.d.ts +26 -0
  463. package/_types/chains/definitions/shardeumSphinx.d.ts.map +1 -0
  464. package/_types/chains/definitions/skale/brawl.d.ts +32 -0
  465. package/_types/chains/definitions/skale/brawl.d.ts.map +1 -0
  466. package/_types/chains/definitions/skale/calypso.d.ts +37 -0
  467. package/_types/chains/definitions/skale/calypso.d.ts.map +1 -0
  468. package/_types/chains/definitions/skale/calypsoTestnet.d.ts +38 -0
  469. package/_types/chains/definitions/skale/calypsoTestnet.d.ts.map +1 -0
  470. package/_types/chains/definitions/skale/chaosTestnet.d.ts +38 -0
  471. package/_types/chains/definitions/skale/chaosTestnet.d.ts.map +1 -0
  472. package/_types/chains/definitions/skale/cryptoBlades.d.ts +32 -0
  473. package/_types/chains/definitions/skale/cryptoBlades.d.ts.map +1 -0
  474. package/_types/chains/definitions/skale/cryptoColosseum.d.ts +32 -0
  475. package/_types/chains/definitions/skale/cryptoColosseum.d.ts.map +1 -0
  476. package/_types/chains/definitions/skale/europa.d.ts +37 -0
  477. package/_types/chains/definitions/skale/europa.d.ts.map +1 -0
  478. package/_types/chains/definitions/skale/europaTestnet.d.ts +38 -0
  479. package/_types/chains/definitions/skale/europaTestnet.d.ts.map +1 -0
  480. package/_types/chains/definitions/skale/exorde.d.ts +32 -0
  481. package/_types/chains/definitions/skale/exorde.d.ts.map +1 -0
  482. package/_types/chains/definitions/skale/humanProtocol.d.ts +32 -0
  483. package/_types/chains/definitions/skale/humanProtocol.d.ts.map +1 -0
  484. package/_types/chains/definitions/skale/nebula.d.ts +37 -0
  485. package/_types/chains/definitions/skale/nebula.d.ts.map +1 -0
  486. package/_types/chains/definitions/skale/nebulaTestnet.d.ts +38 -0
  487. package/_types/chains/definitions/skale/nebulaTestnet.d.ts.map +1 -0
  488. package/_types/chains/definitions/skale/razor.d.ts +32 -0
  489. package/_types/chains/definitions/skale/razor.d.ts.map +1 -0
  490. package/_types/chains/definitions/skale/titan.d.ts +37 -0
  491. package/_types/chains/definitions/skale/titan.d.ts.map +1 -0
  492. package/_types/chains/definitions/skale/titanTestnet.d.ts +38 -0
  493. package/_types/chains/definitions/skale/titanTestnet.d.ts.map +1 -0
  494. package/_types/chains/definitions/songbird.d.ts +25 -0
  495. package/_types/chains/definitions/songbird.d.ts.map +1 -0
  496. package/_types/chains/definitions/songbirdTestnet.d.ts +26 -0
  497. package/_types/chains/definitions/songbirdTestnet.d.ts.map +1 -0
  498. package/_types/chains/definitions/syscoin.d.ts +33 -0
  499. package/_types/chains/definitions/syscoin.d.ts.map +1 -0
  500. package/_types/chains/definitions/syscoinTestnet.d.ts +33 -0
  501. package/_types/chains/definitions/syscoinTestnet.d.ts.map +1 -0
  502. package/_types/chains/definitions/taikoJolnir.d.ts +25 -0
  503. package/_types/chains/definitions/taikoJolnir.d.ts.map +1 -0
  504. package/_types/chains/definitions/taikoTestnetSepolia.d.ts +25 -0
  505. package/_types/chains/definitions/taikoTestnetSepolia.d.ts.map +1 -0
  506. package/_types/chains/definitions/taraxa.d.ts +25 -0
  507. package/_types/chains/definitions/taraxa.d.ts.map +1 -0
  508. package/_types/chains/definitions/taraxaTestnet.d.ts +26 -0
  509. package/_types/chains/definitions/taraxaTestnet.d.ts.map +1 -0
  510. package/_types/chains/definitions/telos.d.ts +31 -0
  511. package/_types/chains/definitions/telos.d.ts.map +1 -0
  512. package/_types/chains/definitions/telosTestnet.d.ts +26 -0
  513. package/_types/chains/definitions/telosTestnet.d.ts.map +1 -0
  514. package/_types/chains/definitions/thunderTestnet.d.ts +26 -0
  515. package/_types/chains/definitions/thunderTestnet.d.ts.map +1 -0
  516. package/_types/chains/definitions/vechain.d.ts +29 -0
  517. package/_types/chains/definitions/vechain.d.ts.map +1 -0
  518. package/_types/chains/definitions/wanchain.d.ts +35 -0
  519. package/_types/chains/definitions/wanchain.d.ts.map +1 -0
  520. package/_types/chains/definitions/wanchainTestnet.d.ts +36 -0
  521. package/_types/chains/definitions/wanchainTestnet.d.ts.map +1 -0
  522. package/_types/chains/definitions/xdc.d.ts +29 -0
  523. package/_types/chains/definitions/xdc.d.ts.map +1 -0
  524. package/_types/chains/definitions/xdcTestnet.d.ts +29 -0
  525. package/_types/chains/definitions/xdcTestnet.d.ts.map +1 -0
  526. package/_types/chains/definitions/zetachainAthensTestnet.d.ts +26 -0
  527. package/_types/chains/definitions/zetachainAthensTestnet.d.ts.map +1 -0
  528. package/_types/chains/definitions/zhejiang.d.ts +34 -0
  529. package/_types/chains/definitions/zhejiang.d.ts.map +1 -0
  530. package/_types/chains/definitions/zkSync.d.ts +32 -0
  531. package/_types/chains/definitions/zkSync.d.ts.map +1 -0
  532. package/_types/chains/definitions/zkSyncTestnet.d.ts +33 -0
  533. package/_types/chains/definitions/zkSyncTestnet.d.ts.map +1 -0
  534. package/_types/chains/definitions/zora.d.ts +328 -0
  535. package/_types/chains/definitions/zora.d.ts.map +1 -0
  536. package/_types/chains/definitions/zoraTestnet.d.ts +329 -0
  537. package/_types/chains/definitions/zoraTestnet.d.ts.map +1 -0
  538. package/_types/chains/index.d.ts +140 -0
  539. package/_types/chains/index.d.ts.map +1 -0
  540. package/_types/chains/optimism/formatters.d.ts +299 -0
  541. package/_types/chains/optimism/formatters.d.ts.map +1 -0
  542. package/_types/chains/optimism/types.d.ts +53 -0
  543. package/_types/chains/optimism/types.d.ts.map +1 -0
  544. package/_types/chains/utils/index.d.ts +7 -0
  545. package/_types/chains/utils/index.d.ts.map +1 -0
  546. package/_types/clients/createClient.d.ts +79 -0
  547. package/_types/clients/createClient.d.ts.map +1 -0
  548. package/_types/clients/createPublicClient.d.ts +29 -0
  549. package/_types/clients/createPublicClient.d.ts.map +1 -0
  550. package/_types/clients/createTestClient.d.ts +43 -0
  551. package/_types/clients/createTestClient.d.ts.map +1 -0
  552. package/_types/clients/createWalletClient.d.ts +49 -0
  553. package/_types/clients/createWalletClient.d.ts.map +1 -0
  554. package/_types/clients/decorators/public.d.ts +1199 -0
  555. package/_types/clients/decorators/public.d.ts.map +1 -0
  556. package/_types/clients/decorators/test.d.ts +599 -0
  557. package/_types/clients/decorators/test.d.ts.map +1 -0
  558. package/_types/clients/decorators/wallet.d.ts +560 -0
  559. package/_types/clients/decorators/wallet.d.ts.map +1 -0
  560. package/_types/clients/transports/createTransport.d.ts +34 -0
  561. package/_types/clients/transports/createTransport.d.ts.map +1 -0
  562. package/_types/clients/transports/custom.d.ts +21 -0
  563. package/_types/clients/transports/custom.d.ts.map +1 -0
  564. package/_types/clients/transports/fallback.d.ts +75 -0
  565. package/_types/clients/transports/fallback.d.ts.map +1 -0
  566. package/_types/clients/transports/http.d.ts +40 -0
  567. package/_types/clients/transports/http.d.ts.map +1 -0
  568. package/_types/clients/transports/webSocket.d.ts +45 -0
  569. package/_types/clients/transports/webSocket.d.ts.map +1 -0
  570. package/_types/constants/abis.d.ts +165 -0
  571. package/_types/constants/abis.d.ts.map +1 -0
  572. package/_types/constants/address.d.ts +2 -0
  573. package/_types/constants/address.d.ts.map +1 -0
  574. package/_types/constants/contract.d.ts +2 -0
  575. package/_types/constants/contract.d.ts.map +1 -0
  576. package/_types/constants/contracts.d.ts +2 -0
  577. package/_types/constants/contracts.d.ts.map +1 -0
  578. package/_types/constants/number.d.ts +97 -0
  579. package/_types/constants/number.d.ts.map +1 -0
  580. package/_types/constants/solidity.d.ts +15 -0
  581. package/_types/constants/solidity.d.ts.map +1 -0
  582. package/_types/constants/unit.d.ts +13 -0
  583. package/_types/constants/unit.d.ts.map +1 -0
  584. package/_types/contract/index.d.ts +30 -0
  585. package/_types/contract/index.d.ts.map +1 -0
  586. package/_types/ens/index.d.ts +9 -0
  587. package/_types/ens/index.d.ts.map +1 -0
  588. package/_types/errors/abi.d.ts +169 -0
  589. package/_types/errors/abi.d.ts.map +1 -0
  590. package/_types/errors/account.d.ts +8 -0
  591. package/_types/errors/account.d.ts.map +1 -0
  592. package/_types/errors/address.d.ts +8 -0
  593. package/_types/errors/address.d.ts.map +1 -0
  594. package/_types/errors/base.d.ts +24 -0
  595. package/_types/errors/base.d.ts.map +1 -0
  596. package/_types/errors/block.d.ts +10 -0
  597. package/_types/errors/block.d.ts.map +1 -0
  598. package/_types/errors/ccip.d.ts +29 -0
  599. package/_types/errors/ccip.d.ts.map +1 -0
  600. package/_types/errors/chain.d.ts +35 -0
  601. package/_types/errors/chain.d.ts.map +1 -0
  602. package/_types/errors/contract.d.ts +64 -0
  603. package/_types/errors/contract.d.ts.map +1 -0
  604. package/_types/errors/data.d.ts +18 -0
  605. package/_types/errors/data.d.ts.map +1 -0
  606. package/_types/errors/encoding.d.ts +53 -0
  607. package/_types/errors/encoding.d.ts.map +1 -0
  608. package/_types/errors/ens.d.ts +26 -0
  609. package/_types/errors/ens.d.ts.map +1 -0
  610. package/_types/errors/estimateGas.d.ts +14 -0
  611. package/_types/errors/estimateGas.d.ts.map +1 -0
  612. package/_types/errors/fee.d.ts +16 -0
  613. package/_types/errors/fee.d.ts.map +1 -0
  614. package/_types/errors/log.d.ts +6 -0
  615. package/_types/errors/log.d.ts.map +1 -0
  616. package/_types/errors/node.d.ts +105 -0
  617. package/_types/errors/node.d.ts.map +1 -0
  618. package/_types/errors/request.d.ts +61 -0
  619. package/_types/errors/request.d.ts.map +1 -0
  620. package/_types/errors/rpc.d.ts +221 -0
  621. package/_types/errors/rpc.d.ts.map +1 -0
  622. package/_types/errors/transaction.d.ts +79 -0
  623. package/_types/errors/transaction.d.ts.map +1 -0
  624. package/_types/errors/transport.d.ts +5 -0
  625. package/_types/errors/transport.d.ts.map +1 -0
  626. package/_types/errors/utils.d.ts +5 -0
  627. package/_types/errors/utils.d.ts.map +1 -0
  628. package/_types/errors/version.d.ts +2 -0
  629. package/_types/errors/version.d.ts.map +1 -0
  630. package/_types/index.d.ts +217 -0
  631. package/_types/index.d.ts.map +1 -0
  632. package/_types/public/index.d.ts +33 -0
  633. package/_types/public/index.d.ts.map +1 -0
  634. package/_types/test/index.d.ts +29 -0
  635. package/_types/test/index.d.ts.map +1 -0
  636. package/_types/types/account.d.ts +12 -0
  637. package/_types/types/account.d.ts.map +1 -0
  638. package/_types/types/block.d.ts +62 -0
  639. package/_types/types/block.d.ts.map +1 -0
  640. package/_types/types/chain.d.ts +167 -0
  641. package/_types/types/chain.d.ts.map +1 -0
  642. package/_types/types/contract.d.ts +138 -0
  643. package/_types/types/contract.d.ts.map +1 -0
  644. package/_types/types/eip1193.d.ts +1228 -0
  645. package/_types/types/eip1193.d.ts.map +1 -0
  646. package/_types/types/ens.d.ts +5 -0
  647. package/_types/types/ens.d.ts.map +1 -0
  648. package/_types/types/fee.d.ts +30 -0
  649. package/_types/types/fee.d.ts.map +1 -0
  650. package/_types/types/filter.d.ts +40 -0
  651. package/_types/types/filter.d.ts.map +1 -0
  652. package/_types/types/log.d.ts +55 -0
  653. package/_types/types/log.d.ts.map +1 -0
  654. package/_types/types/misc.d.ts +14 -0
  655. package/_types/types/misc.d.ts.map +1 -0
  656. package/_types/types/multicall.d.ts +48 -0
  657. package/_types/types/multicall.d.ts.map +1 -0
  658. package/_types/types/rpc.d.ts +20 -0
  659. package/_types/types/rpc.d.ts.map +1 -0
  660. package/_types/types/transaction.d.ts +147 -0
  661. package/_types/types/transaction.d.ts.map +1 -0
  662. package/_types/types/transport.d.ts +3 -0
  663. package/_types/types/transport.d.ts.map +1 -0
  664. package/_types/types/typedData.d.ts +47 -0
  665. package/_types/types/typedData.d.ts.map +1 -0
  666. package/_types/types/utils.d.ts +188 -0
  667. package/_types/types/utils.d.ts.map +1 -0
  668. package/_types/types/window.d.ts +7 -0
  669. package/_types/types/window.d.ts.map +1 -0
  670. package/_types/utils/abi/decodeAbiParameters.d.ts +5 -0
  671. package/_types/utils/abi/decodeAbiParameters.d.ts.map +1 -0
  672. package/_types/utils/abi/decodeDeployData.d.ts +13 -0
  673. package/_types/utils/abi/decodeDeployData.d.ts.map +1 -0
  674. package/_types/utils/abi/decodeErrorResult.d.ts +16 -0
  675. package/_types/utils/abi/decodeErrorResult.d.ts.map +1 -0
  676. package/_types/utils/abi/decodeEventLog.d.ts +20 -0
  677. package/_types/utils/abi/decodeEventLog.d.ts.map +1 -0
  678. package/_types/utils/abi/decodeFunctionData.d.ts +15 -0
  679. package/_types/utils/abi/decodeFunctionData.d.ts.map +1 -0
  680. package/_types/utils/abi/decodeFunctionResult.d.ts +14 -0
  681. package/_types/utils/abi/decodeFunctionResult.d.ts.map +1 -0
  682. package/_types/utils/abi/encodeAbiParameters.d.ts +9 -0
  683. package/_types/utils/abi/encodeAbiParameters.d.ts.map +1 -0
  684. package/_types/utils/abi/encodeDeployData.d.ts +9 -0
  685. package/_types/utils/abi/encodeDeployData.d.ts.map +1 -0
  686. package/_types/utils/abi/encodeErrorResult.d.ts +11 -0
  687. package/_types/utils/abi/encodeErrorResult.d.ts.map +1 -0
  688. package/_types/utils/abi/encodeEventTopics.d.ts +13 -0
  689. package/_types/utils/abi/encodeEventTopics.d.ts.map +1 -0
  690. package/_types/utils/abi/encodeFunctionData.d.ts +11 -0
  691. package/_types/utils/abi/encodeFunctionData.d.ts.map +1 -0
  692. package/_types/utils/abi/encodeFunctionResult.d.ts +13 -0
  693. package/_types/utils/abi/encodeFunctionResult.d.ts.map +1 -0
  694. package/_types/utils/abi/encodePacked.d.ts +11 -0
  695. package/_types/utils/abi/encodePacked.d.ts.map +1 -0
  696. package/_types/utils/abi/formatAbiItem.d.ts +9 -0
  697. package/_types/utils/abi/formatAbiItem.d.ts.map +1 -0
  698. package/_types/utils/abi/formatAbiItemWithArgs.d.ts +8 -0
  699. package/_types/utils/abi/formatAbiItemWithArgs.d.ts.map +1 -0
  700. package/_types/utils/abi/getAbiItem.d.ts +13 -0
  701. package/_types/utils/abi/getAbiItem.d.ts.map +1 -0
  702. package/_types/utils/accounts.d.ts +3 -0
  703. package/_types/utils/accounts.d.ts.map +1 -0
  704. package/_types/utils/address/getAddress.d.ts +4 -0
  705. package/_types/utils/address/getAddress.d.ts.map +1 -0
  706. package/_types/utils/address/getContractAddress.d.ts +20 -0
  707. package/_types/utils/address/getContractAddress.d.ts.map +1 -0
  708. package/_types/utils/address/isAddress.d.ts +3 -0
  709. package/_types/utils/address/isAddress.d.ts.map +1 -0
  710. package/_types/utils/address/isAddressEqual.d.ts +3 -0
  711. package/_types/utils/address/isAddressEqual.d.ts.map +1 -0
  712. package/_types/utils/buildRequest.d.ts +6 -0
  713. package/_types/utils/buildRequest.d.ts.map +1 -0
  714. package/_types/utils/ccip.d.ts +37 -0
  715. package/_types/utils/ccip.d.ts.map +1 -0
  716. package/_types/utils/chain.d.ts +14 -0
  717. package/_types/utils/chain.d.ts.map +1 -0
  718. package/_types/utils/contract/extractFunctionParts.d.ts +13 -0
  719. package/_types/utils/contract/extractFunctionParts.d.ts.map +1 -0
  720. package/_types/utils/data/concat.d.ts +6 -0
  721. package/_types/utils/data/concat.d.ts.map +1 -0
  722. package/_types/utils/data/isBytes.d.ts +3 -0
  723. package/_types/utils/data/isBytes.d.ts.map +1 -0
  724. package/_types/utils/data/isBytesEqual.d.ts +3 -0
  725. package/_types/utils/data/isBytesEqual.d.ts.map +1 -0
  726. package/_types/utils/data/isHex.d.ts +5 -0
  727. package/_types/utils/data/isHex.d.ts.map +1 -0
  728. package/_types/utils/data/pad.d.ts +11 -0
  729. package/_types/utils/data/pad.d.ts.map +1 -0
  730. package/_types/utils/data/size.d.ts +9 -0
  731. package/_types/utils/data/size.d.ts.map +1 -0
  732. package/_types/utils/data/slice.d.ts +33 -0
  733. package/_types/utils/data/slice.d.ts.map +1 -0
  734. package/_types/utils/data/trim.d.ts +8 -0
  735. package/_types/utils/data/trim.d.ts.map +1 -0
  736. package/_types/utils/encoding/fromBytes.d.ts +109 -0
  737. package/_types/utils/encoding/fromBytes.d.ts.map +1 -0
  738. package/_types/utils/encoding/fromHex.d.ts +138 -0
  739. package/_types/utils/encoding/fromHex.d.ts.map +1 -0
  740. package/_types/utils/encoding/fromRlp.d.ts +6 -0
  741. package/_types/utils/encoding/fromRlp.d.ts.map +1 -0
  742. package/_types/utils/encoding/toBytes.d.ts +125 -0
  743. package/_types/utils/encoding/toBytes.d.ts.map +1 -0
  744. package/_types/utils/encoding/toHex.d.ts +139 -0
  745. package/_types/utils/encoding/toHex.d.ts.map +1 -0
  746. package/_types/utils/encoding/toRlp.d.ts +8 -0
  747. package/_types/utils/encoding/toRlp.d.ts.map +1 -0
  748. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts +9 -0
  749. package/_types/utils/ens/avatar/parseAvatarRecord.d.ts.map +1 -0
  750. package/_types/utils/ens/avatar/utils.d.ts +37 -0
  751. package/_types/utils/ens/avatar/utils.d.ts.map +1 -0
  752. package/_types/utils/ens/encodeLabelhash.d.ts +3 -0
  753. package/_types/utils/ens/encodeLabelhash.d.ts.map +1 -0
  754. package/_types/utils/ens/encodedLabelToLabelhash.d.ts +3 -0
  755. package/_types/utils/ens/encodedLabelToLabelhash.d.ts.map +1 -0
  756. package/_types/utils/ens/errors.d.ts +2 -0
  757. package/_types/utils/ens/errors.d.ts.map +1 -0
  758. package/_types/utils/ens/labelhash.d.ts +11 -0
  759. package/_types/utils/ens/labelhash.d.ts.map +1 -0
  760. package/_types/utils/ens/namehash.d.ts +13 -0
  761. package/_types/utils/ens/namehash.d.ts.map +1 -0
  762. package/_types/utils/ens/normalize.d.ts +12 -0
  763. package/_types/utils/ens/normalize.d.ts.map +1 -0
  764. package/_types/utils/ens/packetToBytes.d.ts +3 -0
  765. package/_types/utils/ens/packetToBytes.d.ts.map +1 -0
  766. package/_types/utils/errors/getCallError.d.ts +9 -0
  767. package/_types/utils/errors/getCallError.d.ts.map +1 -0
  768. package/_types/utils/errors/getContractError.d.ts +12 -0
  769. package/_types/utils/errors/getContractError.d.ts.map +1 -0
  770. package/_types/utils/errors/getEstimateGasError.d.ts +11 -0
  771. package/_types/utils/errors/getEstimateGasError.d.ts.map +1 -0
  772. package/_types/utils/errors/getNodeError.d.ts +7 -0
  773. package/_types/utils/errors/getNodeError.d.ts.map +1 -0
  774. package/_types/utils/errors/getTransactionError.d.ts +12 -0
  775. package/_types/utils/errors/getTransactionError.d.ts.map +1 -0
  776. package/_types/utils/filters/createFilterRequestScope.d.ts +22 -0
  777. package/_types/utils/filters/createFilterRequestScope.d.ts.map +1 -0
  778. package/_types/utils/formatters/block.d.ts +28 -0
  779. package/_types/utils/formatters/block.d.ts.map +1 -0
  780. package/_types/utils/formatters/extract.d.ts +8 -0
  781. package/_types/utils/formatters/extract.d.ts.map +1 -0
  782. package/_types/utils/formatters/feeHistory.d.ts +4 -0
  783. package/_types/utils/formatters/feeHistory.d.ts.map +1 -0
  784. package/_types/utils/formatters/formatter.d.ts +10 -0
  785. package/_types/utils/formatters/formatter.d.ts.map +1 -0
  786. package/_types/utils/formatters/log.d.ts +7 -0
  787. package/_types/utils/formatters/log.d.ts.map +1 -0
  788. package/_types/utils/formatters/transaction.d.ts +30 -0
  789. package/_types/utils/formatters/transaction.d.ts.map +1 -0
  790. package/_types/utils/formatters/transactionReceipt.d.ts +14 -0
  791. package/_types/utils/formatters/transactionReceipt.d.ts.map +1 -0
  792. package/_types/utils/formatters/transactionRequest.d.ts +19 -0
  793. package/_types/utils/formatters/transactionRequest.d.ts.map +1 -0
  794. package/_types/utils/hash/getEventSelector.d.ts +4 -0
  795. package/_types/utils/hash/getEventSelector.d.ts.map +1 -0
  796. package/_types/utils/hash/getFunctionSelector.d.ts +3 -0
  797. package/_types/utils/hash/getFunctionSelector.d.ts.map +1 -0
  798. package/_types/utils/hash/hashFunction.d.ts +4 -0
  799. package/_types/utils/hash/hashFunction.d.ts.map +1 -0
  800. package/_types/utils/hash/isHash.d.ts +3 -0
  801. package/_types/utils/hash/isHash.d.ts.map +1 -0
  802. package/_types/utils/hash/keccak256.d.ts +6 -0
  803. package/_types/utils/hash/keccak256.d.ts.map +1 -0
  804. package/_types/utils/index.d.ts +84 -0
  805. package/_types/utils/index.d.ts.map +1 -0
  806. package/_types/utils/observe.d.ts +17 -0
  807. package/_types/utils/observe.d.ts.map +1 -0
  808. package/_types/utils/poll.d.ts +13 -0
  809. package/_types/utils/poll.d.ts.map +1 -0
  810. package/_types/utils/promise/createBatchScheduler.d.ts +17 -0
  811. package/_types/utils/promise/createBatchScheduler.d.ts.map +1 -0
  812. package/_types/utils/promise/withCache.d.ts +36 -0
  813. package/_types/utils/promise/withCache.d.ts.map +1 -0
  814. package/_types/utils/promise/withRetry.d.ts +12 -0
  815. package/_types/utils/promise/withRetry.d.ts.map +1 -0
  816. package/_types/utils/promise/withTimeout.d.ts +8 -0
  817. package/_types/utils/promise/withTimeout.d.ts.map +1 -0
  818. package/_types/utils/regex.d.ts +4 -0
  819. package/_types/utils/regex.d.ts.map +1 -0
  820. package/_types/utils/rpc.d.ts +73 -0
  821. package/_types/utils/rpc.d.ts.map +1 -0
  822. package/_types/utils/signature/hashMessage.d.ts +6 -0
  823. package/_types/utils/signature/hashMessage.d.ts.map +1 -0
  824. package/_types/utils/signature/hashTypedData.d.ts +20 -0
  825. package/_types/utils/signature/hashTypedData.d.ts.map +1 -0
  826. package/_types/utils/signature/hexToSignature.d.ts +13 -0
  827. package/_types/utils/signature/hexToSignature.d.ts.map +1 -0
  828. package/_types/utils/signature/recoverAddress.d.ts +9 -0
  829. package/_types/utils/signature/recoverAddress.d.ts.map +1 -0
  830. package/_types/utils/signature/recoverMessageAddress.d.ts +9 -0
  831. package/_types/utils/signature/recoverMessageAddress.d.ts.map +1 -0
  832. package/_types/utils/signature/recoverPublicKey.d.ts +8 -0
  833. package/_types/utils/signature/recoverPublicKey.d.ts.map +1 -0
  834. package/_types/utils/signature/recoverTypedDataAddress.d.ts +13 -0
  835. package/_types/utils/signature/recoverTypedDataAddress.d.ts.map +1 -0
  836. package/_types/utils/signature/signatureToHex.d.ts +17 -0
  837. package/_types/utils/signature/signatureToHex.d.ts.map +1 -0
  838. package/_types/utils/signature/verifyMessage.d.ts +25 -0
  839. package/_types/utils/signature/verifyMessage.d.ts.map +1 -0
  840. package/_types/utils/signature/verifyTypedData.d.ts +28 -0
  841. package/_types/utils/signature/verifyTypedData.d.ts.map +1 -0
  842. package/_types/utils/stringify.d.ts +2 -0
  843. package/_types/utils/stringify.d.ts.map +1 -0
  844. package/_types/utils/transaction/assertRequest.d.ts +5 -0
  845. package/_types/utils/transaction/assertRequest.d.ts.map +1 -0
  846. package/_types/utils/transaction/assertTransaction.d.ts +5 -0
  847. package/_types/utils/transaction/assertTransaction.d.ts.map +1 -0
  848. package/_types/utils/transaction/getSerializedTransactionType.d.ts +4 -0
  849. package/_types/utils/transaction/getSerializedTransactionType.d.ts.map +1 -0
  850. package/_types/utils/transaction/getTransactionType.d.ts +4 -0
  851. package/_types/utils/transaction/getTransactionType.d.ts.map +1 -0
  852. package/_types/utils/transaction/parseTransaction.d.ts +9 -0
  853. package/_types/utils/transaction/parseTransaction.d.ts.map +1 -0
  854. package/_types/utils/transaction/serializeAccessList.d.ts +5 -0
  855. package/_types/utils/transaction/serializeAccessList.d.ts.map +1 -0
  856. package/_types/utils/transaction/serializeTransaction.d.ts +7 -0
  857. package/_types/utils/transaction/serializeTransaction.d.ts.map +1 -0
  858. package/_types/utils/typedData.d.ts +13 -0
  859. package/_types/utils/typedData.d.ts.map +1 -0
  860. package/_types/utils/uid.d.ts +2 -0
  861. package/_types/utils/uid.d.ts.map +1 -0
  862. package/_types/utils/unit/formatEther.d.ts +2 -0
  863. package/_types/utils/unit/formatEther.d.ts.map +1 -0
  864. package/_types/utils/unit/formatGwei.d.ts +2 -0
  865. package/_types/utils/unit/formatGwei.d.ts.map +1 -0
  866. package/_types/utils/unit/formatUnits.d.ts +2 -0
  867. package/_types/utils/unit/formatUnits.d.ts.map +1 -0
  868. package/_types/utils/unit/parseEther.d.ts +2 -0
  869. package/_types/utils/unit/parseEther.d.ts.map +1 -0
  870. package/_types/utils/unit/parseGwei.d.ts +2 -0
  871. package/_types/utils/unit/parseGwei.d.ts.map +1 -0
  872. package/_types/utils/unit/parseUnits.d.ts +2 -0
  873. package/_types/utils/unit/parseUnits.d.ts.map +1 -0
  874. package/_types/utils/wait.d.ts +2 -0
  875. package/_types/utils/wait.d.ts.map +1 -0
  876. package/_types/wallet/index.d.ts +11 -0
  877. package/_types/wallet/index.d.ts.map +1 -0
  878. package/_types/window/window.d.ts +2 -0
  879. package/_types/window/window.d.ts.map +1 -0
  880. package/{abi.ts → abi/index.ts} +15 -13
  881. package/abi/package.json +6 -0
  882. package/accounts/package.json +6 -0
  883. package/actions/package.json +6 -0
  884. package/chains/package.json +6 -0
  885. package/chains/{utils.ts → utils/index.ts} +6 -6
  886. package/chains/utils/package.json +6 -0
  887. package/clients/package.json +6 -0
  888. package/{contract.ts → contract/index.ts} +27 -25
  889. package/contract/package.json +6 -0
  890. package/{ens.ts → ens/index.ts} +8 -8
  891. package/ens/package.json +6 -0
  892. package/errors/version.ts +1 -1
  893. package/package.json +37 -34
  894. package/{public.ts → public/index.ts} +30 -28
  895. package/public/package.json +6 -0
  896. package/test/index.ts +85 -0
  897. package/test/package.json +6 -0
  898. package/utils/package.json +6 -0
  899. package/{wallet.ts → wallet/index.ts} +15 -10
  900. package/wallet/package.json +6 -0
  901. package/window/package.json +6 -0
  902. package/window/window.ts +1 -0
  903. package/_cjs/_test/generated.js +0 -360
  904. package/_cjs/_test/generated.js.map +0 -1
  905. package/_cjs/abi.js.map +0 -1
  906. package/_cjs/chains/utils.js.map +0 -1
  907. package/_cjs/contract.js.map +0 -1
  908. package/_cjs/ens.js.map +0 -1
  909. package/_cjs/public.js.map +0 -1
  910. package/_cjs/test.js.map +0 -1
  911. package/_cjs/wallet.js.map +0 -1
  912. package/_cjs/window.js.map +0 -1
  913. package/_esm/_test/generated.js +0 -388
  914. package/_esm/_test/generated.js.map +0 -1
  915. package/_esm/abi.js +0 -6
  916. package/_esm/abi.js.map +0 -1
  917. package/_esm/chains/utils.js +0 -5
  918. package/_esm/chains/utils.js.map +0 -1
  919. package/_esm/contract.js +0 -25
  920. package/_esm/contract.js.map +0 -1
  921. package/_esm/ens.js +0 -9
  922. package/_esm/ens.js.map +0 -1
  923. package/_esm/public.js +0 -29
  924. package/_esm/public.js.map +0 -1
  925. package/_esm/test.js +0 -29
  926. package/_esm/test.js.map +0 -1
  927. package/_esm/wallet.js +0 -11
  928. package/_esm/wallet.js.map +0 -1
  929. package/_esm/window.js +0 -2
  930. package/_esm/window.js.map +0 -1
  931. package/_test/generated.ts +0 -407
  932. package/test.ts +0 -83
  933. package/window.ts +0 -1
@@ -0,0 +1,1199 @@
1
+ import type { Abi, AbiEvent } from 'abitype';
2
+ import { type GetEnsAddressParameters, type GetEnsAddressReturnType } from '../../actions/ens/getEnsAddress.js';
3
+ import { type GetEnsAvatarParameters, type GetEnsAvatarReturnType } from '../../actions/ens/getEnsAvatar.js';
4
+ import { type GetEnsNameParameters, type GetEnsNameReturnType } from '../../actions/ens/getEnsName.js';
5
+ import { type GetEnsResolverParameters, type GetEnsResolverReturnType } from '../../actions/ens/getEnsResolver.js';
6
+ import { type GetEnsTextParameters, type GetEnsTextReturnType } from '../../actions/ens/getEnsText.js';
7
+ import { type CallParameters, type CallReturnType } from '../../actions/public/call.js';
8
+ import { type CreateBlockFilterReturnType } from '../../actions/public/createBlockFilter.js';
9
+ import { type CreateContractEventFilterParameters, type CreateContractEventFilterReturnType } from '../../actions/public/createContractEventFilter.js';
10
+ import { type CreateEventFilterParameters, type CreateEventFilterReturnType } from '../../actions/public/createEventFilter.js';
11
+ import { type CreatePendingTransactionFilterReturnType } from '../../actions/public/createPendingTransactionFilter.js';
12
+ import { type EstimateContractGasParameters, type EstimateContractGasReturnType } from '../../actions/public/estimateContractGas.js';
13
+ import { type EstimateFeesPerGasParameters, type EstimateFeesPerGasReturnType } from '../../actions/public/estimateFeesPerGas.js';
14
+ import { type EstimateGasParameters, type EstimateGasReturnType } from '../../actions/public/estimateGas.js';
15
+ import { type EstimateMaxPriorityFeePerGasParameters, type EstimateMaxPriorityFeePerGasReturnType } from '../../actions/public/estimateMaxPriorityFeePerGas.js';
16
+ import { type GetBalanceParameters, type GetBalanceReturnType } from '../../actions/public/getBalance.js';
17
+ import { type GetBlockParameters, type GetBlockReturnType } from '../../actions/public/getBlock.js';
18
+ import { type GetBlockNumberParameters, type GetBlockNumberReturnType } from '../../actions/public/getBlockNumber.js';
19
+ import { type GetBlockTransactionCountParameters, type GetBlockTransactionCountReturnType } from '../../actions/public/getBlockTransactionCount.js';
20
+ import { type GetBytecodeParameters, type GetBytecodeReturnType } from '../../actions/public/getBytecode.js';
21
+ import { type GetChainIdReturnType } from '../../actions/public/getChainId.js';
22
+ import { type GetFeeHistoryParameters, type GetFeeHistoryReturnType } from '../../actions/public/getFeeHistory.js';
23
+ import { type GetFilterChangesParameters, type GetFilterChangesReturnType } from '../../actions/public/getFilterChanges.js';
24
+ import { type GetFilterLogsParameters, type GetFilterLogsReturnType } from '../../actions/public/getFilterLogs.js';
25
+ import { type GetGasPriceReturnType } from '../../actions/public/getGasPrice.js';
26
+ import { type GetLogsParameters, type GetLogsReturnType } from '../../actions/public/getLogs.js';
27
+ import { type GetStorageAtParameters, type GetStorageAtReturnType } from '../../actions/public/getStorageAt.js';
28
+ import { type GetTransactionParameters, type GetTransactionReturnType } from '../../actions/public/getTransaction.js';
29
+ import { type GetTransactionConfirmationsParameters, type GetTransactionConfirmationsReturnType } from '../../actions/public/getTransactionConfirmations.js';
30
+ import { type GetTransactionCountParameters, type GetTransactionCountReturnType } from '../../actions/public/getTransactionCount.js';
31
+ import { type GetTransactionReceiptParameters, type GetTransactionReceiptReturnType } from '../../actions/public/getTransactionReceipt.js';
32
+ import { type MulticallParameters, type MulticallReturnType } from '../../actions/public/multicall.js';
33
+ import { type ReadContractParameters, type ReadContractReturnType } from '../../actions/public/readContract.js';
34
+ import { type SimulateContractParameters, type SimulateContractReturnType } from '../../actions/public/simulateContract.js';
35
+ import { type UninstallFilterParameters, type UninstallFilterReturnType } from '../../actions/public/uninstallFilter.js';
36
+ import { type VerifyMessageParameters, type VerifyMessageReturnType } from '../../actions/public/verifyMessage.js';
37
+ import { type VerifyTypedDataParameters, type VerifyTypedDataReturnType } from '../../actions/public/verifyTypedData.js';
38
+ import { type WaitForTransactionReceiptParameters, type WaitForTransactionReceiptReturnType } from '../../actions/public/waitForTransactionReceipt.js';
39
+ import { type WatchBlockNumberParameters, type WatchBlockNumberReturnType } from '../../actions/public/watchBlockNumber.js';
40
+ import { type WatchBlocksParameters, type WatchBlocksReturnType } from '../../actions/public/watchBlocks.js';
41
+ import { type WatchContractEventParameters, type WatchContractEventReturnType } from '../../actions/public/watchContractEvent.js';
42
+ import { type WatchEventParameters, type WatchEventReturnType } from '../../actions/public/watchEvent.js';
43
+ import { type WatchPendingTransactionsParameters, type WatchPendingTransactionsReturnType } from '../../actions/public/watchPendingTransactions.js';
44
+ import { type PrepareTransactionRequestParameters, type PrepareTransactionRequestReturnType } from '../../actions/wallet/prepareTransactionRequest.js';
45
+ import { type SendRawTransactionParameters, type SendRawTransactionReturnType } from '../../actions/wallet/sendRawTransaction.js';
46
+ import type { Account } from '../../types/account.js';
47
+ import type { BlockNumber, BlockTag } from '../../types/block.js';
48
+ import type { Chain } from '../../types/chain.js';
49
+ import type { ContractFunctionConfig, MaybeAbiEventName, MaybeExtractEventArgsFromAbi } from '../../types/contract.js';
50
+ import type { FeeValuesType } from '../../types/fee.js';
51
+ import type { FilterType } from '../../types/filter.js';
52
+ import type { Client } from '../createClient.js';
53
+ import type { Transport } from '../transports/createTransport.js';
54
+ export type PublicActions<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined> = {
55
+ /**
56
+ * Executes a new message call immediately without submitting a transaction to the network.
57
+ *
58
+ * - Docs: https://viem.sh/docs/actions/public/call.html
59
+ * - JSON-RPC Methods: [`eth_call`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_call)
60
+ *
61
+ * @param args - {@link CallParameters}
62
+ * @returns The call data. {@link CallReturnType}
63
+ *
64
+ * @example
65
+ * import { createPublicClient, http } from 'viem'
66
+ * import { mainnet } from 'viem/chains'
67
+ *
68
+ * const client = createPublicClient({
69
+ * chain: mainnet,
70
+ * transport: http(),
71
+ * })
72
+ * const data = await client.call({
73
+ * account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
74
+ * data: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
75
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
76
+ * })
77
+ */
78
+ call: (parameters: CallParameters<TChain>) => Promise<CallReturnType>;
79
+ /**
80
+ * Creates a Filter to listen for new block hashes that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html).
81
+ *
82
+ * - Docs: https://viem.sh/docs/actions/public/createBlockFilter.html
83
+ * - JSON-RPC Methods: [`eth_newBlockFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newBlockFilter)
84
+ *
85
+ * @returns Filter. {@link CreateBlockFilterReturnType}
86
+ *
87
+ * @example
88
+ * import { createPublicClient, createBlockFilter, http } from 'viem'
89
+ * import { mainnet } from 'viem/chains'
90
+ *
91
+ * const client = createPublicClient({
92
+ * chain: mainnet,
93
+ * transport: http(),
94
+ * })
95
+ * const filter = await createBlockFilter(client)
96
+ * // { id: "0x345a6572337856574a76364e457a4366", type: 'block' }
97
+ */
98
+ createBlockFilter: () => Promise<CreateBlockFilterReturnType>;
99
+ /**
100
+ * Creates a Filter to retrieve event logs that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html) or [`getFilterLogs`](https://viem.sh/docs/actions/public/getFilterLogs.html).
101
+ *
102
+ * - Docs: https://viem.sh/docs/contract/createContractEventFilter.html
103
+ *
104
+ * @param args - {@link CreateContractEventFilterParameters}
105
+ * @returns [`Filter`](https://viem.sh/docs/glossary/types.html#filter). {@link CreateContractEventFilterReturnType}
106
+ *
107
+ * @example
108
+ * import { createPublicClient, http, parseAbi } from 'viem'
109
+ * import { mainnet } from 'viem/chains'
110
+ *
111
+ * const client = createPublicClient({
112
+ * chain: mainnet,
113
+ * transport: http(),
114
+ * })
115
+ * const filter = await client.createContractEventFilter({
116
+ * abi: parseAbi(['event Transfer(address indexed, address indexed, uint256)']),
117
+ * })
118
+ */
119
+ createContractEventFilter: <const TAbi extends Abi | readonly unknown[], TEventName extends string | undefined, TArgs extends MaybeExtractEventArgsFromAbi<TAbi, TEventName> | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends BlockNumber | BlockTag | undefined = undefined, TToBlock extends BlockNumber | BlockTag | undefined = undefined>(args: CreateContractEventFilterParameters<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>) => Promise<CreateContractEventFilterReturnType<TAbi, TEventName, TArgs, TStrict, TFromBlock, TToBlock>>;
120
+ /**
121
+ * Creates a [`Filter`](https://viem.sh/docs/glossary/types.html#filter) to listen for new events that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html).
122
+ *
123
+ * - Docs: https://viem.sh/docs/actions/public/createEventFilter.html
124
+ * - JSON-RPC Methods: [`eth_newFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newfilter)
125
+ *
126
+ * @param args - {@link CreateEventFilterParameters}
127
+ * @returns [`Filter`](https://viem.sh/docs/glossary/types.html#filter). {@link CreateEventFilterReturnType}
128
+ *
129
+ * @example
130
+ * import { createPublicClient, http } from 'viem'
131
+ * import { mainnet } from 'viem/chains'
132
+ *
133
+ * const client = createPublicClient({
134
+ * chain: mainnet,
135
+ * transport: http(),
136
+ * })
137
+ * const filter = await client.createEventFilter({
138
+ * address: '0xfba3912ca04dd458c843e2ee08967fc04f3579c2',
139
+ * })
140
+ */
141
+ createEventFilter: <const TAbiEvent extends AbiEvent | undefined = undefined, const TAbiEvents extends readonly AbiEvent[] | readonly unknown[] | undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends BlockNumber | BlockTag | undefined = undefined, TToBlock extends BlockNumber | BlockTag | undefined = undefined, _EventName extends string | undefined = MaybeAbiEventName<TAbiEvent>, _Args extends MaybeExtractEventArgsFromAbi<TAbiEvents, _EventName> | undefined = undefined>(args?: CreateEventFilterParameters<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>) => Promise<CreateEventFilterReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock, _EventName, _Args>>;
142
+ /**
143
+ * Creates a Filter to listen for new pending transaction hashes that can be used with [`getFilterChanges`](https://viem.sh/docs/actions/public/getFilterChanges.html).
144
+ *
145
+ * - Docs: https://viem.sh/docs/actions/public/createPendingTransactionFilter.html
146
+ * - JSON-RPC Methods: [`eth_newPendingTransactionFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newpendingtransactionfilter)
147
+ *
148
+ * @returns [`Filter`](https://viem.sh/docs/glossary/types.html#filter). {@link CreateBlockFilterReturnType}
149
+ *
150
+ * @example
151
+ * import { createPublicClient, http } from 'viem'
152
+ * import { mainnet } from 'viem/chains'
153
+ *
154
+ * const client = createPublicClient({
155
+ * chain: mainnet,
156
+ * transport: http(),
157
+ * })
158
+ * const filter = await client.createPendingTransactionFilter()
159
+ * // { id: "0x345a6572337856574a76364e457a4366", type: 'transaction' }
160
+ */
161
+ createPendingTransactionFilter: () => Promise<CreatePendingTransactionFilterReturnType>;
162
+ /**
163
+ * Estimates the gas required to successfully execute a contract write function call.
164
+ *
165
+ * - Docs: https://viem.sh/docs/contract/estimateContractGas.html
166
+ *
167
+ * @remarks
168
+ * Internally, uses a [Public Client](https://viem.sh/docs/clients/public.html) to call the [`estimateGas` action](https://viem.sh/docs/actions/public/estimateGas.html) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData.html).
169
+ *
170
+ * @param args - {@link EstimateContractGasParameters}
171
+ * @returns The gas estimate (in wei). {@link EstimateContractGasReturnType}
172
+ *
173
+ * @example
174
+ * import { createPublicClient, http, parseAbi } from 'viem'
175
+ * import { mainnet } from 'viem/chains'
176
+ *
177
+ * const client = createPublicClient({
178
+ * chain: mainnet,
179
+ * transport: http(),
180
+ * })
181
+ * const gas = await client.estimateContractGas({
182
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
183
+ * abi: parseAbi(['function mint() public']),
184
+ * functionName: 'mint',
185
+ * account: '0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266',
186
+ * })
187
+ */
188
+ estimateContractGas: <TChain extends Chain | undefined, const TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: EstimateContractGasParameters<TAbi, TFunctionName, TChain, TAccount>) => Promise<EstimateContractGasReturnType>;
189
+ /**
190
+ * Estimates the gas necessary to complete a transaction without submitting it to the network.
191
+ *
192
+ * - Docs: https://viem.sh/docs/actions/public/estimateGas.html
193
+ * - JSON-RPC Methods: [`eth_estimateGas`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_estimategas)
194
+ *
195
+ * @param args - {@link EstimateGasParameters}
196
+ * @returns The gas estimate (in wei). {@link EstimateGasReturnType}
197
+ *
198
+ * @example
199
+ * import { createPublicClient, http, parseEther } from 'viem'
200
+ * import { mainnet } from 'viem/chains'
201
+ *
202
+ * const client = createPublicClient({
203
+ * chain: mainnet,
204
+ * transport: http(),
205
+ * })
206
+ * const gasEstimate = await client.estimateGas({
207
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
208
+ * to: '0x70997970c51812dc3a010c7d01b50e0d17dc79c8',
209
+ * value: parseEther('1'),
210
+ * })
211
+ */
212
+ estimateGas: (args: EstimateGasParameters<TChain, TAccount>) => Promise<EstimateGasReturnType>;
213
+ /**
214
+ * Returns the balance of an address in wei.
215
+ *
216
+ * - Docs: https://viem.sh/docs/actions/public/getBalance.html
217
+ * - JSON-RPC Methods: [`eth_getBalance`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getbalance)
218
+ *
219
+ * @remarks
220
+ * You can convert the balance to ether units with [`formatEther`](https://viem.sh/docs/utilities/formatEther.html).
221
+ *
222
+ * ```ts
223
+ * const balance = await getBalance(client, {
224
+ * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
225
+ * blockTag: 'safe'
226
+ * })
227
+ * const balanceAsEther = formatEther(balance)
228
+ * // "6.942"
229
+ * ```
230
+ *
231
+ * @param args - {@link GetBalanceParameters}
232
+ * @returns The balance of the address in wei. {@link GetBalanceReturnType}
233
+ *
234
+ * @example
235
+ * import { createPublicClient, http } from 'viem'
236
+ * import { mainnet } from 'viem/chains'
237
+ *
238
+ * const client = createPublicClient({
239
+ * chain: mainnet,
240
+ * transport: http(),
241
+ * })
242
+ * const balance = await client.getBalance({
243
+ * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
244
+ * })
245
+ * // 10000000000000000000000n (wei)
246
+ */
247
+ getBalance: (args: GetBalanceParameters) => Promise<GetBalanceReturnType>;
248
+ /**
249
+ * Returns information about a block at a block number, hash, or tag.
250
+ *
251
+ * - Docs: https://viem.sh/docs/actions/public/getBlock.html
252
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks/fetching-blocks
253
+ * - JSON-RPC Methods:
254
+ * - Calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) for `blockNumber` & `blockTag`.
255
+ * - Calls [`eth_getBlockByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbyhash) for `blockHash`.
256
+ *
257
+ * @param args - {@link GetBlockParameters}
258
+ * @returns Information about the block. {@link GetBlockReturnType}
259
+ *
260
+ * @example
261
+ * import { createPublicClient, http } from 'viem'
262
+ * import { mainnet } from 'viem/chains'
263
+ *
264
+ * const client = createPublicClient({
265
+ * chain: mainnet,
266
+ * transport: http(),
267
+ * })
268
+ * const block = await client.getBlock()
269
+ */
270
+ getBlock: <TIncludeTransactions extends boolean = false, TBlockTag extends BlockTag = 'latest'>(args?: GetBlockParameters<TIncludeTransactions, TBlockTag>) => Promise<GetBlockReturnType<TChain, TIncludeTransactions, TBlockTag>>;
271
+ /**
272
+ * Returns the number of the most recent block seen.
273
+ *
274
+ * - Docs: https://viem.sh/docs/actions/public/getBlockNumber.html
275
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks/fetching-blocks
276
+ * - JSON-RPC Methods: [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber)
277
+ *
278
+ * @param args - {@link GetBlockNumberParameters}
279
+ * @returns The number of the block. {@link GetBlockNumberReturnType}
280
+ *
281
+ * @example
282
+ * import { createPublicClient, http } from 'viem'
283
+ * import { mainnet } from 'viem/chains'
284
+ *
285
+ * const client = createPublicClient({
286
+ * chain: mainnet,
287
+ * transport: http(),
288
+ * })
289
+ * const blockNumber = await client.getBlockNumber()
290
+ * // 69420n
291
+ */
292
+ getBlockNumber: (args?: GetBlockNumberParameters) => Promise<GetBlockNumberReturnType>;
293
+ /**
294
+ * Returns the number of Transactions at a block number, hash, or tag.
295
+ *
296
+ * - Docs: https://viem.sh/docs/actions/public/getBlockTransactionCount.html
297
+ * - JSON-RPC Methods:
298
+ * - Calls [`eth_getBlockTransactionCountByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblocktransactioncountbynumber) for `blockNumber` & `blockTag`.
299
+ * - Calls [`eth_getBlockTransactionCountByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblocktransactioncountbyhash) for `blockHash`.
300
+ *
301
+ * @param args - {@link GetBlockTransactionCountParameters}
302
+ * @returns The block transaction count. {@link GetBlockTransactionCountReturnType}
303
+ *
304
+ * @example
305
+ * import { createPublicClient, http } from 'viem'
306
+ * import { mainnet } from 'viem/chains'
307
+ *
308
+ * const client = createPublicClient({
309
+ * chain: mainnet,
310
+ * transport: http(),
311
+ * })
312
+ * const count = await client.getBlockTransactionCount()
313
+ */
314
+ getBlockTransactionCount: (args?: GetBlockTransactionCountParameters) => Promise<GetBlockTransactionCountReturnType>;
315
+ /**
316
+ * Retrieves the bytecode at an address.
317
+ *
318
+ * - Docs: https://viem.sh/docs/contract/getBytecode.html
319
+ * - JSON-RPC Methods: [`eth_getCode`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getcode)
320
+ *
321
+ * @param args - {@link GetBytecodeParameters}
322
+ * @returns The contract's bytecode. {@link GetBytecodeReturnType}
323
+ *
324
+ * @example
325
+ * import { createPublicClient, http } from 'viem'
326
+ * import { mainnet } from 'viem/chains'
327
+ *
328
+ * const client = createPublicClient({
329
+ * chain: mainnet,
330
+ * transport: http(),
331
+ * })
332
+ * const code = await client.getBytecode({
333
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
334
+ * })
335
+ */
336
+ getBytecode: (args: GetBytecodeParameters) => Promise<GetBytecodeReturnType>;
337
+ /**
338
+ * Returns the chain ID associated with the current network.
339
+ *
340
+ * - Docs: https://viem.sh/docs/actions/public/getChainId.html
341
+ * - JSON-RPC Methods: [`eth_chainId`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_chainid)
342
+ *
343
+ * @returns The current chain ID. {@link GetChainIdReturnType}
344
+ *
345
+ * @example
346
+ * import { createPublicClient, http } from 'viem'
347
+ * import { mainnet } from 'viem/chains'
348
+ *
349
+ * const client = createPublicClient({
350
+ * chain: mainnet,
351
+ * transport: http(),
352
+ * })
353
+ * const chainId = await client.getChainId()
354
+ * // 1
355
+ */
356
+ getChainId: () => Promise<GetChainIdReturnType>;
357
+ /**
358
+ * Gets address for ENS name.
359
+ *
360
+ * - Docs: https://viem.sh/docs/ens/actions/getEnsAddress.html
361
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/ens
362
+ *
363
+ * @remarks
364
+ * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
365
+ *
366
+ * Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
367
+ *
368
+ * @param args - {@link GetEnsAddressParameters}
369
+ * @returns Address for ENS name or `null` if not found. {@link GetEnsAddressReturnType}
370
+ *
371
+ * @example
372
+ * import { createPublicClient, http } from 'viem'
373
+ * import { mainnet } from 'viem/chains'
374
+ * import { normalize } from 'viem/ens'
375
+ *
376
+ * const client = createPublicClient({
377
+ * chain: mainnet,
378
+ * transport: http(),
379
+ * })
380
+ * const ensAddress = await client.getEnsAddress({
381
+ * name: normalize('wagmi-dev.eth'),
382
+ * })
383
+ * // '0xd2135CfB216b74109775236E36d4b433F1DF507B'
384
+ */
385
+ getEnsAddress: (args: GetEnsAddressParameters) => Promise<GetEnsAddressReturnType>;
386
+ /**
387
+ * Gets the avatar of an ENS name.
388
+ *
389
+ * - Docs: https://viem.sh/docs/ens/actions/getEnsAvatar.html
390
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/ens
391
+ *
392
+ * @remarks
393
+ * Calls [`getEnsText`](https://viem.sh/docs/ens/actions/getEnsText.html) with `key` set to `'avatar'`.
394
+ *
395
+ * Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
396
+ *
397
+ * @param args - {@link GetEnsAvatarParameters}
398
+ * @returns Avatar URI or `null` if not found. {@link GetEnsAvatarReturnType}
399
+ *
400
+ * @example
401
+ * import { createPublicClient, http } from 'viem'
402
+ * import { mainnet } from 'viem/chains'
403
+ * import { normalize } from 'viem/ens'
404
+ *
405
+ * const client = createPublicClient({
406
+ * chain: mainnet,
407
+ * transport: http(),
408
+ * })
409
+ * const ensAvatar = await client.getEnsAvatar({
410
+ * name: normalize('wagmi-dev.eth'),
411
+ * })
412
+ * // 'https://ipfs.io/ipfs/Qma8mnp6xV3J2cRNf3mTth5C8nV11CAnceVinc3y8jSbio'
413
+ */
414
+ getEnsAvatar: (args: GetEnsAvatarParameters) => Promise<GetEnsAvatarReturnType>;
415
+ /**
416
+ * Gets primary name for specified address.
417
+ *
418
+ * - Docs: https://viem.sh/docs/ens/actions/getEnsName.html
419
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/ens
420
+ *
421
+ * @remarks
422
+ * Calls `reverse(bytes)` on ENS Universal Resolver Contract to "reverse resolve" the address to the primary ENS name.
423
+ *
424
+ * @param args - {@link GetEnsNameParameters}
425
+ * @returns Name or `null` if not found. {@link GetEnsNameReturnType}
426
+ *
427
+ * @example
428
+ * import { createPublicClient, http } from 'viem'
429
+ * import { mainnet } from 'viem/chains'
430
+ *
431
+ * const client = createPublicClient({
432
+ * chain: mainnet,
433
+ * transport: http(),
434
+ * })
435
+ * const ensName = await client.getEnsName({
436
+ * address: '0xd2135CfB216b74109775236E36d4b433F1DF507B',
437
+ * })
438
+ * // 'wagmi-dev.eth'
439
+ */
440
+ getEnsName: (args: GetEnsNameParameters) => Promise<GetEnsNameReturnType>;
441
+ /**
442
+ * Gets resolver for ENS name.
443
+ *
444
+ * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver.html
445
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/ens
446
+ *
447
+ * @remarks
448
+ * Calls `findResolver(bytes)` on ENS Universal Resolver Contract to retrieve the resolver of an ENS name.
449
+ *
450
+ * Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
451
+ *
452
+ * @param args - {@link GetEnsResolverParameters}
453
+ * @returns Address for ENS resolver. {@link GetEnsResolverReturnType}
454
+ *
455
+ * @example
456
+ * import { createPublicClient, http } from 'viem'
457
+ * import { mainnet } from 'viem/chains'
458
+ * import { normalize } from 'viem/ens'
459
+ *
460
+ * const client = createPublicClient({
461
+ * chain: mainnet,
462
+ * transport: http(),
463
+ * })
464
+ * const resolverAddress = await client.getEnsResolver({
465
+ * name: normalize('wagmi-dev.eth'),
466
+ * })
467
+ * // '0x4976fb03C32e5B8cfe2b6cCB31c09Ba78EBaBa41'
468
+ */
469
+ getEnsResolver: (args: GetEnsResolverParameters) => Promise<GetEnsResolverReturnType>;
470
+ /**
471
+ * Gets a text record for specified ENS name.
472
+ *
473
+ * - Docs: https://viem.sh/docs/ens/actions/getEnsResolver.html
474
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/ens
475
+ *
476
+ * @remarks
477
+ * Calls `resolve(bytes, bytes)` on ENS Universal Resolver Contract.
478
+ *
479
+ * Since ENS names prohibit certain forbidden characters (e.g. underscore) and have other validation rules, you likely want to [normalize ENS names](https://docs.ens.domains/contract-api-reference/name-processing#normalising-names) with [UTS-46 normalization](https://unicode.org/reports/tr46) before passing them to `getEnsAddress`. You can use the built-in [`normalize`](https://viem.sh/docs/ens/utilities/normalize.html) function for this.
480
+ *
481
+ * @param args - {@link GetEnsTextParameters}
482
+ * @returns Address for ENS resolver. {@link GetEnsTextReturnType}
483
+ *
484
+ * @example
485
+ * import { createPublicClient, http } from 'viem'
486
+ * import { mainnet } from 'viem/chains'
487
+ * import { normalize } from 'viem/ens'
488
+ *
489
+ * const client = createPublicClient({
490
+ * chain: mainnet,
491
+ * transport: http(),
492
+ * })
493
+ * const twitterRecord = await client.getEnsText({
494
+ * name: normalize('wagmi-dev.eth'),
495
+ * key: 'com.twitter',
496
+ * })
497
+ * // 'wagmi_sh'
498
+ */
499
+ getEnsText: (args: GetEnsTextParameters) => Promise<GetEnsTextReturnType>;
500
+ /**
501
+ * Returns a collection of historical gas information.
502
+ *
503
+ * - Docs: https://viem.sh/docs/actions/public/getFeeHistory.html
504
+ * - JSON-RPC Methods: [`eth_feeHistory`](https://docs.alchemy.com/reference/eth-feehistory)
505
+ *
506
+ * @param args - {@link GetFeeHistoryParameters}
507
+ * @returns The gas estimate (in wei). {@link GetFeeHistoryReturnType}
508
+ *
509
+ * @example
510
+ * import { createPublicClient, http } from 'viem'
511
+ * import { mainnet } from 'viem/chains'
512
+ *
513
+ * const client = createPublicClient({
514
+ * chain: mainnet,
515
+ * transport: http(),
516
+ * })
517
+ * const feeHistory = await client.getFeeHistory({
518
+ * blockCount: 4,
519
+ * rewardPercentiles: [25, 75],
520
+ * })
521
+ */
522
+ getFeeHistory: (args: GetFeeHistoryParameters) => Promise<GetFeeHistoryReturnType>;
523
+ /**
524
+ * Returns an estimate for the fees per gas for a transaction to be included
525
+ * in the next block.
526
+ *
527
+ * - Docs: https://viem.sh/docs/actions/public/estimateFeesPerGas.html
528
+ *
529
+ * @param client - Client to use
530
+ * @param parameters - {@link EstimateFeesPerGasParameters}
531
+ * @returns An estimate (in wei) for the fees per gas. {@link EstimateFeesPerGasReturnType}
532
+ *
533
+ * @example
534
+ * import { createPublicClient, http } from 'viem'
535
+ * import { mainnet } from 'viem/chains'
536
+ *
537
+ * const client = createPublicClient({
538
+ * chain: mainnet,
539
+ * transport: http(),
540
+ * })
541
+ * const maxPriorityFeePerGas = await client.estimateFeesPerGas()
542
+ * // { maxFeePerGas: ..., maxPriorityFeePerGas: ... }
543
+ */
544
+ estimateFeesPerGas: <TChainOverride extends Chain | undefined, TType extends FeeValuesType = 'eip1559'>(args?: EstimateFeesPerGasParameters<TChain, TChainOverride, TType>) => Promise<EstimateFeesPerGasReturnType>;
545
+ /**
546
+ * Returns a list of logs or hashes based on a [Filter](/docs/glossary/terms#filter) since the last time it was called.
547
+ *
548
+ * - Docs: https://viem.sh/docs/actions/public/getFilterChanges.html
549
+ * - JSON-RPC Methods: [`eth_getFilterChanges`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterchanges)
550
+ *
551
+ * @remarks
552
+ * A Filter can be created from the following actions:
553
+ *
554
+ * - [`createBlockFilter`](https://viem.sh/docs/actions/public/createBlockFilter.html)
555
+ * - [`createContractEventFilter`](https://viem.sh/docs/contract/createContractEventFilter.html)
556
+ * - [`createEventFilter`](https://viem.sh/docs/actions/public/createEventFilter.html)
557
+ * - [`createPendingTransactionFilter`](https://viem.sh/docs/actions/public/createPendingTransactionFilter.html)
558
+ *
559
+ * Depending on the type of filter, the return value will be different:
560
+ *
561
+ * - If the filter was created with `createContractEventFilter` or `createEventFilter`, it returns a list of logs.
562
+ * - If the filter was created with `createPendingTransactionFilter`, it returns a list of transaction hashes.
563
+ * - If the filter was created with `createBlockFilter`, it returns a list of block hashes.
564
+ *
565
+ * @param args - {@link GetFilterChangesParameters}
566
+ * @returns Logs or hashes. {@link GetFilterChangesReturnType}
567
+ *
568
+ * @example
569
+ * // Blocks
570
+ * import { createPublicClient, http } from 'viem'
571
+ * import { mainnet } from 'viem/chains'
572
+ *
573
+ * const client = createPublicClient({
574
+ * chain: mainnet,
575
+ * transport: http(),
576
+ * })
577
+ * const filter = await client.createBlockFilter()
578
+ * const hashes = await client.getFilterChanges({ filter })
579
+ *
580
+ * @example
581
+ * // Contract Events
582
+ * import { createPublicClient, http, parseAbi } from 'viem'
583
+ * import { mainnet } from 'viem/chains'
584
+ *
585
+ * const client = createPublicClient({
586
+ * chain: mainnet,
587
+ * transport: http(),
588
+ * })
589
+ * const filter = await client.createContractEventFilter({
590
+ * address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
591
+ * abi: parseAbi(['event Transfer(address indexed, address indexed, uint256)']),
592
+ * eventName: 'Transfer',
593
+ * })
594
+ * const logs = await client.getFilterChanges({ filter })
595
+ *
596
+ * @example
597
+ * // Raw Events
598
+ * import { createPublicClient, http, parseAbiItem } from 'viem'
599
+ * import { mainnet } from 'viem/chains'
600
+ *
601
+ * const client = createPublicClient({
602
+ * chain: mainnet,
603
+ * transport: http(),
604
+ * })
605
+ * const filter = await client.createEventFilter({
606
+ * address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
607
+ * event: parseAbiItem('event Transfer(address indexed, address indexed, uint256)'),
608
+ * })
609
+ * const logs = await client.getFilterChanges({ filter })
610
+ *
611
+ * @example
612
+ * // Transactions
613
+ * import { createPublicClient, http } from 'viem'
614
+ * import { mainnet } from 'viem/chains'
615
+ *
616
+ * const client = createPublicClient({
617
+ * chain: mainnet,
618
+ * transport: http(),
619
+ * })
620
+ * const filter = await client.createPendingTransactionFilter()
621
+ * const hashes = await client.getFilterChanges({ filter })
622
+ */
623
+ getFilterChanges: <TFilterType extends FilterType, const TAbi extends Abi | readonly unknown[] | undefined, TEventName extends string | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends BlockNumber | BlockTag | undefined = undefined, TToBlock extends BlockNumber | BlockTag | undefined = undefined>(args: GetFilterChangesParameters<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>) => Promise<GetFilterChangesReturnType<TFilterType, TAbi, TEventName, TStrict, TFromBlock, TToBlock>>;
624
+ /**
625
+ * Returns a list of event logs since the filter was created.
626
+ *
627
+ * - Docs: https://viem.sh/docs/actions/public/getFilterLogs.html
628
+ * - JSON-RPC Methods: [`eth_getFilterLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterlogs)
629
+ *
630
+ * @remarks
631
+ * `getFilterLogs` is only compatible with **event filters**.
632
+ *
633
+ * @param args - {@link GetFilterLogsParameters}
634
+ * @returns A list of event logs. {@link GetFilterLogsReturnType}
635
+ *
636
+ * @example
637
+ * import { createPublicClient, http, parseAbiItem } from 'viem'
638
+ * import { mainnet } from 'viem/chains'
639
+ *
640
+ * const client = createPublicClient({
641
+ * chain: mainnet,
642
+ * transport: http(),
643
+ * })
644
+ * const filter = await client.createEventFilter({
645
+ * address: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48',
646
+ * event: parseAbiItem('event Transfer(address indexed, address indexed, uint256)'),
647
+ * })
648
+ * const logs = await client.getFilterLogs({ filter })
649
+ */
650
+ getFilterLogs: <const TAbi extends Abi | readonly unknown[] | undefined, TEventName extends string | undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends BlockNumber | BlockTag | undefined = undefined, TToBlock extends BlockNumber | BlockTag | undefined = undefined>(args: GetFilterLogsParameters<TAbi, TEventName, TStrict, TFromBlock, TToBlock>) => Promise<GetFilterLogsReturnType<TAbi, TEventName, TStrict, TFromBlock, TToBlock>>;
651
+ /**
652
+ * Returns the current price of gas (in wei).
653
+ *
654
+ * - Docs: https://viem.sh/docs/actions/public/getGasPrice.html
655
+ * - JSON-RPC Methods: [`eth_gasPrice`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gasprice)
656
+ *
657
+ * @returns The gas price (in wei). {@link GetGasPriceReturnType}
658
+ *
659
+ * @example
660
+ * import { createPublicClient, http } from 'viem'
661
+ * import { mainnet } from 'viem/chains'
662
+ *
663
+ * const client = createPublicClient({
664
+ * chain: mainnet,
665
+ * transport: http(),
666
+ * })
667
+ * const gasPrice = await client.getGasPrice()
668
+ */
669
+ getGasPrice: () => Promise<GetGasPriceReturnType>;
670
+ /**
671
+ * Returns a list of event logs matching the provided parameters.
672
+ *
673
+ * - Docs: https://viem.sh/docs/actions/public/getLogs.html
674
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/filters-and-logs/event-logs
675
+ * - JSON-RPC Methods: [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs)
676
+ *
677
+ * @param args - {@link GetLogsParameters}
678
+ * @returns A list of event logs. {@link GetLogsReturnType}
679
+ *
680
+ * @example
681
+ * import { createPublicClient, http, parseAbiItem } from 'viem'
682
+ * import { mainnet } from 'viem/chains'
683
+ *
684
+ * const client = createPublicClient({
685
+ * chain: mainnet,
686
+ * transport: http(),
687
+ * })
688
+ * const logs = await client.getLogs()
689
+ */
690
+ getLogs: <const TAbiEvent extends AbiEvent | undefined = undefined, const TAbiEvents extends readonly AbiEvent[] | readonly unknown[] | undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined, TStrict extends boolean | undefined = undefined, TFromBlock extends BlockNumber | BlockTag | undefined = undefined, TToBlock extends BlockNumber | BlockTag | undefined = undefined>(args?: GetLogsParameters<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>) => Promise<GetLogsReturnType<TAbiEvent, TAbiEvents, TStrict, TFromBlock, TToBlock>>;
691
+ /**
692
+ * Returns an estimate for the max priority fee per gas (in wei) for a transaction
693
+ * to be included in the next block.
694
+ *
695
+ * - Docs: https://viem.sh/docs/actions/public/estimateMaxPriorityFeePerGas.html
696
+ *
697
+ * @param client - Client to use
698
+ * @returns An estimate (in wei) for the max priority fee per gas. {@link EstimateMaxPriorityFeePerGasReturnType}
699
+ *
700
+ * @example
701
+ * import { createPublicClient, http } from 'viem'
702
+ * import { mainnet } from 'viem/chains'
703
+ *
704
+ * const client = createPublicClient({
705
+ * chain: mainnet,
706
+ * transport: http(),
707
+ * })
708
+ * const maxPriorityFeePerGas = await client.estimateMaxPriorityFeePerGas()
709
+ * // 10000000n
710
+ */
711
+ estimateMaxPriorityFeePerGas: <TChainOverride extends Chain | undefined>(args?: EstimateMaxPriorityFeePerGasParameters<TChain, TChainOverride>) => Promise<EstimateMaxPriorityFeePerGasReturnType>;
712
+ /**
713
+ * Returns the value from a storage slot at a given address.
714
+ *
715
+ * - Docs: https://viem.sh/docs/contract/getStorageAt.html
716
+ * - JSON-RPC Methods: [`eth_getStorageAt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getstorageat)
717
+ *
718
+ * @param args - {@link GetStorageAtParameters}
719
+ * @returns The value of the storage slot. {@link GetStorageAtReturnType}
720
+ *
721
+ * @example
722
+ * import { createPublicClient, http } from 'viem'
723
+ * import { mainnet } from 'viem/chains'
724
+ * import { getStorageAt } from 'viem/contract'
725
+ *
726
+ * const client = createPublicClient({
727
+ * chain: mainnet,
728
+ * transport: http(),
729
+ * })
730
+ * const code = await client.getStorageAt({
731
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
732
+ * slot: toHex(0),
733
+ * })
734
+ */
735
+ getStorageAt: (args: GetStorageAtParameters) => Promise<GetStorageAtReturnType>;
736
+ /**
737
+ * Returns information about a [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) given a hash or block identifier.
738
+ *
739
+ * - Docs: https://viem.sh/docs/actions/public/getTransaction.html
740
+ * - Example: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions/fetching-transactions
741
+ * - JSON-RPC Methods: [`eth_getTransactionByHash`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionByHash)
742
+ *
743
+ * @param args - {@link GetTransactionParameters}
744
+ * @returns The transaction information. {@link GetTransactionReturnType}
745
+ *
746
+ * @example
747
+ * import { createPublicClient, http } from 'viem'
748
+ * import { mainnet } from 'viem/chains'
749
+ *
750
+ * const client = createPublicClient({
751
+ * chain: mainnet,
752
+ * transport: http(),
753
+ * })
754
+ * const transaction = await client.getTransaction({
755
+ * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
756
+ * })
757
+ */
758
+ getTransaction: <TBlockTag extends BlockTag = 'latest'>(args: GetTransactionParameters<TBlockTag>) => Promise<GetTransactionReturnType<TChain, TBlockTag>>;
759
+ /**
760
+ * Returns the number of blocks passed (confirmations) since the transaction was processed on a block.
761
+ *
762
+ * - Docs: https://viem.sh/docs/actions/public/getTransactionConfirmations.html
763
+ * - Example: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions/fetching-transactions
764
+ * - JSON-RPC Methods: [`eth_getTransactionConfirmations`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionConfirmations)
765
+ *
766
+ * @param args - {@link GetTransactionConfirmationsParameters}
767
+ * @returns The number of blocks passed since the transaction was processed. If confirmations is 0, then the Transaction has not been confirmed & processed yet. {@link GetTransactionConfirmationsReturnType}
768
+ *
769
+ * @example
770
+ * import { createPublicClient, http } from 'viem'
771
+ * import { mainnet } from 'viem/chains'
772
+ *
773
+ * const client = createPublicClient({
774
+ * chain: mainnet,
775
+ * transport: http(),
776
+ * })
777
+ * const confirmations = await client.getTransactionConfirmations({
778
+ * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
779
+ * })
780
+ */
781
+ getTransactionConfirmations: (args: GetTransactionConfirmationsParameters<TChain>) => Promise<GetTransactionConfirmationsReturnType>;
782
+ /**
783
+ * Returns the number of [Transactions](https://viem.sh/docs/glossary/terms.html#transaction) an Account has broadcast / sent.
784
+ *
785
+ * - Docs: https://viem.sh/docs/actions/public/getTransactionCount.html
786
+ * - JSON-RPC Methods: [`eth_getTransactionCount`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_gettransactioncount)
787
+ *
788
+ * @param args - {@link GetTransactionCountParameters}
789
+ * @returns The number of transactions an account has sent. {@link GetTransactionCountReturnType}
790
+ *
791
+ * @example
792
+ * import { createPublicClient, http } from 'viem'
793
+ * import { mainnet } from 'viem/chains'
794
+ *
795
+ * const client = createPublicClient({
796
+ * chain: mainnet,
797
+ * transport: http(),
798
+ * })
799
+ * const transactionCount = await client.getTransactionCount({
800
+ * address: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
801
+ * })
802
+ */
803
+ getTransactionCount: (args: GetTransactionCountParameters) => Promise<GetTransactionCountReturnType>;
804
+ /**
805
+ * Returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt) given a [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) hash.
806
+ *
807
+ * - Docs: https://viem.sh/docs/actions/public/getTransactionReceipt.html
808
+ * - Example: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions/fetching-transactions
809
+ * - JSON-RPC Methods: [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt)
810
+ *
811
+ * @param args - {@link GetTransactionReceiptParameters}
812
+ * @returns The transaction receipt. {@link GetTransactionReceiptReturnType}
813
+ *
814
+ * @example
815
+ * import { createPublicClient, http } from 'viem'
816
+ * import { mainnet } from 'viem/chains'
817
+ *
818
+ * const client = createPublicClient({
819
+ * chain: mainnet,
820
+ * transport: http(),
821
+ * })
822
+ * const transactionReceipt = await client.getTransactionReceipt({
823
+ * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
824
+ * })
825
+ */
826
+ getTransactionReceipt: (args: GetTransactionReceiptParameters) => Promise<GetTransactionReceiptReturnType<TChain>>;
827
+ /**
828
+ * Similar to [`readContract`](https://viem.sh/docs/contract/readContract.html), but batches up multiple functions on a contract in a single RPC call via the [`multicall3` contract](https://github.com/mds1/multicall).
829
+ *
830
+ * - Docs: https://viem.sh/docs/contract/multicall.html
831
+ *
832
+ * @param args - {@link MulticallParameters}
833
+ * @returns An array of results with accompanying status. {@link MulticallReturnType}
834
+ *
835
+ * @example
836
+ * import { createPublicClient, http, parseAbi } from 'viem'
837
+ * import { mainnet } from 'viem/chains'
838
+ *
839
+ * const client = createPublicClient({
840
+ * chain: mainnet,
841
+ * transport: http(),
842
+ * })
843
+ * const abi = parseAbi([
844
+ * 'function balanceOf(address) view returns (uint256)',
845
+ * 'function totalSupply() view returns (uint256)',
846
+ * ])
847
+ * const result = await client.multicall({
848
+ * contracts: [
849
+ * {
850
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
851
+ * abi,
852
+ * functionName: 'balanceOf',
853
+ * args: ['0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'],
854
+ * },
855
+ * {
856
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
857
+ * abi,
858
+ * functionName: 'totalSupply',
859
+ * },
860
+ * ],
861
+ * })
862
+ * // [{ result: 424122n, status: 'success' }, { result: 1000000n, status: 'success' }]
863
+ */
864
+ multicall: <TContracts extends ContractFunctionConfig[], TAllowFailure extends boolean = true>(args: MulticallParameters<TContracts, TAllowFailure>) => Promise<MulticallReturnType<TContracts, TAllowFailure>>;
865
+ /**
866
+ * Prepares a transaction request for signing.
867
+ *
868
+ * - Docs: https://viem.sh/docs/actions/wallet/prepareTransactionRequest.html
869
+ *
870
+ * @param args - {@link PrepareTransactionRequestParameters}
871
+ * @returns The transaction request. {@link PrepareTransactionRequestReturnType}
872
+ *
873
+ * @example
874
+ * import { createWalletClient, custom } from 'viem'
875
+ * import { mainnet } from 'viem/chains'
876
+ *
877
+ * const client = createWalletClient({
878
+ * chain: mainnet,
879
+ * transport: custom(window.ethereum),
880
+ * })
881
+ * const request = await client.prepareTransactionRequest({
882
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
883
+ * to: '0x0000000000000000000000000000000000000000',
884
+ * value: 1n,
885
+ * })
886
+ *
887
+ * @example
888
+ * // Account Hoisting
889
+ * import { createWalletClient, http } from 'viem'
890
+ * import { privateKeyToAccount } from 'viem/accounts'
891
+ * import { mainnet } from 'viem/chains'
892
+ *
893
+ * const client = createWalletClient({
894
+ * account: privateKeyToAccount('0x…'),
895
+ * chain: mainnet,
896
+ * transport: custom(window.ethereum),
897
+ * })
898
+ * const request = await client.prepareTransactionRequest({
899
+ * to: '0x0000000000000000000000000000000000000000',
900
+ * value: 1n,
901
+ * })
902
+ */
903
+ prepareTransactionRequest: <TChainOverride extends Chain | undefined>(args: PrepareTransactionRequestParameters<TChain, TAccount, TChainOverride>) => Promise<PrepareTransactionRequestReturnType>;
904
+ /**
905
+ * Calls a read-only function on a contract, and returns the response.
906
+ *
907
+ * - Docs: https://viem.sh/docs/contract/readContract.html
908
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/contracts/reading-contracts
909
+ *
910
+ * @remarks
911
+ * A "read-only" function (constant function) on a Solidity contract is denoted by a `view` or `pure` keyword. They can only read the state of the contract, and cannot make any changes to it. Since read-only methods do not change the state of the contract, they do not require any gas to be executed, and can be called by any user without the need to pay for gas.
912
+ *
913
+ * Internally, uses a [Public Client](https://viem.sh/docs/clients/public.html) to call the [`call` action](https://viem.sh/docs/actions/public/call.html) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData.html).
914
+ *
915
+ * @param args - {@link ReadContractParameters}
916
+ * @returns The response from the contract. Type is inferred. {@link ReadContractReturnType}
917
+ *
918
+ * @example
919
+ * import { createPublicClient, http, parseAbi } from 'viem'
920
+ * import { mainnet } from 'viem/chains'
921
+ * import { readContract } from 'viem/contract'
922
+ *
923
+ * const client = createPublicClient({
924
+ * chain: mainnet,
925
+ * transport: http(),
926
+ * })
927
+ * const result = await client.readContract({
928
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
929
+ * abi: parseAbi(['function balanceOf(address) view returns (uint256)']),
930
+ * functionName: 'balanceOf',
931
+ * args: ['0xA0Cf798816D4b9b9866b5330EEa46a18382f251e'],
932
+ * })
933
+ * // 424122n
934
+ */
935
+ readContract: <const TAbi extends Abi | readonly unknown[], TFunctionName extends string>(args: ReadContractParameters<TAbi, TFunctionName>) => Promise<ReadContractReturnType<TAbi, TFunctionName>>;
936
+ /**
937
+ * Sends a **signed** transaction to the network
938
+ *
939
+ * - Docs: https://viem.sh/docs/actions/wallet/sendRawTransaction.html
940
+ * - JSON-RPC Method: [`eth_sendRawTransaction`](https://ethereum.github.io/execution-apis/api-documentation/)
941
+ *
942
+ * @param client - Client to use
943
+ * @param parameters - {@link SendRawTransactionParameters}
944
+ * @returns The transaction hash. {@link SendRawTransactionReturnType}
945
+ *
946
+ * @example
947
+ * import { createWalletClient, custom } from 'viem'
948
+ * import { mainnet } from 'viem/chains'
949
+ * import { sendRawTransaction } from 'viem/wallet'
950
+ *
951
+ * const client = createWalletClient({
952
+ * chain: mainnet,
953
+ * transport: custom(window.ethereum),
954
+ * })
955
+ *
956
+ * const hash = await client.sendRawTransaction({
957
+ * serializedTransaction: '0x02f850018203118080825208808080c080a04012522854168b27e5dc3d5839bab5e6b39e1a0ffd343901ce1622e3d64b48f1a04e00902ae0502c4728cbf12156290df99c3ed7de85b1dbfe20b5c36931733a33'
958
+ * })
959
+ */
960
+ sendRawTransaction: (args: SendRawTransactionParameters) => Promise<SendRawTransactionReturnType>;
961
+ /**
962
+ * Simulates/validates a contract interaction. This is useful for retrieving **return data** and **revert reasons** of contract write functions.
963
+ *
964
+ * - Docs: https://viem.sh/docs/contract/simulateContract.html
965
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/contracts/writing-to-contracts
966
+ *
967
+ * @remarks
968
+ * This function does not require gas to execute and _**does not**_ change the state of the blockchain. It is almost identical to [`readContract`](https://viem.sh/docs/contract/readContract.html), but also supports contract write functions.
969
+ *
970
+ * Internally, uses a [Public Client](https://viem.sh/docs/clients/public.html) to call the [`call` action](https://viem.sh/docs/actions/public/call.html) with [ABI-encoded `data`](https://viem.sh/docs/contract/encodeFunctionData.html).
971
+ *
972
+ * @param args - {@link SimulateContractParameters}
973
+ * @returns The simulation result and write request. {@link SimulateContractReturnType}
974
+ *
975
+ * @example
976
+ * import { createPublicClient, http } from 'viem'
977
+ * import { mainnet } from 'viem/chains'
978
+ *
979
+ * const client = createPublicClient({
980
+ * chain: mainnet,
981
+ * transport: http(),
982
+ * })
983
+ * const result = await client.simulateContract({
984
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
985
+ * abi: parseAbi(['function mint(uint32) view returns (uint32)']),
986
+ * functionName: 'mint',
987
+ * args: ['69420'],
988
+ * account: '0xA0Cf798816D4b9b9866b5330EEa46a18382f251e',
989
+ * })
990
+ */
991
+ simulateContract: <const TAbi extends Abi | readonly unknown[], TFunctionName extends string, TChainOverride extends Chain | undefined>(args: SimulateContractParameters<TAbi, TFunctionName, TChain, TChainOverride>) => Promise<SimulateContractReturnType<TAbi, TFunctionName, TChain, TChainOverride>>;
992
+ verifyMessage: (args: VerifyMessageParameters) => Promise<VerifyMessageReturnType>;
993
+ verifyTypedData: (args: VerifyTypedDataParameters) => Promise<VerifyTypedDataReturnType>;
994
+ /**
995
+ * Destroys a Filter that was created from one of the following Actions:
996
+ *
997
+ * - [`createBlockFilter`](https://viem.sh/docs/actions/public/createBlockFilter.html)
998
+ * - [`createEventFilter`](https://viem.sh/docs/actions/public/createEventFilter.html)
999
+ * - [`createPendingTransactionFilter`](https://viem.sh/docs/actions/public/createPendingTransactionFilter.html)
1000
+ *
1001
+ * - Docs: https://viem.sh/docs/actions/public/uninstallFilter.html
1002
+ * - JSON-RPC Methods: [`eth_uninstallFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_uninstallFilter)
1003
+ *
1004
+ * @param args - {@link UninstallFilterParameters}
1005
+ * @returns A boolean indicating if the Filter was successfully uninstalled. {@link UninstallFilterReturnType}
1006
+ *
1007
+ * @example
1008
+ * import { createPublicClient, http } from 'viem'
1009
+ * import { mainnet } from 'viem/chains'
1010
+ * import { createPendingTransactionFilter, uninstallFilter } from 'viem/public'
1011
+ *
1012
+ * const filter = await client.createPendingTransactionFilter()
1013
+ * const uninstalled = await client.uninstallFilter({ filter })
1014
+ * // true
1015
+ */
1016
+ uninstallFilter: (args: UninstallFilterParameters) => Promise<UninstallFilterReturnType>;
1017
+ /**
1018
+ * Waits for the [Transaction](https://viem.sh/docs/glossary/terms.html#transaction) to be included on a [Block](https://viem.sh/docs/glossary/terms.html#block) (one confirmation), and then returns the [Transaction Receipt](https://viem.sh/docs/glossary/terms.html#transaction-receipt). If the Transaction reverts, then the action will throw an error.
1019
+ *
1020
+ * - Docs: https://viem.sh/docs/actions/public/waitForTransactionReceipt.html
1021
+ * - Example: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/transactions/sending-transactions
1022
+ * - JSON-RPC Methods:
1023
+ * - Polls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt) on each block until it has been processed.
1024
+ * - If a Transaction has been replaced:
1025
+ * - Calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getblockbynumber) and extracts the transactions
1026
+ * - Checks if one of the Transactions is a replacement
1027
+ * - If so, calls [`eth_getTransactionReceipt`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getTransactionReceipt).
1028
+ *
1029
+ * @remarks
1030
+ * The `waitForTransactionReceipt` action additionally supports Replacement detection (e.g. sped up Transactions).
1031
+ *
1032
+ * Transactions can be replaced when a user modifies their transaction in their wallet (to speed up or cancel). Transactions are replaced when they are sent from the same nonce.
1033
+ *
1034
+ * There are 3 types of Transaction Replacement reasons:
1035
+ *
1036
+ * - `repriced`: The gas price has been modified (e.g. different `maxFeePerGas`)
1037
+ * - `cancelled`: The Transaction has been cancelled (e.g. `value === 0n`)
1038
+ * - `replaced`: The Transaction has been replaced (e.g. different `value` or `data`)
1039
+ *
1040
+ * @param args - {@link WaitForTransactionReceiptParameters}
1041
+ * @returns The transaction receipt. {@link WaitForTransactionReceiptReturnType}
1042
+ *
1043
+ * @example
1044
+ * import { createPublicClient, http } from 'viem'
1045
+ * import { mainnet } from 'viem/chains'
1046
+ *
1047
+ * const client = createPublicClient({
1048
+ * chain: mainnet,
1049
+ * transport: http(),
1050
+ * })
1051
+ * const transactionReceipt = await client.waitForTransactionReceipt({
1052
+ * hash: '0x4ca7ee652d57678f26e887c149ab0735f41de37bcad58c9f6d3ed5824f15b74d',
1053
+ * })
1054
+ */
1055
+ waitForTransactionReceipt: (args: WaitForTransactionReceiptParameters<TChain>) => Promise<WaitForTransactionReceiptReturnType<TChain>>;
1056
+ /**
1057
+ * Watches and returns incoming block numbers.
1058
+ *
1059
+ * - Docs: https://viem.sh/docs/actions/public/watchBlockNumber.html
1060
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks/watching-blocks
1061
+ * - JSON-RPC Methods:
1062
+ * - When `poll: true`, calls [`eth_blockNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_blocknumber) on a polling interval.
1063
+ * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event.
1064
+ *
1065
+ * @param args - {@link WatchBlockNumberParameters}
1066
+ * @returns A function that can be invoked to stop watching for new block numbers. {@link WatchBlockNumberReturnType}
1067
+ *
1068
+ * @example
1069
+ * import { createPublicClient, http } from 'viem'
1070
+ * import { mainnet } from 'viem/chains'
1071
+ *
1072
+ * const client = createPublicClient({
1073
+ * chain: mainnet,
1074
+ * transport: http(),
1075
+ * })
1076
+ * const unwatch = await client.watchBlockNumber({
1077
+ * onBlockNumber: (blockNumber) => console.log(blockNumber),
1078
+ * })
1079
+ */
1080
+ watchBlockNumber: (args: WatchBlockNumberParameters) => WatchBlockNumberReturnType;
1081
+ /**
1082
+ * Watches and returns information for incoming blocks.
1083
+ *
1084
+ * - Docs: https://viem.sh/docs/actions/public/watchBlocks.html
1085
+ * - Examples: https://stackblitz.com/github/wagmi-dev/viem/tree/main/examples/blocks/watching-blocks
1086
+ * - JSON-RPC Methods:
1087
+ * - When `poll: true`, calls [`eth_getBlockByNumber`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getBlockByNumber) on a polling interval.
1088
+ * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newHeads"` event.
1089
+ *
1090
+ * @param args - {@link WatchBlocksParameters}
1091
+ * @returns A function that can be invoked to stop watching for new block numbers. {@link WatchBlocksReturnType}
1092
+ *
1093
+ * @example
1094
+ * import { createPublicClient, http } from 'viem'
1095
+ * import { mainnet } from 'viem/chains'
1096
+ *
1097
+ * const client = createPublicClient({
1098
+ * chain: mainnet,
1099
+ * transport: http(),
1100
+ * })
1101
+ * const unwatch = await client.watchBlocks({
1102
+ * onBlock: (block) => console.log(block),
1103
+ * })
1104
+ */
1105
+ watchBlocks: <TIncludeTransactions extends boolean = false, TBlockTag extends BlockTag = 'latest'>(args: WatchBlocksParameters<TTransport, TChain, TIncludeTransactions, TBlockTag>) => WatchBlocksReturnType;
1106
+ /**
1107
+ * Watches and returns emitted contract event logs.
1108
+ *
1109
+ * - Docs: https://viem.sh/docs/contract/watchContractEvent.html
1110
+ *
1111
+ * @remarks
1112
+ * This Action will batch up all the event logs found within the [`pollingInterval`](https://viem.sh/docs/contract/watchContractEvent.html#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/contract/watchContractEvent.html#onLogs).
1113
+ *
1114
+ * `watchContractEvent` will attempt to create an [Event Filter](https://viem.sh/docs/contract/createContractEventFilter.html) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchContractEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs.html) instead.
1115
+ *
1116
+ * @param args - {@link WatchContractEventParameters}
1117
+ * @returns A function that can be invoked to stop watching for new event logs. {@link WatchContractEventReturnType}
1118
+ *
1119
+ * @example
1120
+ * import { createPublicClient, http, parseAbi } from 'viem'
1121
+ * import { mainnet } from 'viem/chains'
1122
+ *
1123
+ * const client = createPublicClient({
1124
+ * chain: mainnet,
1125
+ * transport: http(),
1126
+ * })
1127
+ * const unwatch = client.watchContractEvent({
1128
+ * address: '0xFBA3912Ca04dd458c843e2EE08967fC04f3579c2',
1129
+ * abi: parseAbi(['event Transfer(address indexed from, address indexed to, uint256 value)']),
1130
+ * eventName: 'Transfer',
1131
+ * args: { from: '0xc961145a54C96E3aE9bAA048c4F4D6b04C13916b' },
1132
+ * onLogs: (logs) => console.log(logs),
1133
+ * })
1134
+ */
1135
+ watchContractEvent: <const TAbi extends Abi | readonly unknown[], TEventName extends string, TStrict extends boolean | undefined = undefined>(args: WatchContractEventParameters<TAbi, TEventName, TStrict>) => WatchContractEventReturnType;
1136
+ /**
1137
+ * Watches and returns emitted [Event Logs](https://viem.sh/docs/glossary/terms.html#event-log).
1138
+ *
1139
+ * - Docs: https://viem.sh/docs/actions/public/watchEvent.html
1140
+ * - JSON-RPC Methods:
1141
+ * - **RPC Provider supports `eth_newFilter`:**
1142
+ * - Calls [`eth_newFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newfilter) to create a filter (called on initialize).
1143
+ * - On a polling interval, it will call [`eth_getFilterChanges`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterchanges).
1144
+ * - **RPC Provider does not support `eth_newFilter`:**
1145
+ * - Calls [`eth_getLogs`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getlogs) for each block between the polling interval.
1146
+ *
1147
+ * @remarks
1148
+ * This Action will batch up all the Event Logs found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchEvent.html#pollinginterval-optional), and invoke them via [`onLogs`](https://viem.sh/docs/actions/public/watchEvent.html#onLogs).
1149
+ *
1150
+ * `watchEvent` will attempt to create an [Event Filter](https://viem.sh/docs/actions/public/createEventFilter.html) and listen to changes to the Filter per polling interval, however, if the RPC Provider does not support Filters (e.g. `eth_newFilter`), then `watchEvent` will fall back to using [`getLogs`](https://viem.sh/docs/actions/public/getLogs.html) instead.
1151
+ *
1152
+ * @param args - {@link WatchEventParameters}
1153
+ * @returns A function that can be invoked to stop watching for new Event Logs. {@link WatchEventReturnType}
1154
+ *
1155
+ * @example
1156
+ * import { createPublicClient, http } from 'viem'
1157
+ * import { mainnet } from 'viem/chains'
1158
+ *
1159
+ * const client = createPublicClient({
1160
+ * chain: mainnet,
1161
+ * transport: http(),
1162
+ * })
1163
+ * const unwatch = client.watchEvent({
1164
+ * onLogs: (logs) => console.log(logs),
1165
+ * })
1166
+ */
1167
+ watchEvent: <const TAbiEvent extends AbiEvent | undefined = undefined, const TAbiEvents extends readonly AbiEvent[] | readonly unknown[] | undefined = TAbiEvent extends AbiEvent ? [TAbiEvent] : undefined, TStrict extends boolean | undefined = undefined>(args: WatchEventParameters<TAbiEvent, TAbiEvents, TStrict>) => WatchEventReturnType;
1168
+ /**
1169
+ * Watches and returns pending transaction hashes.
1170
+ *
1171
+ * - Docs: https://viem.sh/docs/actions/public/watchPendingTransactions.html
1172
+ * - JSON-RPC Methods:
1173
+ * - When `poll: true`
1174
+ * - Calls [`eth_newPendingTransactionFilter`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newpendingtransactionfilter) to initialize the filter.
1175
+ * - Calls [`eth_getFilterChanges`](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getFilterChanges) on a polling interval.
1176
+ * - When `poll: false` & WebSocket Transport, uses a WebSocket subscription via [`eth_subscribe`](https://docs.alchemy.com/reference/eth-subscribe-polygon) and the `"newPendingTransactions"` event.
1177
+ *
1178
+ * @remarks
1179
+ * This Action will batch up all the pending transactions found within the [`pollingInterval`](https://viem.sh/docs/actions/public/watchPendingTransactions.html#pollinginterval-optional), and invoke them via [`onTransactions`](https://viem.sh/docs/actions/public/watchPendingTransactions.html#ontransactions).
1180
+ *
1181
+ * @param args - {@link WatchPendingTransactionsParameters}
1182
+ * @returns A function that can be invoked to stop watching for new pending transaction hashes. {@link WatchPendingTransactionsReturnType}
1183
+ *
1184
+ * @example
1185
+ * import { createPublicClient, http } from 'viem'
1186
+ * import { mainnet } from 'viem/chains'
1187
+ *
1188
+ * const client = createPublicClient({
1189
+ * chain: mainnet,
1190
+ * transport: http(),
1191
+ * })
1192
+ * const unwatch = await client.watchPendingTransactions({
1193
+ * onTransactions: (hashes) => console.log(hashes),
1194
+ * })
1195
+ */
1196
+ watchPendingTransactions: (args: WatchPendingTransactionsParameters<TTransport>) => WatchPendingTransactionsReturnType;
1197
+ };
1198
+ export declare function publicActions<TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends Account | undefined = Account | undefined>(client: Client<TTransport, TChain, TAccount>): PublicActions<TTransport, TChain, TAccount>;
1199
+ //# sourceMappingURL=public.d.ts.map