Skip to main content

@midnight-ntwrk/midnight-js-types v0.1.15 • API


Midnight.js API Reference v0.1.15 / @midnight-ntwrk/midnight-js-types / MidnightProviders

Interface: MidnightProviders<ICK, PSS>

Set of providers needed for transaction construction and submission.

Type parameters

ICK extends string = string

A union of string literal types representing the callable circuits.

PSS extends PrivateStateSchema = PrivateStateSchema

Type representing aggregate of all private state types stored by the private state provider.

Properties

midnightProvider

readonly midnightProvider: MidnightProvider

Submits proven, balanced transactions to the network.


privateStateProvider

readonly privateStateProvider: PrivateStateProvider<PSS>

Manages the private state of a contract.


proofProvider

readonly proofProvider: ProofProvider<ICK>

Creates proven, unbalanced transactions.


publicDataProvider

readonly publicDataProvider: PublicDataProvider

Retrieves public data from the blockchain.


walletProvider

readonly walletProvider: WalletProvider

Creates proven, balanced transactions.


zkConfigProvider

readonly zkConfigProvider: ZKConfigProvider<ICK>

Retrieves the ZK artifacts of a contract needed to create proofs.