Skip to main content

@midnight/ledger v3.0.2Readme | API


@midnight/ledger v3.0.2 / CostModel

Class: CostModel

A cost model for calculating transaction fees

Constructors

new CostModel()

private new CostModel(): CostModel

Returns

CostModel

Methods

toString()

toString(compact?): string

Parameters

compact?: boolean

Returns

string


dummyCostModel()

static dummyCostModel(): CostModel

A cost model for use in non-critical contexts

Returns

CostModel