MidnightProviders
Midnight.js API Reference v2.0.2
Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / MidnightProviders
Interface: MidnightProviders<ICK, PSI, PS>
Set of providers needed for transaction construction and submission.
Type Parametersβ
ICKβ
ICK extends ImpureCircuitId = ImpureCircuitId
A union of string literal types representing the callable circuits.
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.
Propertiesβ
loggerProvider?β
readonlyoptionalloggerProvider:LoggerProvider
An optional logger that provides utilities for logging at given levels.
midnightProviderβ
readonlymidnightProvider:MidnightProvider
Submits proven, balanced transactions to the network.
privateStateProviderβ
readonlyprivateStateProvider:PrivateStateProvider<PSI,PS>
Manages the private state of a contract.
proofProviderβ
readonlyproofProvider:ProofProvider<ICK>
Creates proven, unbalanced transactions.
publicDataProviderβ
readonlypublicDataProvider:PublicDataProvider
Retrieves public data from the blockchain.
walletProviderβ
readonlywalletProvider:WalletProvider
Creates proven, balanced transactions.
zkConfigProviderβ
readonlyzkConfigProvider:ZKConfigProvider<ICK>
Retrieves the ZK artifacts of a contract needed to create proofs.