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 / ContractMaintenanceTxInterface

Type alias: ContractMaintenanceTxInterface

ContractMaintenanceTxInterface: Object

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

Type declaration

replaceAuthority()

Constructs and submits a transaction that replaces the maintenance authority stored on the blockchain for this contract.

Parameters

newAuthority: string

The new contract maintenance authority for this contract.

Returns

Promise<FinalizedTxData>