PrivateStateProvider
Midnight.js API Reference v3.1.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / PrivateStateProvider
Interface: PrivateStateProvider<PSI, PS>
Interface for a typed key-valued store containing contract private states.
Type Parameters
PSI
PSI extends PrivateStateId = PrivateStateId
Parameter indicating the private state ID, sometimes a union of string literals.
PS
PS = any
Parameter indicating the private state type stored, sometimes a union of private state types.
Methods
clear()
clear():
Promise<void>
Remove all contract private states.