fee_oracle_recipe
Solana landing recipe: one call that fuses the fee oracle's /estimate and /optimize — send an unsigned transaction, get the simulated compute-unit limit, priority-fee tiers (economy=p50, balanced=p75, fast=p95) with the chosen tier marked, the expected total fee, the ready-to-sign rewritten transaction, and a precomputed 3-rung escalation ladder. Optional fee_cap_lamports: if the chosen tier exceeds it, the answer flags cap_exceeded and returns no rewritten transaction. Paid: $0.01 flat per call via x402. Free pre-check at POST /toll/fees/recipe/preflight (same JSON body) validates structurally and states the exact price before payment; our-side failure after settlement queues an automatic refund intent (you only pay for delivered answers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urgency | No | economy=p50, balanced=p75, fast=p95 priority-fee percentile; selects the tier baked into rewritten_tx. | balanced |
| fee_cap_lamports | No | Optional max total fee in lamports. If the chosen tier's expected total fee exceeds it, the answer carries cap_exceeded:true and rewritten_tx:null — never an over-cap transaction. | |
| transaction_base64 | Yes | Unsigned Solana transaction, base64 (same field as /estimate and /optimize). Required. |