Toggle global flag

Toggle global flag on Boolean

Ethereum
Ethereum
Base
Base

Acts onchain

Ready to run on Base

Flips a boolean flag in the socket's global storage. The current committed value is read, negated, and written back; an unset flag becomes true. The flag persists across transactions and is visible to every plug the socket runs. Reach for it to alternate behaviour between runs, such as rebalancing in opposite directions on successive executions, without tracking the previous state yourself.

Plug lets you combine onchain actions like this one into a single transaction, without writing a smart contract. Use in App opens a new plug with this action already in it.

More plugs on Base

Dollar-cost average on Base · 4 plugs

More on Boolean · 4