{"uid":"cap_QmrOyaZGxXAfC9l4xTy6M","slug":"macaroon-network-chain-state-snapshot-76c5d918","name":"Macaroon Network Chain State Snapshot","description":"Current block number and gas price for Base and Polygon mainnet, fetched live via RPC on every call. Unlike this catalogue's corpus-search listings, this makes a real outbound network call on purchase -- freshness is the product, not a stored snapshot.","url":"https://api.macaroonnetwork.com/execute/chain-state-snapshot-v1","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"type":"object"},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"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_iROmIibzDEcO-JgW58jQt","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches live current block number and gas price for Base and Polygon mainnet via real-time RPC calls","exampleAgentPrompt":"What's the current block number and gas price on Base and Polygon mainnet right now? I need a live snapshot, not cached data.","exampleUseCases":[{"title":"Gas price check before DeFi transaction","prompt":"Before I submit this swap on Base, can you check the live gas price and current block number on Base mainnet so I know what to expect to pay?"},{"title":"Real-time Polygon gas monitoring for batch jobs","prompt":"What's the current gas price on Polygon mainnet right now? I want to decide if it's cheap enough to batch my NFT mints."},{"title":"Cross-chain block height comparison","prompt":"Can you pull the live block number and gas price for both Base and Polygon at this exact moment so I can compare chain activity?"}],"resultDescription":"Returns the current block number and gas price for both Base and Polygon mainnet, fetched live via RPC at the time of the call — not a cached or indexed snapshot. Provides freshness-guaranteed chain state data useful for gas estimation, timing decisions, and chain monitoring.","failureModes":["RPC provider outage causes call to fail or return stale data","Network timeout if upstream RPC endpoint is slow to respond","Payment failure if x402 micropayment is not processed correctly","Malformed request body causes 400-level error","Rate limiting or upstream RPC throttling returns error"],"whenToPreferThis":"Use this endpoint when you need guaranteed live, real-time blockchain state (block number and gas price) for Base or Polygon mainnet and cannot tolerate stale cached data. Prefer this over static database lookups or corpus-search endpoints when the freshness of the data matters — such as before submitting a transaction, estimating gas costs, or checking chain liveness. Not suitable for historical block data or chains other than Base or Polygon.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:52:09.586Z","isFirstParty":false}