@hyperledger/fabric-gateway
    Preparing search index...

    Interface Commit

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

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

    Hierarchy (View Summary)

    Index

    Methods

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

      Returns Uint8Array

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

      Returns Uint8Array

    • 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