MeteraDOCS
Request access

WaitlistWaitlist

Execution layer

Verify and Preflight tell your agent whether something is true and safe. The execution layer goes the rest of the way: your agent states the outcome, and Metera checks, builds, signs in your enclave, lands it and tells you how it ended.

Status: waitlist. Metera is onboarding its first agent teams. This section describes the execution layer as designed. Endpoint names other than /v1/preflight will be published with general availability.

One call replaces the wallet, policy, builder, signer and landing code you would otherwise maintain.

The six steps

Every execution runs the same pipeline. A step that fails stops the pipeline and the reason is recorded.

  1. Policy. The intent is checked against your rules before anything is built.
  2. Build. Metera constructs the transaction for the outcome you asked for (e.g. via Raydium or Meteora).
  3. Verify. The on-chain state it will act on is checked: pool reserves, price impact, slippage guard, account owners. This is Preflight running on the bytes Metera just built.
  4. Sign. Your delegated signer signs inside your Turnkey enclave. Metera never sees the key.
  5. Land. The transaction is routed through Jito, Astrolane or Temporal Nozomi, with confirmation handled.
  6. Reconcile. The execution ends in exactly one final state, with a reason.

Intent

Your agent sends what it wants, not how to do it. It never touches RPCs, instructions or signers.

ts
const intent = intentFrom("swap 250 USDC to SOL");

Policy

Set once, enforced on every call, before a single signature.

json
{
  "name": "treasury-default",
  "programs": ["raydium", "meteora"],
  "mints": ["USDC", "SOL"],
  "max_notional": "500 USDC",
  "price_impact": "<= 100 bps",
  "daily_cap": "2000 USDC"
}
RuleWhat it bounds
Allowed programsOnly the protocols you approve
Allowed mintsOnly the assets you approve
Max notionalMaximum size per transaction
Price impactMaximum impact, in basis points
Daily capA hard ceiling per day, no matter what the agent asks for

If the agent asks for 2,400 USDC against a 2,000 USDC daily cap, the execution is blocked by policy and nothing is signed.

The four final states

StateMeaningWhat your agent should do
LANDEDConfirmed on-chain.Move on.
FAILEDDid not land. You get the reason, not a retry loop.Read the reason. Decide whether to try a new execution.
EXPIREDThe window passed before it landed. Nothing is resent blindly.Re-quote and submit a new execution if still wanted.
NEEDS_ACTIONSomething needs a human. Metera stops and tells you.Escalate to a person.

There is no fifth state and no “sent”. “Sent” only means an RPC accepted the transaction; it is not an outcome. Failed transactions are never resent automatically, so a failure cannot turn into a double spend.

The trail

Every execution keeps a full trail: what was requested, signed, sent and landed. Your agent reads a status, not raw logs.

text
$ curl -X POST https://api.metera.xyz/v1/preflight -d @intent.json
Metera execution · exec_8f2c
│ Step 1/6: Checking policy (5 rules) ........ pass
│ Step 2/6: Building transaction via Meteora ..
│ Step 3/6: Verifying on-chain state ..........
│ Step 4/6: Signing with delegated signer ..... signed
│ Step 5/6: Submitting via Jito ............... sent
│ Step 6/6: Confirming ........................ done
■ Landed. Trail saved to exec_8f2c.

Execution rebates

When execution earns a rebate, it is returned to you. Rebates are paid in SOL. They depend on execution and are not guaranteed, so treat them as a possible discount, never as expected income.

Coming next

Perpetuals executed by your agent, with the same pipeline and the same four states, are planned for 2027.