Skip to main content

ProofProvider

Midnight.js API Reference v3.1.0


Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / ProofProvider

Interface: ProofProvider

Interface for a proof server running in a trusted environment.

Type Param

The type of the circuit ID used by the provider.

Methods

proveTx()

proveTx(unprovenTx, proveTxConfig?): Promise<UnboundTransaction>

Creates call proofs for an unproven transaction. The resulting transaction is unbalanced and must be balanced using the WalletProvider interface. contain a single contract call.

Parameters

unprovenTx

UnprovenTransaction

proveTxConfig?

ProveTxConfig

The configuration for the proof request to the proof provider. Empty in case a deploy transaction is being proved with no user-defined timeout.

Returns

Promise<UnboundTransaction>