@midnight-ntwrk/midnight-js-contracts v0.2.5 • API
Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / TxFailedError
Class: TxFailedError
An error indicating that a transaction submitted to a consensus node failed.
Extends
Error
Constructors
new TxFailedError(finalizedTxData, circuitId)
new TxFailedError(
finalizedTxData
,circuitId
?):TxFailedError
Parameters
• finalizedTxData: FinalizedTxData
The finalization data of the transaction that failed.
• circuitId?: string
The name of the circuit that was called to create the call transaction that failed. Only defined if a call transaction failed.
Returns
Overrides
Error.constructor
Properties
circuitId?
optional
readonly
circuitId:string
The name of the circuit that was called to create the call transaction that failed. Only defined if a call transaction failed.
finalizedTxData
readonly
finalizedTxData:FinalizedTxData
The finalization data of the transaction that failed.