Skip to main content

ChargedState

For the complete documentation index, see llms.txt

@midnight/ledger v8.0.3


@midnight/ledger / ChargedState

Class: ChargedState

Represents a StateValue with storage annotations.

These track the state usage that has been charged for so far.

Constructors​

Constructor​

new ChargedState(state): ChargedState;

Parameters​

state​

StateValue

Returns​

ChargedState

Properties​

state​

readonly state: StateValue;

Methods​

toString()​

toString(compact?): string;

Parameters​

compact?​

boolean

Returns​

string