Allows access to information about a transaction that is committed to the ledger.

interface Commit {
    getBytes(): Uint8Array<ArrayBufferLike>;
    getDigest(): 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 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.

  • Get the ID of the transaction.

    Returns string