Skip to main content

TransactionResult

@midnight-ntwrk/ledger v3.0.2 β€’ Readme | API


@midnight-ntwrk/ledger v3.0.2 / TransactionResult

Class: TransactionResult

The result status of applying a transaction. Includes an error message if the transaction failed, or partially failed.

Constructors​

new TransactionResult()​

private new TransactionResult(): TransactionResult

Returns​

TransactionResult

Properties​

error?​

optional readonly error: string;

type​

readonly type: "success" | "partialSuccess" | "failure";

Methods​

toString()​

toString(compact?): string

Parameters​

β€’ compact?: boolean

Returns​

string