Skip to main content

ProofProvider

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


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

Interface: ProofProvider

Interface for a proof server running in a trusted environment.

Type Param

프로바이더가 사용하는 서킷 ID의 타입입니다.

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>