Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BlockchainTransactionService

Class represents the blockchain transaction service

Hierarchy

  • BlockchainTransactionService

Index

Constructors

constructor

Properties

Private client

Private connection

Private networkType

networkType: NetworkType

Methods

createAndAnnounceTransaction

  • createAndAnnounceTransaction(payload: ProximaxMessagePayloadModel, signerPrivateKey: string, recipientPublicKey: string, recipientAddress: string, transactionDeadline: number, useBlockchainSecureMessage: boolean): Observable<string>
  • Creates and announces the mesage payload to blockchain

    Parameters

    • payload: ProximaxMessagePayloadModel

      the payload

    • signerPrivateKey: string

      the signer private key

    • recipientPublicKey: string

      the recipient public key

    • recipientAddress: string

      the recipient address

    • transactionDeadline: number

      the transaction deadline

    • useBlockchainSecureMessage: boolean

      determine to use blockchain secure message

    Returns Observable<string>

Private getRecipient

  • getRecipient(recipientAddress: string, recipientPublicKey: string, signerPrivateKey: string): Address
  • Parameters

    • recipientAddress: string

      the recipient address

    • recipientPublicKey: string

      The recipient public key

    • signerPrivateKey: string

      the signer private key

    Returns Address

getTransferTransaction

  • getTransferTransaction(transactionHash: string): Observable<TransferTransaction>
  • Gets the transferred transaction

    Parameters

    • transactionHash: string

      the transaction hash

    Returns Observable<TransferTransaction>

testGetRecipient

  • testGetRecipient(recipientAddress: string, recipientPublicKey: string, signerPrivateKey: string): Address
  • Tests the get recipient method. DO NOT USE THIS FUNCTION

    internal

    Parameters

    • recipientAddress: string

      the recipient address

    • recipientPublicKey: string

      The recipient public key

    • signerPrivateKey: string

      the signer private key

    Returns Address

Generated using TypeDoc