Get token balance
Get token balance

Ethereum Virtual Machine · Reads onchain state

Reads a token balance held by an address, native or ERC-20. The native token address routes to the holder's ETH balance; any other address calls the token's balanceOf. The result carries the token's decimals. Reach for it to size an amount at what is actually held, to require a minimum balance before a step runs, or to measure a balance before and after a solver's route so a predicate confirms the outcome.

Send Token

plug
evm
time
10actions
  1. 1·Take

    Take opens by declaring token as a caller parameter, naming the asset this run reads and later sends.

  2. 2·Get token balance

    Using that token, the balance held by Your Wallet is read, capturing the holding before the transfer.

  3. 3·Bubble

    Surfacing that measured balance as an output of this plug hands the pre-transfer holding back to the caller.

  4. 4·Get token balance

    Reading the token balance held by Your Wallet a second time captures another snapshot of the holding.

  5. 5·Bubble

    Bubbling that second balance out as an output of this plug returns it to the caller.

  6. 6·Take

    Next, amount is declared as a caller parameter, sizing how much of the token this run sends.

  7. 7·Take

    Following that, recipient is taken as a caller parameter, naming the address the transfer goes to.

  8. 8·Take

    Also taken is frequency, a caller parameter supplying the interval that bounds how often this plug runs.

  9. 9·Repeat

    Capping cadence, the rate limit permits at most one run every frequency, so the schedule advances no more than once per that interval.

  10. 10·Transfer tokens

    Transferring amount of the token to recipient sends the asset from the socket to that address.

Take
Get balance of held by
Bubble
Get balance of held by
Bubble
Take
Take
Take
Repeat up to x every
Transfer to
  • Unstake From Lido, Claim It When It Clears, Restake It

    plug
    database
    boolean
  • Send Token

    plug
    evm
    time
  • Set Budget for Spender

    plug
    evm
  • Unwrap WETH to ETH

    evm
    plug
  • Wrap ETH to WETH

    evm
    plug
  • Rebalance Holdings to Target

    plug
    values
    evm
  • Get Holding Value

    plug
    evm
    math
  • Swap at Floor

    plug
    evm
    values
  • Swap

    plug
    values
    evm
  • Morpho Pendle Expiry Deleveraging

    pendle
    time
    boolean
  • Aave: Wind or Unwind Position

    plug
    boolean
    aave
  • Wind

    plug
    aave
    evm
  • Unwind

    plug
    aave
    evm
  • Strategy: Loop WETH/USDC at Target HF + Stop Loss

    boolean
    aave
    evm
  • Supply if a Token Balance Is 0

    plug
    aave
    evm
  • Supply Idle Balance Weekly

    time
    evm
    boolean
  • Borrow + Weekly Repayments

    time
    aave
    evm
  • Borrow Rate Exit Guard (WETH/USDC Loop)

    boolean
    aave
    evm
  • Trailing Stop Loss (WETH/USDC Loop)

    boolean
    aave
    evm
  • Take Profit (WETH/USDC Loop)

    boolean
    aave
    evm
  • Loop at Target HF + Borrow Rate Entry & Exit Guard

    aave
    boolean
    evm
  • Loop WETH/USDC at Target HF

    aave
    evm
    boolean
  • Borrow + Term Repayment Schedule

    time
    database
    boolean
  • Loop at Target HF + Borrow Rate Exit Guard

    database
    boolean
    aave
  • Loop at Target HF + Trailing Stop Loss

    database
    boolean
    aave
  • Swarm: Loop WETH/USDC at Target HF

    boolean
    aave
    evm
  • Stop Loss (WETH/USDC Loop)

    boolean
    aave
    evm

On other protocols · 2