{"uid":"cap_n215tCH8ZdOtx-672Xiuq","slug":"oblique-markets-solana-priority-fee-network-state-ec046dd5","name":"Oblique Markets Solana Priority Fee & Network State","description":"Use when a Solana-side agent needs the current network state before sending a transaction, as often as it likes. Returns the current slot, block height and block time (unix and ISO) plus a prioritization-fee summary (min, median, p75, max in microlamports per compute unit, slots sampled, suggested fee = p75) from the public RPC, optionally scoped to up to five writable accounts. $0.002 per call via x402 on Solana or Base, or MPP on Tempo; no accounts.","url":"https://api.oblique.markets/api/v1/paid/solana-priority-fee","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":{"accounts":{"type":"string","description":"Optional: up to 5 comma-separated base58 pubkeys; the fee sample is then limited to transactions that lock these accounts writable."}}}},"additionalProperties":false},"output":{"type":"object","properties":{"rpc":{"type":"object","properties":{"hosts":{"type":"array","items":{"type":"string"}},"methods":{"type":"array","items":{"type":"string"}},"endpoint_class":{"type":"string"}}},"slot":{"type":"integer"},"chain":{"type":"string"},"receipt":{"type":"object","properties":{"sku":{"type":"string"},"payer":{"type":"string"},"payment_network":{"type":"string"}}},"freshness":{"type":"object","properties":{"cache":{"type":"string"},"served_at":{"type":"string"},"ttl_seconds":{"type":"integer"},"cache_age_seconds":{"type":"integer"}}},"block_time":{"type":"string"},"commitment":{"type":"string"},"block_height":{"type":"integer"},"priority_fee":{"type":"object","properties":{"max":{"type":"integer"},"min":{"type":"integer"},"p75":{"type":"integer"},"unit":{"type":"string"},"basis":{"type":"string"},"scope":{"type":"string"},"median":{"type":"integer"},"accounts":{"type":"array"},"slot_range":{"type":"object","properties":{"to":{"type":"integer"},"from":{"type":"integer"}}},"slots_sampled":{"type":"integer"},"zero_fee_slots":{"type":"integer"},"suggested_priority_fee":{"type":"integer"}}},"retrieved_at":{"type":"string"},"block_time_unix":{"type":"integer"}}}}},"responseSchema":{"type":"json","example":{"rpc":{"hosts":["solana-rpc.publicnode.com"],"methods":["getSlot","getRecentPrioritizationFees","getBlockHeight","getBlockTime"],"endpoint_class":"public"},"slot":445131207,"chain":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","receipt":{"sku":"solana-priority-fee","payer":"AisyQi7zL7cR3q6sftsv7aVAcLGKb5PR23u3nwwBtaJy","payment_network":"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"},"freshness":{"cache":"miss","served_at":"2026-09-07T22:01:06.418Z","ttl_seconds":8,"cache_age_seconds":0},"block_time":"2026-09-07T22:01:05.000Z","commitment":"confirmed","block_height":423288514,"priority_fee":{"max":200000,"min":0,"p75":2500,"unit":"microlamports_per_compute_unit","basis":"p75 of per-slot minimum prioritization fees over the sampled slots","scope":"network","median":1,"accounts":[],"slot_range":{"to":445131207,"from":445131058},"slots_sampled":150,"zero_fee_slots":61,"suggested_priority_fee":2500},"retrieved_at":"2026-09-07T22:01:06.412Z","block_time_unix":1788818465}},"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_z5_pIIzXZNK6VHn0jPQcc","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 current Solana network state (slot, block height, block time) plus a prioritization-fee summary (min, median, p75, max in microlamports/CU) optionally scoped to up to five writable accounts, charged $0.002 per call via x402.","exampleAgentPrompt":"Before I submit this Solana transaction, check the current network state — I need the latest slot, block height, block time, and the suggested priority fee in microlamports per compute unit, scoped to these two writable accounts: So11111111111111111111111111111111111111112 and EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.","exampleUseCases":[{"title":"Pre-transaction fee estimation for DeFi swap","prompt":"I'm about to send a Solana swap transaction touching the USDC and SOL token accounts EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v and So11111111111111111111111111111111111111112 — what's the current suggested priority fee in microlamports per compute unit so I can set it correctly?"},{"title":"Network state check for on-chain agent loop","prompt":"My Solana agent needs the current slot, block height, and ISO block time right now — no specific accounts, just the general network state and the p75 priority fee — so it can decide whether to proceed with the next instruction."},{"title":"Account-scoped congestion monitoring","prompt":"Can you pull the priority fee stats — min, median, p75, and max — specifically scoped to the writable account 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin on Solana so I know how competitive I need to be to land my transaction?"}],"resultDescription":"A JSON object containing: current Solana slot (integer), block height (integer), block time as both Unix timestamp and ISO string, commitment level, chain identifier, and a priority_fee object with min, median, p75, max, and suggested_priority_fee (all in microlamports per compute unit), number of slots sampled, zero-fee slot count, slot range sampled, scope description, and optionally the accounts used for scoping. Also includes freshness metadata (cache status, TTL, served_at) and payment receipt.","failureModes":["Invalid base58 pubkey in accounts param — returns 400 or validation error","More than 5 accounts provided — request rejected or truncated","Payment not received or x402 handshake failure — 402 response requiring payment","Solana RPC temporarily unavailable — 503 or timeout","Stale cache served if TTL not yet expired — check cache_age_seconds in response"],"whenToPreferThis":"Choose this endpoint when a Solana-side AI agent needs a single, pay-per-call, accountless preflight call that combines network state (slot, block height, block time) with fee estimation in one response. Prefer it over raw RPC calls when you need no API key, instant x402 micropayment billing at $0.002, and optional account-scoped fee sampling for precision fee-setting before transaction submission.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:45:37.132Z","isFirstParty":false}