Options
All
  • Public
  • Public/Protected
  • All
Menu
class

TransactionService

package

Governable

subpackage

Services

since

v1.0.0

description

Class that describes a service to facilitate the handling and processes with multi-signature accounts.

Hierarchy

Index

Constructors

constructor

Properties

Protected context

context: Context

Methods

readTransactionFromNetwork

  • readTransactionFromNetwork(hash: string): Promise<Transaction | undefined>
  • function

    Governable.TransactionService.readTransactionFromNetwork()

    access

    public

    description

    Gets transaction information given a transaction hash.

    Parameters

    • hash: string

      The transaction hash

    Returns Promise<Transaction | undefined>

    The transaction or nothing.

Static getTransactionHash

  • getTransactionHash(transaction: Transaction): string | undefined
  • function

    Governable.TransactionService.getTransactionHash()

    static
    access

    public

    description

    Gets a transaction's hash. If it is an aggregate transaction, returns the aggregate transaction hash (merkle root hash).

    Parameters

    • transaction: Transaction

      Transaction.

    Returns string | undefined

    string | undefined

Generated using TypeDoc