{"uid":"cap_2AoD8NDl3MTVYu3qSCEP9","slug":"mach-gallery-base-block-number-a106337f","name":"Mach Gallery Base Block Number","description":"Get the current Base mainnet block number (latest chain height) for an autonomous agent.","url":"https://api.mach.gallery/api/base/block-number?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"network":"eip155:8453","block_number":36000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pqW_OqYCrUd8GFNchEHrm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the current block number on the Base (EVM chain eip155:8453) network, paid per call via x402 USDC microtransaction.","exampleAgentPrompt":"What's the current block number on Base mainnet right now?","exampleUseCases":[{"title":"Confirm transaction finality on Base","prompt":"I just submitted a transaction on Base — can you check what the current block number is so I can figure out how many confirmations it has?"},{"title":"Monitor Base chain progress in real time","prompt":"Keep an eye on the Base block number every minute and let me know once we've passed block 37000000."},{"title":"Sync smart contract logic to chain height","prompt":"What block is Base on right now? I need the current block height to calculate the deadline for my on-chain auction."}],"resultDescription":"Returns a JSON object with the network identifier (e.g. 'eip155:8453' for Base mainnet) and the current block number as an integer (e.g. 36000000).","failureModes":["Payment failure via x402 if USDC balance is insufficient — returns 402 Payment Required","Network or RPC node outage causing unavailability — returns 5xx error","Stale block number if underlying Base RPC node is behind — no explicit error, just slightly outdated value"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, no-subscription, pay-per-call way to fetch the current Base block number without setting up API keys. Ideal for autonomous agents that need occasional on-chain timing data from Base (eip155:8453) and want to pay frictionlessly with USDC via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T00:39:21.984Z","isFirstParty":false,"canonicalSlug":"mach-gallery-base-block-number-a106337f"}