Documentation · rule PARK-010…080 · reference implementation on GitHub

Limbo, explained.

Limbo lets a fully signed Ethereum transaction wait until something happens on chain, then land as the exact same bytes. Nobody has to be online when it happens, nobody re-signs, and nobody gets to decide who is paid.

WhatA node policy, PARK, for the EIP-8141 / ERC-8421 alternative mempool.
HowThe transaction signs its own trigger. Nodes hold it, watch a write-once latch, and promote the match.
Why it is differentNo fork, no keeper, no simulation of losing outcomes. One nonce key decides which outcome lands.

The problem

Some transactions should only exist after something happens. A will that pays out when its owner stops checking in. A bet that pays whoever was right. A refund that only applies if nobody showed up. The person who should send them may be asleep, offline, or gone by the time the condition comes true.

Ethereum's mempools have two answers for a transaction: admit it or reject it. A transaction that is invalid now but will be valid later has nowhere to wait. So today every app builds or rents a keeper: an off-chain service that stores the signed bytes or a key, watches the chain, and decides when to resubmit. The keeper is a single operator, it is trusted with timing and often with the recipient, and when it is down nothing lands.

Fig. 1Holding a transaction until something happens
latchUNSET
Keeper
Signersigns, hands off
Keeper servicestores bytes
Chainwaiting
Limbo
Signersigns, goes offline
Park node Aparked
Park node Brevalidated copy
Chainwaiting

Both start the same way: a signer produces a transaction that must not land yet.

Limbo moves the waiting into mempool policy. Any node that runs the rule can hold the bytes, every peer revalidates them independently, and the outcome is fixed the moment the transaction is signed.

Who it's for

Every conditional or posthumous transaction today implies a keeper: a service someone runs, pays for and trusts with timing. Limbo takes that operator out, for these people:

People who hold their own keys
Inheritance, recovery and conditional transfers without handing anyone a key or trusting a service.
Wallet teams
Scheduled, conditional and posthumous transfers from one account pattern, with no keeper infrastructure to run.
Apps that run keepers today
Prediction markets, insurance, escrow and DAO tools can drop their bespoke settlement bots.
Node operators and researchers
A written, testable mempool policy for the alternative mempool, with a reference implementation.

Use cases

The first two are built and run end to end in the repo. The others use the same rule; each would need its own account template and latch.

Inheritance and dead man's switch

Built and demoed

People who hold their own keys, and the family they leave behind.

Today. Share a seed phrase with someone, or trust a custodian or keeper service that can disappear, get hacked or change its mind.

With Limbo. Sign the transfer to your heir once and keep checking in. If you go silent, anyone can trip the latch and that exact transfer lands. Nobody can redirect it.

Peer-to-peer bets and prediction markets

Built and demoed

Two people who disagree, and the markets built for them.

Today. Lock funds in a settlement contract and rely on someone to run the settlement once the result is known.

With Limbo. Both sides sign every outcome up front. The oracle attests, the matching payout lands, and the others can never land.

Parametric insurance

Same rule

Farmers, travellers and the pools that cover them.

Today. File a claim and wait, or depend on a bot watching an oracle to pay out.

With Limbo. The pool pre-signs the payout against an event like low rainfall or a delayed flight. When the oracle attests, the payout lands with no claim and no bot.

Escrow and milestone payments

Same rule

Freelancers, grant programs and DAOs paying for delivered work.

Today. An escrow agent or a multisig has to come back and act after the work is delivered.

With Limbo. The client signs the release and the refund on one nonce slot. Delivery attested: the release lands. Deadline missed: the refund lands. Never both.

Scheduled and post-dated payments

Same rule

Payroll, vesting and anyone who wants to pay on a date.

Today. Run an automation service, or remember to send it yourself.

With Limbo. Sign today, against a latch with a fixed deadline. After the deadline anyone can call expire(), and the payment lands. No privileged operator.

Governance execution

Same rule

DAOs and their signers.

Today. A bot or a multisig executes the proposal once the vote closes.

