ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / withdrawSuperchainWETH

withdrawSuperchainWETH()

withdrawSuperchainWETH<chain, account, chainOverride>(client, parameters): Promise<WithdrawSuperchainWETHReturnType>

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: WithdrawSuperchainWETHParameters<chain, account, chainOverride, DeriveChain<chain, chainOverride>>

WithdrawSuperchainWETHParameters

Returns

Promise<WithdrawSuperchainWETHReturnType>

The withdrawSuperchainWETH transaction hash. WithdrawSuperchainWETHReturnType

Defined in

packages/viem/src/actions/withdrawSuperchainWETH.ts:67