{"uid":"cap_1nTPYhlxLGTeoL-PEdb6I","slug":"beggar-bot-l1-fee-estimator-base-mainnet-6b184333","name":"Beggar Bot L1 Fee Estimator (Base mainnet)","description":"Paid: /v1/verify, /v1/risk, /v1/receipt cost $0.01 USDC per call on Base mainnet via x402 (payTo 0x719227f384b66BFEF00093D6d8d32fA9dC2B40e7); utilities analyze Base mainnet (USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) by default, network=base-sepolia optional; /v1/receipt/verify and discovery files are free. Operator: Beggar Bot.","url":"https://beggar-bot-demand.beggarbot.workers.dev/v1/l1fee?utm_source=zero.xyz","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":{"data":{"type":"string","description":"hex tx bytes (optional)"},"kind":{"type":"string","description":"native_transfer|erc20_transfer|swap"},"chain":{"type":"string","description":"base|optimism|base-sepolia"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_GPuUEh2vFzcyRHp7R_zHn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Estimates the L1 (Ethereum mainnet) data fee component for a transaction on Base or Optimism OP-stack chains","exampleAgentPrompt":"What's the estimated L1 fee for an ERC-20 transfer on Base mainnet — can you calculate it using the raw transaction hex 0x02f87...?","exampleUseCases":[{"title":"Pre-flight L1 fee check for USDC transfer","prompt":"Before I send USDC on Base, estimate the L1 data fee for a standard ERC-20 transfer so I know the total cost."},{"title":"L1 fee comparison across OP-stack chains","prompt":"Can you estimate the L1 fee for the same native transfer transaction on both Base and Optimism so I can compare costs?"},{"title":"Swap fee breakdown on Base","prompt":"I'm about to execute a swap on Base mainnet — what's the L1 fee component I should expect? The transaction type is a swap."}],"resultDescription":"A JSON object containing the estimated L1 fee (in wei or USDC) for the given transaction type and chain, broken down by the data-posting cost to Ethereum mainnet from the specified OP-stack L2.","failureModes":["Invalid or malformed hex transaction bytes returns an error","Unsupported chain value returns a 400 or validation error","Missing required query parameters may result in a default estimate or error","Payment not provided or insufficient USDC results in HTTP 402 Payment Required","Network issues with Base/Optimism RPC nodes may cause timeouts"],"whenToPreferThis":"Use this endpoint when you need to accurately estimate the L1 (Ethereum mainnet) data fee portion of a transaction on Base or Optimism before submitting it. This is distinct from L2 execution gas; the L1 fee is the rollup's cost to post calldata to Ethereum. Prefer this when building cost-aware agents that need to quote total transaction fees on OP-stack chains, especially for USDC transfers, native transfers, or swaps.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:44:02.853Z","isFirstParty":false,"canonicalSlug":"beggar-bot-l1-fee-estimator-base-mainnet-6b184333"}