With Limbo. Execution is pre-signed against the vote result. When the result is attested, it lands, exactly as signed.

Building blocks

Limbo does not add a new primitive. It composes three that already exist on the devnet.

EIP-8141 frame transactions
A transaction is a list of frames. VERIFY frames run validation and may call APPROVE; SENDER frames run as the account. Validation can read the transaction's own frames through introspection opcodes, which Limbo uses to make a signer include what they might otherwise leave out.
ERC-8421 alternative mempool
The canonical mempool refuses validation that reads another contract's storage. The alternative mempool admits such a foreign read for a staked sender. Reading a shared latch is exactly that.
EIP-8250 keyed nonces
An account has many nonce keys, each with its own sequence. Several transactions can be signed for the same slot; only one can ever be included. Limbo uses this as its exclusion mechanism.

The latch

A latch is a small shared contract. For each event it holds one of four states, and it changes state at most once. That write-once property is what lets a node reason about a transaction without running it.

Fig. 2The latch: four states, one write
attest window (fixed events)
grace g
expire() allowed
DD + gnow

Every event starts UNSET. A fixed event gets a deadline D once, with open(). A heartbeat event moves D forward with each ping().

There are two kinds of event. A fixed event is opened with a deadline ; before its oracle can attest YES or NO. A heartbeat event has no oracle: its owner calls ping(), which moves to , and the event can only ever end EXPIRED. For either kind, once has passed anyone may call expire().

Anatomy of a parked transaction

A parked transaction is an ordinary frame transaction. The only unusual thing is what goes in its first VERIFY frame: the trigger, ABI-encoded as (address latch, bytes32 eventId, uint8 expectedTag). Because that frame is signed, the trigger is part of the signature.

[ expiry_verify(E),                 // 0  VERIFY  hard upper bound
  self_verify(latch, eventId, tag),  // 1  VERIFY  the signed trigger
  sender(self.markRescued()),        // 2  SENDER  rescue and abort only
  sender(payout 1),                  // 3  SENDER
  sender(payout 2) ]                 // 4  SENDER  optional
Fig. 3One signature seals the whole transaction
0VERIFYexpiry_verifyE = D + 3600 s
1VERIFYself_verify(latch, eventId, EXPIRED)
2SENDERmarkRescued()self-call · ≥ 25k gas
3SENDERpayoutbeneficiary ← 0.02 ETH
signature hash—
recovers to—
waiting

The rescue is five frames. The trigger lives inside frame 1, so it is part of what gets signed.

Inside self_verify the account reads the latch, checks that the resolved signers are its own, checks there is room for the payouts plus gas, and only then approves execution and payment. For the rescue and the DLC abort it also reads its own frames and refuses a transaction that leaves out the required self-call or pays anyone it should not.

Admission

A park node never trusts the submitter. Before it holds anything it rebuilds every fact it needs from the signed bytes and from chain state, cheapest checks first. A transaction that fails any of them is rejected with the rule that caught it.

Fig. 4Admission: every check, in order, against the bytes alone
TemplatePARK-030
Signed triggerPARK-010
ExpiryPARK-040
SignaturesPARK-030
DuplicatePARK-050
Latch + stakePARK-010/020
Caps P / EPARK-050
ParkedPARK-060
rescue #1
trigger slots1 / 4

Passes every check and is parked. Trigger slots used: 1 of 4.

  1. Template. The sender is an allow-listed account with the expected code hash, on the right chain.
  2. Signed trigger. The trigger decoded from self_verify matches the template's latch, event and allowed tags, and matches what the submitter declared.
  3. Expiry. An expiry_verify frame is present and its bound clears the latch deadline plus grace plus a margin.
  4. Signatures. The signature hash is recomputed from the bytes and each entry recovers to the template's signer, in order, over the canonical message.
  5. Duplicate. Bytes the node already holds are rejected and not counted.
  6. Latch and stake. The latch is still UNSET, and the sender is staked above the minimum with no withdrawal pending.
  7. Caps. At most parked per trigger and per account.

