ecosystem

@eth-optimism/viemDocs


@eth-optimism/viem / sendSupERC20

sendSupERC20()

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

Sends tokens 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: SendSupERC20Parameters<chain, account, chainOverride, DeriveChain<chain, chainOverride>>

SendSupERC20Parameters

Returns

Promise<SendSupERC20ReturnType>

The sendSupERC20 transaction hash. SendSupERC20ReturnType

Defined in

packages/viem/src/actions/sendSupERC20.ts:77