Interface ValidityDataCustomCharges

Custom charges response in ValidityData

Returned by confirmTx to show actual costs vs maximum user agreed to pay. Allows user to review and abort if actual cost is higher than expected.

interface ValidityDataCustomCharges {
    actual_cost_dem: string;
    breakdown: IPFSCostBreakdown;
    max_cost_dem: string;
    type: string;
}

Properties

actual_cost_dem: string

What node will actually charge (must be <= max_cost_dem)

Detailed breakdown of actual costs

max_cost_dem: string

What user signed as maximum (from TX custom_charges)

type: string

Charge type identifier