Skip to main content

LedgerParameters

For the complete documentation index, see llms.txt

@midnight/zswap v4.0.0-rc


@midnight/zswap / LedgerParameters

Class: LedgerParameters

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

Properties​

transactionCostModel​

readonly transactionCostModel: TransactionCostModel;

The cost model used for transaction fees contained in these parameters

Methods​

serialize()​

serialize(netid): Uint8Array<ArrayBufferLike>

Parameters​

netid​

NetworkId

Returns​

Uint8Array<ArrayBufferLike>


toString()​

toString(compact?): string

Parameters​

compact?​

boolean

Returns​

string


deserialize()​

static deserialize(raw, netid): LedgerParameters

Parameters​

raw​

Uint8Array<ArrayBufferLike>

netid​

NetworkId

Returns​

LedgerParameters


dummyParameters()​

static dummyParameters(): LedgerParameters

A dummy set of testing parameters

Returns​

LedgerParameters