MeteraDOCS
Request access

Reference

Errors and refusals

A refusal is an answer, not an error. It comes back with status: "refused", a code, a human-readable reason and cost: 0. Your agent should branch on it, not retry it.

ts
const r = await metera.get_verified_data({ type: "solana.sol_balance", params: { address }, minLevel: "consensus" });

if (r.status === "refused") {
  // Nothing was charged. Decide with what you have, ask for a lower level, or stop.
  log(r.code, r.reason);
} else if (r.caveat) {
  // Delivered, but weaker than it looks. Surface the caveat before acting.
}

Every case

SituationWhereCodeChargedWhat to do
The type cannot reach the minLevel you asked forget_verified_dataLEVEL_UNREACHABLENoLower minLevel if that is acceptable, or act without it
speed: "fast" with a minLevel that fast cannot reachget_verified_dataTBCNoDrop one of the two
minLevel: "anchored" with requireOnChainAnchor and no chain anchor availableget_verified_dataTBCNoAccept an off-chain signed anchor, or a lower level
Transaction is not a swap Preflight can verify (another Jupiter shape, Meteora swap2 ExactOut, Transaction v1)preflight_transactionTBCNoBuild a covered route, or do not sign
A policy threshold is crossedpreflight_transaction, evaluate_gaterefuse with policy_reasons[].trippedNoDo not sign
Chain facts refuse (e.g. stale blockhash, hidden instruction)preflight_transactionrefuse with consensus_reasons[]NoDo not sign; rebuild
Bytes signed differ from bytes verifiedpreflight_transactionLayer 4 refuseNoRe-run Preflight on the final bytes
Pool is not Raydium CPMM or Meteora DAMM V2evaluate_gateTBCNoUse a covered pool
Type is not watchablecreate_watchTBCNoUse one of the five watchable types
watchId not yours or does not existdelete_watch, poll_watchTBCNoCheck list_watches
Trace from another accountget_traceTBCNoYou can only read your own traces

“TBC” marks codes that exist as behaviour but whose exact string is not yet published.