Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlockService

Block Service

Hierarchy

  • BlockService

Implements

Index

Constructors

constructor

Properties

Private Readonly blockRepository

blockRepository: BlockRepository

Readonly repositoryFactory

repositoryFactory: RepositoryFactory

Private Readonly transactionRepository

transactionRepository: TransactionRepository

Methods

calculateTransactionsMerkleRootHash

  • calculateTransactionsMerkleRootHash(height: UInt64): Observable<string>
  • Calculate transactions merkle root hash from a block

    Parameters

    Returns Observable<string>

    root hash

validateStatementInBlock

  • validateStatementInBlock(leaf: string, height: UInt64): Observable<boolean>

validateTransactionInBlock

  • validateTransactionInBlock(leaf: string, height: UInt64): Observable<boolean>

Generated using TypeDoc