@eth-optimism/viem • Docs
@eth-optimism/viem / depositSuperchainWETH
depositSuperchainWETH<
chain
,account
,chainOverride
>(client
,parameters
):Promise
<DepositSuperchainWETHReturnType
>
Deposits ETH to the SuperchainWETH contract.
• chain extends undefined
| Chain
• account extends undefined
| Account
• chainOverride extends undefined
| Chain
= undefined
• client: Client
<Transport
, chain
, account
>
L2 Wallet Client
• parameters: DepositSuperchainWETHParameters
<chain
, account
, chainOverride
, DeriveChain
<chain
, chainOverride
>>
DepositSuperchainWETHParameters
Promise
<DepositSuperchainWETHReturnType
>
The depositSuperchainWETH transaction hash. DepositSuperchainWETHReturnType