Promotion and eviction

The node indexes everything it holds by trigger. When a latch changes it reads the new state once, then sorts its entries into two piles: those whose tag matches, which it promotes, and those whose tag does not, which it evicts without ever simulating them.

Fig. 5One nonce slot, three signed values
park area
CET_YESneeds YES
CET_NOneeds NO
CET_REFUNDneeds EXPIRED
latch UNSET
watching one slot
sender · key 1
next valid: seq 0
seq0

Three outcomes, one slot: (sender, key 1, seq 0). The live mempool would accept only one, so they can only wait together in the park area (PARK-070).

Within one sibling group, the node promotes at most one entry. A promotion that fails for a transient reason is retried with exponential backoff. One that can never succeed, because it was mined with a failed frame or its nonce is already used, is marked failed and its siblings evicted.

The reference deployment runs two nodes. Node A promotes as soon as the latch settles. Node B promotes a matching entry that is still parked 30 seconds after it saw the settlement. Both persist their park area to disk and reload it on start.

The maths

Limbo's guarantees are small inequalities. Here they are in one place, with the values the reference deployment uses. Notation: is block time, the latch deadline, the grace period, a cheque's expiry bound, and the per-trigger and per-entity caps.

Timing bounds

A latch transition is only possible in two disjoint windows, separated by the grace period.

latch

So nothing can settle an event during . A node only parks a cheque whose expiry clears that gap with a margin , otherwise the cheque could die before it can ever become valid:

PARK-040

The reference signs . For a heartbeat event each ping sets with , so a rescue signed against an early deadline stays useful only while

An owner who keeps pinging for more than an hour therefore re-signs and re-parks the rescue, or signs with a longer expiry. The rescue account reserves its balance for a window after the deadline:

window
locked

Because the deadline only ever moves forward, every parked rescue satisfies : the reservation outlives every copy that could still land, and then releases the funds.

Fig. 6Deadman rescue, on one time axis
ping 1ping 2ping 3Dgcheque expiry Efunds reserved until landed or D + W
grace g rescue window Wtime, not to scale

While the owner is around, each ping() moves the deadline to now + interval. The rescue waits, parked.

Mutual exclusion

Let a sibling set be every signed transaction for one slot . Inclusion requires the slot's sequence to equal , and inclusion advances it:

EIP-8250
exclusion

The latch adds a second, independent filter. A cheque with tag passes self_verify only if the latch reads , and a write-once latch reads at most one terminal value, ever. So among outcome siblings with distinct tags at most one is ever even valid, and the nonce makes that true even for two cheques on the same tag.

Solvency

Neither account can approve a payout it cannot fund. The DLC caps each side's deposit at its stake, counts as funded only when both stakes are met, and its constructor refuses payouts larger than the stakes:

DLC
outcome

With the reference values the room is exact: ETH. The buffer is precisely the gap between the stakes and the payouts. The rescue is the same shape with one payee, and its frames must send the beneficiary at least and nobody anything else:

rescue

with and ETH. Frames only count if they carry enough gas to actually run: 25,000 for the marking self-call, 10,000 for a payout.

Caps and griefing

The caps bound what a node holds, whatever anyone submits:

PARK-050

Duplicates are matched by transaction hash, so replays of one cheque count as one. Without that, anyone who saw the bytes could replay a single outcome until the per-entity cap blocked the others.

Honestly: today's caps are first-come. Since , one staked account can fill a trigger, so the cost to occupy it is a single minimum stake (0.01 ETH on the devnet). The v2 draft ranks entries by stake instead, which makes occupying a slot cost stake linear in the slots taken:

v2

Liveness

A transient promotion failure is retried with a doubling delay, capped:

backoff

Node B promotes a still-parked match at . A cheque lands if at least one node is up before it expires. Two nodes sending the same bytes is harmless: by the exclusion bound, at most one copy can be included.

Cost of eviction

A keeper with mutually exclusive transactions has to simulate them to learn which is valid. A park node reads one storage value and simulates only the winner, at promotion:

