FuelLabs/fuel-core · error

The transaction has more inputs than allowed by the consensu

Error message

The transaction has more inputs than allowed by the consensus

What it means

Error "The transaction has more inputs than allowed by the consensus" thrown in FuelLabs/fuel-core.

Source

Thrown at crates/fuel-core/src/schema/tx/assemble_tx.rs:179

    has_predicates: bool,
    index_of_first_fake_variable_output: Option<u16>,
    original_max_fee: u64,
    original_witness_limit: u64,
    fee_payer_account: Account,
    estimated_predicates_count: usize,
    dry_run_count: usize,
}

impl<'a, Tx> AssembleTx<'a, Tx>
where
    Tx: ExecutableTransaction + Cacheable + Send + 'static,
{
    pub fn new(tx: Tx, mut arguments: AssembleArguments<'a>) -> anyhow::Result<Self> {
        let max_inputs = arguments.consensus_parameters.tx_params().max_inputs();
        let max_outputs = arguments.consensus_parameters.tx_params().max_outputs();

        if tx.inputs().len() > max_inputs as usize {
            return Err(anyhow::anyhow!(
                "The transaction has more inputs than allowed by the consensus"
            ));
        }

        if tx.outputs().len() > max_outputs as usize {
            return Err(anyhow::anyhow!(
                "The transaction has more outputs than allowed by the consensus"
            ));
        }

        if arguments.fee_index as usize >= arguments.required_balances.len() {
            return Err(anyhow::anyhow!("The fee address index is out of bounds"));
        }

        if has_duplicates(&arguments.required_balances, |balance| {
            (balance.asset_id, balance.account.owner())
        }) {
            return Err(anyhow::anyhow!(

View on GitHub (pinned to b9d4d170da)

When it happens

Trigger: Thrown at crates/fuel-core/src/schema/tx/assemble_tx.rs:179 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/dfe5f6d0f165eb0c. Report an issue: GitHub.