The verdict on a mined write, plus the evidence it was reached from.

interface WriteDiagnosis {
    advice: string;
    gasLimit: bigint;
    gasUsed: bigint;
    kind: WriteFailureKind;
    reason?: string;
}

Properties

advice: string

A sentence naming what to do next.

gasLimit: bigint

The gas limit the transaction carried.

gasUsed: bigint

What it actually consumed.

reason?: string

The revert reason, when the chain gave one back on a re-execution at the mined block. Absent for out of gas, which carries no reason data.