Wrap
Wrap

Ethereum Virtual Machine · Acts onchain

Wraps native ETH into WETH on the current chain. The amount is sent by value to the chain's wrapped native contract, which mints the ERC-20 form one-to-one with no fee. Reach for it before a step that takes only the ERC-20 form, such as a Uniswap V2 pair or a lending market that lists WETH rather than native ETH.

Wrap ETH to WETH

evm
plug
4actions
  1. 1·Get token balance

    Reads the ETH balance at 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee held by Your Wallet, capturing the native holding on hand.

  2. 2·Bubble

    Surfacing the value in slot 0.1 as an output of this plug hands that ETH balance back to the caller.

  3. 3·Take

    Next, amount is declared as a caller parameter, letting the caller size how much ETH to wrap at execution time.

  4. 4·Wrap

    Drawing the amount from slot 2.0, this wraps that quantity of ETH at 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE into WETH at 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2 on the current chain.

Get balance of held by
Bubble
Take
Wrap into
  • Wrap ETH to WETH

    evm
    plug

On other protocols · 4