Skip to content

Moving between zones

How one zone sends a message, or assets, to another on Zero. Messages arrive in order and exactly once, after the sender's block settles, and never atomically.

On this page

A transaction runs in one zone. To act in another zone, such as moving an asset out of ATLAS, the first zone sends a cross-zone message, and the other zone acts on it when it arrives. Every zone sends and receives messages the same way, so any zone can talk to any other.

›Transcript
  1. A transaction runs in one zone. To act in another, it sends a message.
  2. The source zone records the message in its outbox, part of its state.
  3. For an asset transfer, the source zone takes the asset out of circulation first.
  4. Next, the source zone’s block settles on the settlement layer, like any block.
  5. Only then is the message part of proven state, so it can’t arrive any sooner.
  6. A relayer fetches the message with a proof, and submits both to the destination.
  7. Anyone can relay. A relayer can only choose when to deliver.
  8. Messages don’t expire, but they only arrive once some relayer submits them.
  9. The destination checks the proof against the settlement layer, never the relayer.
  10. Genuine, new, next in order, readable. Then the asset is released in ATLAS.
  11. Sending and delivering are two transactions, in two zones, at two times.
  12. They’re not all-or-nothing. Show the transfer as pending in between.
  13. Deposit: USDT moves from the EVM Zone into ATLAS, credited when the message lands.
  14. Withdrawal: it leaves your ATLAS balance first, and arrives in the EVM Zone on delivery.
  15. Send, settle, relay, deliver: in order, exactly once, checked by the destination.
  16. Never atomic, so design for the gap. That’s how zones talk on Zero.
  1. 01
    Sendsource zone writes it
  2. 02
    Settlesource block proven
  3. 03
    Relayanyone carries it
  4. 04
    Deliverdestination verifies it
Delivered
Earliest
Carried by
Atomic?

How a message moves

  1. Send. An application in the source zone sends a message to an application in a destination zone. The zone records it in its outbox, part of its state. For an asset transfer, the source zone takes the asset out of circulation first, for example by burning or locking it.
  2. Settle. The source zone's block settles on the settlement layer, like any other block. The message is now part of the zone's proven state.
  3. Relay. A relayer fetches the message from a source-zone node, with a proof that it is in the source zone's settled state, and submits both to the destination zone.
  4. Deliver. The destination zone checks the proof against the source zone's state as recorded on the settlement layer, checks the message is the next one expected, and hands it to the receiving application. For an asset transfer, the asset is released or minted there.

What delivery guarantees

The destination zone trusts only the settlement layer, never the relayer. Before it acts on a message, it checks:

  • It's genuine. The message is in the source zone's outbox, under a state the settlement layer settled. A relayer can't invent or alter a message.
  • It's new. It hasn't been delivered before. A message is delivered at most once, however many times it's relayed.
  • It's next. Messages from one application to another arrive in the order they were sent, with none skipped.
  • It's readable. It's in a message format both zones support.

If any check fails, the delivery transaction fails and changes nothing.

Relayers

Zones don't watch each other, so each message has to be carried across by a relayer: any off-chain party that reads messages from the source zone and submits them to the destination. Relaying is permissionless, and a relayer has no power over a message beyond choosing when to deliver it.

A sent message stays valid until it's delivered: it doesn't expire. But nothing in the protocol forces delivery, so a message only arrives once some relayer submits it. Anyone can relay, including you: if a message you're waiting on hasn't arrived, you can deliver it yourself.

Not atomic

Sending and delivering are two transactions in two zones, at two different times. Zero doesn't make them all-or-nothing:

  • the source zone's side is final as soon as its block is ordered, whether or not the message is ever delivered;
  • if the receiving application rejects the message, the source zone's side isn't undone.

Design cross-zone flows for that gap. For example, show a transfer as pending between send and delivery.

Timing

A message can't be delivered before the source zone's block settles, because that's when its proof is accepted. So a cross-zone message takes at least as long as the source zone takes to settle, plus however long a relayer takes to deliver it. See Settlement and finality.

Moving assets between ATLAS and the EVM Zone

Assets reach Zero from other chains in the EVM Zone, where they exist as LayerZero OFTs. Moving them between the EVM Zone and ATLAS uses these messages, but you don't send them yourself: you send the OFT, and LayerZero's contracts on the EVM Zone do the rest.

  • Deposit. The EVM Zone sends a message to ATLAS. The asset is credited to your ATLAS account when the message is delivered.
  • Withdrawal. ATLAS sends a message to the EVM Zone. The asset leaves your ATLAS balance when ATLAS processes the withdrawal, and arrives in the EVM Zone when the message is delivered. The ATLAS API reports only that the withdrawal applied, never its arrival: confirm arrival on the EVM Zone itself, at the receiver address you signed. Moving it on to another chain is a second transfer you send from the EVM Zone, over LayerZero.

Take your OFT to ATLAS walks through a deposit end to end, including memos.