Skip to main content

@midnight/ledger v3.0.2Readme | API


@midnight/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