ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / sendSuperchainWETH

sendSuperchainWETH()

sendSuperchainWETH<chain, account, chainOverride>(client, parameters): Promise<SendSupERC20ReturnType>

Sends SuperchainWETH to a target address on another chain. Used in the interop flow.

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

SendSuperchainWETHParameters

Returns

Promise<SendSupERC20ReturnType>

The sendSuperchainWETH transaction hash. SendSupERC20ReturnType

Defined in

packages/viem/src/actions/sendSuperchainWETH.ts:53