Skip to main content

LedgerParameters

@midnight/zswap v3.0.2 β€’ Readme | API


@midnight/zswap v3.0.2 / LedgerParameters

Class: LedgerParameters

Parameters used by the Midnight ledger, including transaction fees and bounds

Constructors​

new LedgerParameters()​

private new LedgerParameters(): LedgerParameters

Returns​

LedgerParameters

Properties​

transactionCostModel​

readonly transactionCostModel: TransactionCostModel;

The cost model used for transaction fees contained in these parameters

Methods​

serialize()​

serialize(netid): Uint8Array

Parameters​

β€’ netid: NetworkId

Returns​

Uint8Array


toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): LedgerParameters

Parameters​

β€’ raw: Uint8Array

β€’ netid: NetworkId

Returns​

LedgerParameters


dummyParameters()​

static dummyParameters(): LedgerParameters

A dummy set of testing parameters

Returns​

LedgerParameters