{"uid":"cap_hpLc4oZXa8UhND88RodAg","slug":"api-web3identity-com-31ac26e4","name":"Layer 2 Solutions Side-by-Side Comparison","description":"Side-by-side comparison of Layer 2 solutions","url":"https://api.web3identity.com/api/l2/comparison","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":{"comparison":{"type":"array"}}}}}}},"responseSchema":null,"example":null,"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_ZAleZqVhJYtdPjugHVcTW","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 a side-by-side comparison of major Ethereum Layer 2 solutions including metrics, features, and network data","exampleAgentPrompt":"Give me a side-by-side comparison of the major Ethereum Layer 2 solutions — I want to see how Arbitrum, Optimism, zkSync, and Polygon stack up against each other on fees, speed, and key metrics.","exampleUseCases":null,"resultDescription":"An array of Layer 2 protocol comparison objects, each containing network metrics, feature flags, pricing data, and other attributes useful for evaluating and contrasting different L2 scaling solutions.","failureModes":["402 Payment Required if x402 payment not included or insufficient","500 Internal Server Error if upstream data sources are unavailable","Empty comparison array if no L2 data is currently indexed","Stale data if underlying L2 metrics have not been recently updated"],"whenToPreferThis":"Use this endpoint when an agent needs to present or reason over multiple Layer 2 solutions simultaneously for comparison purposes — especially when the user wants to evaluate trade-offs across networks rather than fetch data for a single specific L2.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:10:24.645Z","isFirstParty":false}