
Landed, failed, expired, needs action
The four states every agent should report. For builders and product teams. Light on code. 7 minute read.
Here is a sentence that has cost people real money: “Transaction sent.”
It sounds like an outcome. It isn’t. When an RPC accepts your transaction, all it promises is that it will try to forward it. The transaction can still land, fail, or quietly disappear. An agent that stops at “sent” is not reporting what happened. It is reporting hope.
If you are building a product where an agent moves money, the single most useful decision you can make is this: every execution ends in exactly one of four states, and your agent always knows which one.
Why “sent” breaks products
Agents don’t get bored and they don’t double-check. If an agent believes a payment went through, it moves on. If it believes it didn’t, it tries again.
That means an ambiguous result is worse than a bad one. A clear failure is easy to handle. An unclear success leads to two very expensive mistakes:
- Paying twice. The agent assumes the first attempt failed, builds a new transaction and signs it. Both land.
- Acting on money that never moved. The agent assumes success, tells the user it paid, and moves on to the next step with a balance that isn’t there.
Both come from the same gap: the agent was never told how the story ended.
The four states
- Landed. The transaction is confirmed on-chain and what executed matches what was approved. The agent can move on.
- Failed. The transaction was included, but the program returned an error. Fees were paid and nothing else happened. The agent gets the reason, not a retry loop.
- Expired. The transaction can no longer land, because its blockhash is past its last valid block height. Nothing moved, and it is now safe to build a new one.
- Needs action. Something only a person can resolve: a policy refused it, the signer was unavailable, or the outcome can’t be established. The agent stops and says so.
Nothing in between. “Pending” is a moment, not an ending, and “sent” is not a state at all.
Expired is a fact, not a timeout
The most common mistake is treating “I haven’t seen it yet” as “it failed”. A timeout tells you nothing. Expiry, on Solana, is provable: every transaction carries a blockhash, and once the chain passes that blockhash’s last valid block height, the transaction can never be included.
That is the only safe moment to try again with new bytes. Before it, a second signature can mean a second payment. After it, there is nothing left to race against.
What each state means for your product
- Landed: show it as done, with a link to the transaction.
- Failed: show the program’s reason in plain words, and let the agent decide whether the plan still makes sense.
- Expired: say nothing moved. Rebuilding is safe and usually automatic.
- Needs action: put a person in front of it, with everything they need to decide.
How Metera reports it
Every execution that goes through Metera ends in exactly one of these four states, with the reason attached and a receipt showing that the executed hash equals the verified hash. Your agent reads a status, not raw logs, and never has to guess what “sent” meant.
Agents decide. Metera executes.