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