{"uid":"cap_SWECwVQyzGg_rLxr0Dd18","slug":"api-web3identity-com-ec8b1473","name":"L2 Network Fee Comparator","description":"Compare transaction fees across Layer 2 networks","url":"https://api.web3identity.com/api/l2/fees","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"l2s":{"type":"array","items":{"properties":{"tps":{"type":"number"},"name":{"type":"string"},"avgFee":{"type":"number"},"savingsVsL1":{"type":"string"}}}}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{}}},"response":{"l2Fees":[{"name":"MM Stableswap Polygon","fees24h":0},{"name":"Arbitrum Exchange V2","fees24h":0},{"name":"Arbitrum Exchange V3","fees24h":0},{"name":"SwapBased AMM","fees24h":null},{"name":"BaseSwap V2","fees24h":5,"change24h":-16.67},{"name":"Alien Base V2","fees24h":102,"change24h":-20.93},{"name":"EDEBASE","fees24h":null},{"name":"SwapBased Concentrated Liquidity","fees24h":null},{"name":"BaseX","fees24h":1,"change24h":-50},{"name":"BasePaint","fees24h":594,"change24h":233.71},{"name":"Coinbase Wrapped Staked ETH","fees24h":55079,"change24h":-0.57},{"name":"basedmarkets","fees24h":null},{"name":"Voodoo Trade Base","fees24h":0},{"name":"Basecamp","fees24h":0},{"name":"Coinbase Commerce","fees24h":0},{"name":"Base App","fees24h":10535,"change24h":-64.78},{"name":"Coinbase Bridge","fees24h":0},{"name":"Arbitrum Timeboost","fees24h":4246,"change24h":-14.41},{"name":"BasedApp","fees24h":1937,"change24h":-17.43},{"name":"Lootbase","fees24h":305,"change24h":-10.82},{"name":"Lunarbase","fees24h":19,"change24h":-87.25},{"name":"RamsesX Polygon CL","fees24h":237,"change24h":70.5},{"name":"RamsesX Polygon Legacy","fees24h":0},{"name":"RamsesX Arbitrum CL","fees24h":1,"change24h":0},{"name":"RamsesX Arbitrum Legacy","fees24h":0},{"name":"Basenames","fees24h":457,"change24h":102.21},{"name":"Polygon","fees24h":92448,"change24h":6.98},{"name":"Arbitrum","fees24h":9079,"change24h":-8.55},{"name":"Base","fees24h":67212,"change24h":-28.42},{"name":"Scroll","fees24h":125,"change24h":635.29},{"name":"Linea","fees24h":3808,"change24h":30.01},{"name":"ZKsync Era","fees24h":257,"change24h":-27.4},{"name":"Arbitrum Nova","fees24h":30,"change24h":3.45},{"name":"Polygon zkEVM","fees24h":3,"change24h":0}],"source":"defillama","timestamp":"2026-06-13T04:18:39.851Z"}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.010000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.010000/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_JESsm4NoO0GzBEbG3G_aH","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":"Compares transaction fees, TPS, and savings vs L1 across Layer 2 blockchain networks","exampleAgentPrompt":"Can you show me a comparison of transaction fees across the major Layer 2 networks right now, including how much I'd save versus transacting on Ethereum mainnet?","exampleUseCases":null,"resultDescription":"Returns an array of Layer 2 network objects, each with the network name, average transaction fee (in USD or ETH), transactions per second (TPS), and a savings percentage compared to Ethereum L1.","failureModes":["Upstream L2 data unavailable — empty or partial array returned","Payment not processed — 402 response requiring x402 payment of $0.01 USDC","Rate limiting — too many requests in a short window","Network timeout if L2 data sources are slow to respond"],"whenToPreferThis":"Use this endpoint when an agent needs a real-time, multi-network comparison of L2 transaction costs and throughput in a single call, rather than querying each L2 individually. Ideal for helping users decide which Layer 2 to use for a transaction, or for DeFi routing logic that optimizes for fee minimization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:42:19.281Z","isFirstParty":false}