Skip to main content

@midnight-ntwrk/midnight-js-contracts v0.2.5 • API


Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / FoundContract

Type alias: FoundContract<PS, C>

FoundContract<PS, C>: Object

Base type for a deployed contract that has been found on the blockchain.

Type parameters

PS

C extends Contract<PS>

Type declaration

callTx

readonly callTx: CircuitCallTxInterface<PS, C>

Interface for creating call transactions for a contract.

circuitMaintenanceTx

readonly circuitMaintenanceTx: CircuitMaintenanceTxInterfaces<C>

An interface for creating maintenance transactions for circuits defined in the contract that was deployed.

contractMaintenanceTx

readonly contractMaintenanceTx: ContractMaintenanceTxInterface

Interface for creating maintenance transactions for the contract that was deployed.

deployTxData

readonly deployTxData: FinalizedDeployTxDataBase<PS>

Data for the finalized deploy transaction corresponding to this contract.