FuelLabs/fuel-core · error
The `blockHeight` parameter requires the `--historical-execu
Error message
The `blockHeight` parameter requires the `--historical-execution` option
What it means
Error "The `blockHeight` parameter requires the `--historical-execution` option" thrown in FuelLabs/fuel-core.
Source
Thrown at crates/fuel-core/src/schema/tx.rs:147
// This allows for non-existent inputs to be used without signature validation
// for read-only calls.
utxo_validation: Option<bool>,
gas_price: Option<U64>,
// This can be used to run the dry-run on top of a past block.
// Requires `--historical-execution` flag to be enabled.
block_height: Option<U32>,
// Record storage reads, so this tx can be used with execution tracer in a local debugger.
record_storage_reads: bool,
) -> async_graphql::Result<DryRunStorageReads> {
let config = ctx.data_unchecked::<GraphQLConfig>().clone();
let block_producer = ctx.data_unchecked::<BlockProducer>();
let consensus_params = ctx
.data_unchecked::<ChainInfoProvider>()
.current_consensus_params();
let block_gas_limit = consensus_params.block_gas_limit();
if block_height.is_some() && !config.historical_execution {
return Err(anyhow::anyhow!(
"The `blockHeight` parameter requires the `--historical-execution` option"
)
.into());
}
let mut transactions = txs
.iter()
.map(|tx| FuelTx::from_bytes(&tx.0))
.collect::<Result<Vec<FuelTx>, _>>()?;
transactions.iter_mut().try_fold::<_, _, async_graphql::Result<u64>>(0u64, |acc, tx| {
let gas = tx.max_gas(&consensus_params)?;
let gas = gas.saturating_add(acc);
if gas > block_gas_limit {
return Err(anyhow::anyhow!("The sum of the gas usable by the transactions is greater than the block gas limit").into());
}
tx.precompute(&consensus_params.chain_id())?;
Ok(gas)
})?;View on GitHub (pinned to b9d4d170da)
When it happens
Trigger: Thrown at crates/fuel-core/src/schema/tx.rs:147 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of FuelLabs/fuel-core@b9d4d170da (2026-08-16).
Data as JSON: /api/errors/a7be07cb35a378b1.
Report an issue: GitHub.