@eth-optimism/viem • Docs
@eth-optimism/viem / actions / estimateDepositERC20Gas
estimateDepositERC20Gas<
TChain,TAccount,TChainOverride>(client,parameters):Promise<bigint>
Estimate the gas cost of the depositERC20 action.
• TChain extends undefined | Chain
• TAccount extends undefined | Account
• TChainOverride extends undefined | Chain
• client: Client<Transport, TChain, TAccount>
Client for the depositing chain
• parameters: DepositERC20Parameters<TChain, TAccount, TChainOverride, DeriveChain<TChain, TChainOverride>>
Promise<bigint>
The gas cost