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
| Situation | Where | Code | Charged | What to do |
|---|---|---|---|---|
The type cannot reach the minLevel you asked for | get_verified_data | LEVEL_UNREACHABLE | No | Lower minLevel if that is acceptable, or act without it |
speed: "fast" with a minLevel that fast cannot reach | get_verified_data | TBC | No | Drop one of the two |
minLevel: "anchored" with requireOnChainAnchor and no chain anchor available | get_verified_data | TBC | No | Accept 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_transaction | TBC | No | Build a covered route, or do not sign |
| A policy threshold is crossed | preflight_transaction, evaluate_gate | refuse with policy_reasons[].tripped | No | Do not sign |
| Chain facts refuse (e.g. stale blockhash, hidden instruction) | preflight_transaction | refuse with consensus_reasons[] | No | Do not sign; rebuild |
| Bytes signed differ from bytes verified | preflight_transaction | Layer 4 refuse | No | Re-run Preflight on the final bytes |
| Pool is not Raydium CPMM or Meteora DAMM V2 | evaluate_gate | TBC | No | Use a covered pool |
| Type is not watchable | create_watch | TBC | No | Use one of the five watchable types |
watchId not yours or does not exist | delete_watch, poll_watch | TBC | No | Check list_watches |
| Trace from another account | get_trace | TBC | No | You can only read your own traces |
“TBC” marks codes that exist as behaviour but whose exact string is not yet published.