{"uid":"cap_1ZXMDfSy322FIFGkuG3RK","slug":"solana-rail-agent-payment-cost-budgeting-priority-fee-compute-unit-9d9f0a7e","name":"Solana Rail Agent Payment Cost Budgeting (Priority Fee, Compute-Unit, Rent-Exempt)","description":"Deterministic Solana settlement-cost budgeting procedure for agents paying or pricing x402 micro-payments. Inputs: transaction type (SPL transfer, first-time ATA creation, CPI, PDA), recent block fee history, congestion state, payment amount. Outputs: a land-in-time priority fee ladder (low/normal/high bids vs recent median compute-unit price), a compute-unit budget table per op type, rent-exempt minimum checks for derived accounts, and a fee-adder formula to price Solana-based x402 services","url":"https://k2so.wrong.systems/api/services/solana-rail-agent-payment-cost-budgeting-priorit","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"meta":{"enum":["0","1"],"type":"string","description":"Set to 1 for free metadata JSON (no payment required)"},"topic":{"type":"string","description":"Optional topic override for the decision procedure"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","title":"Solana rail agent payment cost budgeting: priority fee, compute-unit, and rent-e paid response","$schema":"https://json-schema.org/draft/2020-12/schema","required":["ok","paid","service","provider","result"],"properties":{"ok":{"type":"boolean"},"paid":{"type":"boolean"},"result":{"type":"object","required":["ok","service"],"properties":{"ok":{"type":"boolean","description":"Handler success"},"brief":{"type":"string","description":"Decision procedure prose for agents"},"model":{"type":"string"},"topic":{"type":"string"},"service":{"type":"string","description":"Service slug"},"procedure":{"type":"string"},"generatedAt":{"type":"string","description":"ISO-8601 timestamp"},"generationSource":{"enum":["llm","reasoning","deterministic"],"type":"string"}}},"payment":{"type":"object","properties":{"code":{"type":"string"},"payer":{"type":"string"},"detail":{"type":"string"},"selfPay":{"type":"boolean"},"transaction":{"type":"string"}}},"service":{"type":"string"},"provider":{"type":"string","const":"K-2SO"}}}}}}},"responseSchema":{"type":"json","example":{"ok":true,"paid":true,"result":{"ok":true,"brief":"plain prose decision procedure (120+ words)","model":"deepseek/deepseek-v4-flash-0731","topic":"string topic","service":"solana-rail-agent-payment-cost-budgeting-priorit","procedure":"same as brief","generatedAt":"2026-01-01T00:00:00.000Z","generationSource":"deterministic"},"service":"solana-rail-agent-payment-cost-budgeting-priorit","provider":"K-2SO"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DboE52-6QRjGYtlT5f2Qr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a deterministic cost-budgeting procedure for Solana-based x402 micro-payments, including priority fee ladders, compute-unit budgets, rent-exempt minimums, and fee-adder formulas.","exampleAgentPrompt":"I'm about to send an SPL token transfer on Solana as an x402 micro-payment — can you give me the priority fee ladder, compute-unit budget, and rent-exempt checks I need so I don't underpay or get the transaction dropped during moderate congestion?","exampleUseCases":[{"title":"Pricing x402 service on Solana","prompt":"I'm building an x402 service that settles on Solana and need to know what fee-adder formula to use so my pricing covers priority fees, compute units, and any rent-exempt costs for derived accounts."},{"title":"Avoiding dropped transactions during congestion","prompt":"Solana is congested right now — give me the low, normal, and high priority fee bids relative to the recent median compute-unit price so my agent's x402 payment lands on time."},{"title":"Budgeting first-time ATA creation cost","prompt":"My agent is paying someone who has never held this token before, so a new associated token account needs to be created — what's the rent-exempt minimum and compute-unit budget I should allocate for that first-time ATA creation?"}],"resultDescription":"A JSON payload containing: a plain-prose decision procedure (120+ words), a priority fee ladder with low/normal/high bids versus recent median compute-unit price, a compute-unit budget table broken down by operation type (SPL transfer, ATA creation, CPI, PDA), rent-exempt minimum checks for derived accounts, and a fee-adder formula for pricing Solana-based x402 services. Also includes metadata such as model used, generation source, and ISO-8601 timestamp.","failureModes":["Payment not included or insufficient — returns 402 Payment Required with payment instructions","Invalid or missing query parameters — returns error with schema validation details","Upstream LLM or reasoning engine unavailable — may return error or degraded response","Network timeout to k2so.wrong.systems — no response received","Requested topic override not recognized — may fall back to default procedure"],"whenToPreferThis":"Choose this endpoint when an AI agent needs deterministic, structured Solana fee-budgeting guidance for x402 micro-payments — especially when dealing with SPL transfers, first-time ATA creation, CPI calls, or PDA-derived accounts. It is preferable over generic blockchain fee estimators because it is specifically tuned for x402 payment rails, provides a tiered priority fee ladder keyed to recent block history, and outputs a ready-to-use fee-adder formula for service pricing rather than just a single fee estimate.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T19:03:58.400Z","isFirstParty":false}