ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / depositSuperchainWETH

depositSuperchainWETH()

depositSuperchainWETH<chain, account, chainOverride>(client, parameters): Promise<DepositSuperchainWETHReturnType>

Deposits ETH to the SuperchainWETH contract.

Type Parameters

chain extends undefined | Chain

account extends undefined | Account

chainOverride extends undefined | Chain = undefined

Parameters

client: Client<Transport, chain, account>

L2 Wallet Client

parameters: DepositSuperchainWETHParameters<chain, account, chainOverride, DeriveChain<chain, chainOverride>>

DepositSuperchainWETHParameters

Returns

Promise<DepositSuperchainWETHReturnType>

The depositSuperchainWETH transaction hash. DepositSuperchainWETHReturnType

Defined in

packages/viem/src/actions/depositSuperchainWETH.ts:64