@midnight/ledger v3.0.2 • Readme | API
@midnight/ledger 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
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
dummyParameters()
static dummyParameters(): LedgerParameters
A dummy set of testing parameters