chain_l1_data_fee
$0.005 via x402: the L1 data-availability fee an OP-stack transaction pays ON TOP of L2 execution gas — usually the larger half of the bill, and the half ordinary gas estimators leave out. Answered by the chain's own GasPriceOracle.getL1Fee rather than a reimplemented formula, so it stays correct across Ecotone, Fjord and later forks. Pass data=0x... to price your actual transaction exactly. Base and Optimism only.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "chain_l1_data_fee"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | 0x calldata of your actual transaction — priced exactly | |
| bytes | No | Transaction size in bytes, 1-200000 (default 1200) | |
| chain | No | base|optimism (OP-stack only) | |
| x_payment | No |