@eth-optimism/viem • Docs
@eth-optimism/viem / actions / WithdrawOptimismERC20Parameters
WithdrawOptimismERC20Parameters<
TChain,TAccount,TChainOverride,TDerivedChain>:GetChainParameter<TChain,TChainOverride> &BaseWriteContractActionParameters<TChain,TAccount,TChainOverride,TDerivedChain> &object
| Parameters to withdraw an OptimismMintableERC20 | OptimismSuperchainERC20 into the remote token. |
amount:
bigint
The token amount to bridge
optionalbridgeAddress:Address
The address of the StandardBridge to use. Defaults to the L2StandardBridge Predeploy
optionalextraData:Hex
Metadata to attach to the bridged message
optionalminGasLimit:number
The minimums gas the relaying message will be executed with
optionalto:Address
The recipient address to bridge to. Defaults to the calling account
tokenAddress:
Address
The address of the OptimismMintablERC20 token to withdraw
• TChain extends Chain | undefined = Chain | undefined
• TAccount extends Account | undefined = Account | undefined
• TChainOverride extends Chain | undefined = Chain | undefined
• TDerivedChain extends Chain | undefined = DeriveChain<TChain, TChainOverride>