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; the action reports received as the socket's WETH balance change. 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, and coil received into that step's amount so it spends the WETH the wrap minted.

Wrap ETH to WETH

evm
plug
6actions
  1. 1·Get token balance

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

  2. 2·Get token balance

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

  3. 3·Bubble

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

  4. 4·Bubble

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

  5. 5·Take

  6. 6·Wrap

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

    evm
    plug

On other protocols · 4