per trigger

The work per settlement is constant in the number of siblings.

The two workloads

Deadman rescue

The owner funds a staked account, signs one rescue that pays a beneficiary if the account's heartbeat latch ever reads EXPIRED, and parks it. They keep pinging. If they stop, the deadline passes, grace passes, any stranger calls expire(), and the park node promotes the rescue. The owner is not online at the trigger and no keeper chooses the beneficiary. This is the case Limbo exists for: nobody who could submit is around.

Binary DLC

Alice and Bob fund a 2-of-2 account up to fixed stakes and sign three outcomes on one nonce slot: CET_YES, CET_NO and CET_REFUND. The oracle attests, the match is promoted, the slot is consumed and the other two are dead. If one side never funds, the other can abort with a single signature, which must mark the account aborted; each party then claims back its own deposit.

A single DLC does not strictly need parking: both parties are online and the winner can submit. It is here because it is the smallest real sibling set. That is what PARK-060 and PARK-070 are about. Flip both latches in the playground.

Security model

What an adversary might try, and what stops them.

AttemptDefence
Change a payout or the trigger after signingThe signature hash covers every frame, so the signature stops recovering (PARK-030).
Replay one cheque to fill the capsDuplicates are matched by transaction hash and never counted twice (PARK-050).
Submit a cheque whose declared trigger liesThe node decodes the trigger from the signed self_verify data and compares (PARK-010).
Send the rescue to someone elseself_verify reads the transaction's own frames: at least the rescue amount to the beneficiary, nothing anywhere else.
Abort a DLC without marking it abortedThe ABORT cheque must carry markAborted() and only zero-value self-calls, checked by frame introspection.
Dust-deposit to block the other side's abortA side counts as funded only at its full stake, and deposits are capped at the stake.
Oracle freezes a deadman accountattest() only works on fixed-deadline events. A heartbeat event can only end EXPIRED.
Owner drains the account after it expireswithdraw() is blocked while a rescue is pending: EXPIRED, not yet rescued, inside the window.
A losing sibling lands tooIt shares the winner's nonce slot, which the winner consumed.
The promoting node goes downNode B promotes 30 s after it saw the latch settle. Both nodes persist their park area.

Limits

  • The latch and its oracle are trust points. Limbo does not make them trustless.
  • A park node is a relay you hand bytes to. The claim is a standard, permissionless behaviour, not a trustless node.
  • The winner can still submit after the trigger. A loser is invalid only once the winner lands.
  • Admission uses per-deploy templates, not an interface any account can implement.
  • Caps are first-come, and losers are evicted without waiting for reorg safety.
  • Gossip leaks the trigger and timing. There is no privacy claim.
  • The frame-introspection opcodes are mocked in Foundry and only exercised on the devnet.
  • Devnet only, unaudited.

What comes next

The v2 draft is written but not implemented:

  • Interface-based admission. Any account exposing trigger() and requiredSigners() can be parked, with no per-deploy node configuration.
  • Caps ranked by stake. Occupying a trigger costs stake linear in the slots taken.
  • Reorg-safe eviction. Losing siblings are kept until the winner is confirmed.
  • Fee ladders. The same outcome signed at several fee caps, so a parked transaction stays includable when the base fee moves.

Glossary

Latch
A write-once contract. Each event reads UNSET until exactly one transition to YES, NO or EXPIRED.
Trigger
The tuple (latch, eventId, expectedTag) a parked transaction depends on, signed inside self_verify.
Cheque
A fully signed frame transaction that waits on a trigger. Our word, not the EIP's.
Park node
A node that admits, holds, revalidates and promotes parked transactions.
Park area
The node's set of parked transactions. Separate from the live mempool.
Sibling
Another signed value of the same (sender, nonce key, nonce seq). At most one can ever land.
Template
An allow-listed account: address, code hash, latch, event, allowed tags and signers.
Promotion
Sending a parked transaction's exact bytes to the live mempool once its tag matches.
Eviction
Dropping a parked transaction that can no longer land. Never simulated.