{"uid":"cap_cd0l0nHpfQ-pXVMzYjrH2","slug":"solmachina-epoch-info-f54cbd6a","name":"SolMachina Epoch Info","description":"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.","url":"https://api.solmachina.com/v1/epoch","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"rate":{"type":"string","description":"Which measured slot-rate to use for the ETA: 'primary', 'alt', or 'both' (default)."}}},"responseSchema":{"type":"object","properties":{"epoch":{"type":"integer"},"slotIndex":{"type":"integer"},"slotsInEpoch":{"type":"integer"},"etaSecondsToEnd":{"type":"integer"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BNdggRMUsQwy0jAEebS-C","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current Solana epoch number, slot index, total slots in epoch, and estimated time remaining until the epoch ends","exampleAgentPrompt":"What's the current Solana epoch, how many slots are left, and how many seconds until it ends? Use both slot-rate measures for the ETA.","exampleUseCases":[{"title":"Schedule on-chain action before epoch rollover","prompt":"I need to know how many seconds are left until the current Solana epoch ends — use both primary and alt slot rates — so I can decide whether to submit my staking transaction now or wait."},{"title":"Monitor epoch transitions in a DeFi dashboard","prompt":"Keep checking the current Solana epoch number and ETA to epoch end every few minutes and alert me when we're within 300 seconds of a new epoch starting."},{"title":"Audit epoch timing for staking reward logic","prompt":"What epoch is Solana currently on, what's my slot index, and how long until this epoch closes? I want both rate estimates so I can verify my staking reward calculations."}],"resultDescription":"Returns a JSON object with the current epoch integer, the current slot index within that epoch, the total number of slots in the epoch, and the estimated seconds remaining until the epoch ends (computed from measured slot rates — primary, alt, or average of both depending on the 'rate' parameter).","failureModes":["Invalid 'rate' parameter value (not 'primary', 'alt', or 'both') returns a 400 error","Payment failure or insufficient USDC balance returns a 402 Payment Required response","Solana RPC node unavailability may cause 503 or delayed responses","Stale slot data if the underlying RPC is lagging behind the canonical chain"],"whenToPreferThis":"Use this endpoint when you need real-time, sourced Solana epoch timing data without setting up an account or API key, and you want to pay per call via x402 USDC micropayments. Prefer it over raw RPC calls when you need a clean, structured response with dual slot-rate ETA estimates and you are operating as an autonomous AI agent in a trust-first DeFi context.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:24.398Z","isFirstParty":false}