{"uid":"cap_jMr9W-8c7u2sxJRPsRR1l","slug":"sparks-re-api-base-gas-price-network-congestion-lookup-3d214e7b","name":"Sparks RE API — Base Gas Price & Network Congestion Lookup","description":"AI-powered real estate tools for property normalization, FHA compliance scanning, and investor metrics calculation. Powered by x402 micropayments.","url":"https://sparks-re-api.sparksdigital-re.workers.dev/utilities/base-gas?utm_source=zero.xyz","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","properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"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":{"type":"json","example":{"network":"eip155:8453","latest_block":38291042,"base_fee_gwei":0.0011,"gas_price_wei":1250000,"timestamp_utc":"2026-10-25T23:55:00.000Z","gas_price_gwei":0.00125,"congestion_level":"LOW","agent_recommendation":"EXECUTE_NOW","block_gas_utilization_percent":32.4,"estimated_usdc_transfer_gas_usd":0.000211}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_f1elNIW1GzWX-kYMQ3ELB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns current Base network gas price, congestion level, and agent recommendation for whether to execute a blockchain transaction now.","exampleAgentPrompt":"Before sending that on-chain USDC payment, check the current gas price on the Base network and tell me if now is a good time to execute — give me the congestion level and estimated transfer cost.","exampleUseCases":[{"title":"Optimal transaction timing for agent","prompt":"Check Base network gas right now and tell me if I should execute my USDC micropayment immediately or hold off — what's the congestion level and your recommendation?"},{"title":"Cost estimate before on-chain payment","prompt":"How much will it cost in gas to send a USDC transfer on Base right now? I want to know the estimated USD cost before I proceed."},{"title":"Real-time gas dashboard for DeFi bot","prompt":"Pull the latest Base network gas stats — base fee in gwei, current block utilization, and whether conditions are LOW, MEDIUM, or HIGH congestion — so I can decide when to batch my transactions."}],"resultDescription":"Returns a JSON object with the current Base network (eip155:8453) gas metrics: latest block number, base fee in gwei, gas price in wei and gwei, block gas utilization percentage, estimated USDC transfer cost in USD, a congestion level enum (e.g. LOW/MEDIUM/HIGH), an agent_recommendation string (e.g. EXECUTE_NOW), and a UTC timestamp.","failureModes":["Base RPC node unavailable — may return 503 or stale data","x402 micropayment not fulfilled — returns 402 Payment Required","Cloudflare Worker timeout if Base RPC is slow — may return 504","Malformed request body returns 400 with schema validation error"],"whenToPreferThis":"Use this endpoint when an AI agent needs to make a real-time decision about whether to execute a Base-chain transaction — especially for x402 micropayment flows where gas cost affects ROI. Prefer this over generic gas APIs when you need a direct agent_recommendation signal and USDC-denominated cost estimates rather than raw gwei values alone.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T18:35:52.599Z","isFirstParty":false,"canonicalSlug":"sparks-re-api-base-gas-price-network-congestion-lookup-3d214e7b"}