TxFailedError
Midnight.js API Reference v3.1.0
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / TxFailedError
Class: TxFailedError
An error indicating that a transaction submitted to a consensus node failed.
Extends
Error
Extended by
CallTxFailedErrorDeployTxFailedErrorInsertVerifierKeyTxFailedErrorRemoveVerifierKeyTxFailedErrorReplaceMaintenanceAuthorityTxFailedError
Constructors
Constructor
new TxFailedError(
finalizedTxData,circuitId?):TxFailedError
Parameters
finalizedTxData
FinalizedTxData
The finalization data of the transaction that failed.
circuitId?
The name of the circuit that was called to create the call transaction that failed. Only defined if a call transaction failed.
string | string[]
Returns
TxFailedError
Overrides
Error.constructor
Properties
circuitId?
readonlyoptionalcircuitId:string|string[]
The name of the circuit that was called to create the call transaction that failed. Only defined if a call transaction failed.
finalizedTxData
readonlyfinalizedTxData:FinalizedTxData
The finalization data of the transaction that failed.