OP-Stack L1 Data Fee (Base / Optimism)
The L1 data-availability fee an OP-stack transaction pays on TOP of its L2 execution gas — usually the larger half of the bill, and the half that every ordinary gas estimator leaves out. Pass data=0x... and get the real L1 fee for THAT transaction; pass bytes=N and get a representative quote. The figure comes from the chain's own GasPriceOracle.getL1Fee (0x420...0F), not from a reimplemented formula — since Fjord the fee depends on FastLZ-compressed size fed through a regression with a 100-byte
Offering
- Provider
- x402-agent-store.rileycraig14.workers.dev
- Method
- GET
- Offering type
- Api Endpoint
- Transport type
- http
- Category
- Api
- Delivery
- Not provided
- Pricing model
- Not provided
- x402 version
- 2
Endpoint context
- URL
https://x402-agent-store.rileycraig14.workers.dev/chain/l1-fee- MIME type
- Not provided
- First seen
- 2026-10-16T02:54:53.696Z
- Last seen
- Tags
- Onchain, RPC, l2, Base, optimism, op-stack, l1-fee, Gas, calldata, cost, data-feed, Crypto, Search, Trading, Utility
Payment pricing
x402 payment terms are the authoritative price for calling this endpoint.
- Payment option 1
- 0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact - Payment option 2
- 0.005 USDC
Atomic price: 5000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
{
"scheme": "exact",
"network": "eip155:8453",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "5000",
"payTo": "0xc91cE6291eDC0713ec753BAFBA002506ffb2b95c"
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "5000",
"payTo": "2147pBT4LxoszjvLeGRxyVzpRnMi986VH3FAoprSs8Ez"
}
]Observed health
- Status
- Healthy
- Latest latency
- 1211 ms
- Average latency
- 1771 ms
- HTTP status
- 402
- Last checked
- Reachability
- 100% over 13 checks
Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.
Input schema
{
"type": "object",
"properties": {
"type": {
"type": "string",
"const": "http"
},
"method": {
"type": "string",
"enum": [
"GET"
]
},
"queryParams": {
"type": "object",
"properties": {
"chain": {
"type": "string",
"description": "base|optimism (OP-stack only)"
},
"bytes": {
"type": "number",
"description": "Transaction size in bytes, 1-200000 (default 1200 — roughly a plain ERC-20 transfer). Ignored when data is supplied."
},
"data": {
"type": "string",
"description": "0x-prefixed calldata of your actual transaction — priced exactly, which is what you want if you are budgeting a real send"
}
}
}
},
"required": [
"type",
"method"
],
"additionalProperties": false
}Output schema
{
"type": "object",
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object",
"properties": {
"l1_fee_wei": {
"type": "string"
},
"l1_fee_eth": {
"type": "number"
},
"l1_fee_usd": {
"type": "number"
},
"l1_fee_usd_per_1000_tx": {
"type": "number"
}
}
}
},
"required": [
"type"
]
}