Represents an endorsed transaction that can be submitted to the orderer for commit to the ledger.

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

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.

    Returns Uint8Array<ArrayBufferLike>