Allows access to the transaction result and its commit status on the ledger.

interface SubmittedTransaction {
    getBytes(): Uint8Array<ArrayBufferLike>;
    getDigest(): Uint8Array<ArrayBufferLike>;
    getResult(): Uint8Array<ArrayBufferLike>;
    getStatus(options?: CallOptions): Promise<Status>;
    getTransactionId(): string;
}

Hierarchy (View Summary)

Methods

  • Get the serialized bytes of the signable object. Serialized bytes can be used to recreate the object using methods on Gateway.

    Returns Uint8Array<ArrayBufferLike>

  • Get the digest of the signable object. This is used to generate a digital signature.

    Returns Uint8Array<ArrayBufferLike>

  • Get the transaction result. This is obtained during the endorsement process when the transaction proposal is run on endorsing peers and so is available immediately. The transaction might subsequently fail to commit successfully.

    Returns Uint8Array<ArrayBufferLike>

  • Get status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.

    Parameters

    Returns Promise<Status>

    CommitStatusError Thrown if the gRPC service invocation fails.