EthereumIntermediate

Atomic transaction

An operation whose included state changes succeed together or are rolled back together under the execution rules.

PLAIN-ENGLISH DEFINITION

In more detail

Atomicity lets a contract combine dependent steps without leaving half the intended state change completed. If a required step fails, the operation can revert those changes. This is useful for workflows such as flash loans, although rolling back the changes does not necessarily refund execution fees.

IN THE WILD

How you might use it

"The flash-loan workflow couldn't repay, so it reverted. It didn't get to keep the loan and half a completed swap."

Three dependent state-change panels share a reversible latch and return together after a required step fails, while an external cost tube still dissipates resources.
Illustrated by Crypto DictionaryAI-generated artwork

Got a way to make Atomic transaction click?

Add your take

By Crypto Dictionary · Published · Updated

Go to the source

Use the original reference to explore the details behind this entry.

Read the reference

An original explanation with a reference to follow. Protocol details and community usage can evolve. Sources & standards

PASS IT TO THE GROUP CHAT

Share a definition