# SolMachina Priority Fee Oracle

> SolMachina Priority Fee Oracle is a paid API for AI agents from api.solmachina.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns current Solana network priority fee percentiles and suggested fee bands (economy, normal, fast, aggressive) for optimal transaction prioritization

## Facts

- Endpoint: GET https://api.solmachina.com/v1/priority-fee
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/solmachina-priority-fee-oracle-71801487
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_N4oQse9v79AQg4m8zAe0q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability solmachina-priority-fee-oracle-71801487
```

Example prompt: What priority fee should I use to get my Solana swap confirmed quickly right now — give me the fast and aggressive fee bands, and narrow the sample to this AMM pool: 58oQChx4yWmvKnvse9NqhUiLtKdnzjUcpAVQeZuKe5JF.

## When to prefer this

Use this endpoint when an AI agent needs to set or recommend a Solana priority fee before submitting a transaction, especially in DeFi contexts where landing speed matters. It is superior to hard-coded fee defaults or generic RPC fee estimates because it returns percentile breakdowns and named bands that map directly to transaction urgency levels. The optional account-scoping feature makes it especially valuable for AMM interactions where pool-specific contention differs from global network fees. Requires no API key — payment is per-call via x402 USDC on Solana mainnet.

## Known failure modes

- Invalid or non-base58 account address returns a 400 error
- Accounts parameter references an address with no recent write-lock history, yielding a sparse or fallback sample
- Network congestion or RPC unavailability may cause 503 responses
- Payment failure over x402 (insufficient USDC balance) blocks the call
- Stale fee data if sampled during a low-activity window may underestimate required fees during sudden congestion spikes

## How this service works

Before an AI agent executes on Solana, it asks SolMachina: risk + a decision (EXECUTE/REVIEW/REJECT) + an SMRI score + a signed receipt, paid per call over x402 in USDC. Trust-first — cites every source, says 'unknown' over guessing. No account, no API key.

## Output

Returns a JSON object with the fee unit (typically micro-lamports), four percentile fee levels (p50, p75, p90, p99) reflecting recent on-chain activity, and four named suggested bands — economy, normal, fast, and aggressive — that the agent can directly use as the prioritizationFeeLamports value when submitting a Solana transaction.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "accounts": {
   "type": "string",
   "description": "Optional comma-separated base58 addresses to narrow the fee sample to transactions that write-locked them (e.g. a hot AMM pool)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "unit": {
   "type": "string"
  },
  "percentiles": {
   "type": "object",
   "properties": {
    "p50": {
     "type": "integer"
    },
    "p75": {
     "type": "integer"
    },
    "p90": {
     "type": "integer"
    },
    "p99": {
     "type": "integer"
    }
   }
  },
  "suggestedBands": {
   "type": "object",
   "properties": {
    "fast": {
     "type": "integer"
    },
    "normal": {
     "type": "integer"
    },
    "economy": {
     "type": "integer"
    },
    "aggressive": {
     "type": "integer"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/solmachina-priority-fee-oracle-71801487/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.solmachina.com](https://www.zero.xyz/host/api.solmachina.com/llms.txt)
