Ethereum Virtual Machine

Set and transfer tokens on Ethereum Virtual Machine

Ethereum
Ethereum
Base
Base
Core

Ready to run on Base

The Ethereum Virtual Machine is the ground truth under everything else: every protocol, every token, every position is, in the end, contract calls and balances on the machine, and the plans that hold up are the ones built directly against it.

This protocol carries the machine's own verbs. Balances read at execution time, transfers of any token, any collectible or the native asset, approvals granted exactly as wide or as narrow as a plan needs and revoked the moment they are no longer needed, ether wrapped and unwrapped when a route demands it, and arbitrary values staged for downstream steps to consume. Nothing here belongs to any one protocol, which is why every plan ends up using it.

The small verbs are where the real hygiene lives. An allowance that revokes itself the moment the strategy that needed it finishes. A balance checked in the same transaction that spends it. Dust swept, the gas asset topped up, a wrap done at the exact block a route requires it. These are the steps nobody enjoys doing by hand and everybody pays for skipping.

Every plug bottoms out in these operations. Having them as first-class, condition-driven steps is what makes everything above them composable.

More plugs on Base

Borrow on Base · 7 plugs

Stake on Base · 9 plugs

Provide liquidity on Base · 6 plugs

How to set and transfer tokens on Ethereum Virtual Machine

  • Assigns a value to a named variable that later steps reference.

    Reach for it to give a computed amount or address a stable handle, or to merge results from divergent branches into one value the rest of the plug consumes.

  • Sends a token from the socket to another address, native or ERC-20.

    Reach for it to pay out proceeds after a swap or withdrawal, to fund another account from a scheduled plug, or to move a balance read earlier in the transaction by coiling that exact amount.

  • Wraps native ETH into WETH on the current chain.

    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.

  • Grants a spender an allowance to transfer an ERC-20 token from the socket.

    Reach for it before calling into a protocol that pulls tokens on its own, or pair it with the revoke action so an allowance opened at the start of a transaction is closed at the end.

  • Sets a spender's ERC-20 allowance from the socket back to zero.

    Reach for it to close an allowance a strategy opened earlier in the same transaction, or in a cleanup plug that removes standing approvals from contracts no longer in use.

  • Unwraps WETH back into native ETH on the current chain.

    Reach for it after a step that pays out WETH, such as a swap or a vault redemption, when the next step needs native ETH by value.

  • Grants or revokes an operator's approval over every token in an ERC-721 or ERC-1155 collection.

    Reach for it before a step that has a marketplace or bridge move NFTs on the socket's behalf, and set it back to false at the end of the same transaction so no standing approval remains.

  • Sends an amount of one ERC-1155 token from the socket to another address.

    Reach for it to hand editions to another wallet, to split a stack of game items or tickets, or to deliver tokens a plug claimed or bought earlier in the transaction.

  • Sends one ERC-721 token from the socket to another address.

    Reach for it to hand an NFT to another wallet, to move a collectible into cold storage, or to deliver a token a plug minted or bought earlier in the transaction.

Posts · 19