Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TransactionApi

Transaction API

This module provides methods related to blockchain transactions

Hierarchy

  • TransactionApi

Index

Properties

broadcastTransaction

broadcastTransaction: function

Broadcasts a transaction to the network/blockchain

param

The signed transaction payload encoded in base64

returns

The Transaction Id

Type declaration

    • Parameters

      • signedTransactionPayload: string

      Returns Promise<TransactionId>

getTransaction

getTransaction: function

Get a transaction and its details from the network/blockchain

param

The transaction Id

returns

The Transaction

Type declaration

sendAmount

sendAmount: function
deprecated
Sends burst to the blockchain

The transaction will be broadcasted in two steps.

  1. Send the sendMoney call with public key to the network
  2. Take the returned unsigned message and sign it, i.e. the private key won't be transmitted.
param

The amount to be sent as Planck value

param

The fee as Planck value

param

The id of the recipient

param

The senders public key for sending an unsigned message

param

The senders private key to sign the message

param

An optional attachment

returns

The Transaction Id (as promise)

Type declaration

    • (amountPlanck: string, feePlanck: string, recipientId: string, senderPublicKey: string, senderPrivateKey: string, attachment?: Attachment): Promise<TransactionId>
    • Parameters

      • amountPlanck: string
      • feePlanck: string
      • recipientId: string
      • senderPublicKey: string
      • senderPrivateKey: string
      • Optional attachment: Attachment

      Returns Promise<TransactionId>

sendAmountToMultipleRecipients

sendAmountToMultipleRecipients: function
param

A list of recipient Ids and their respective amounts to be sent

param

The fee to be paid as Planck value

param

The senders public key for sending an unsigned message

param

The senders private key to sign the message

returns

The Transaction Id

Type declaration

sendAmountToSingleRecipient

sendAmountToSingleRecipient: function

Sends burst to another account/recipient

param

The argument object

returns

The Transaction Id (as promise)

Type declaration

sendSameAmountToMultipleRecipients

sendSameAmountToMultipleRecipients: function

Sends a multi-out request to the blockchain with same value for all recipients

param

The amount to be sent as Planck value

param

The fee to be paid as Planck value

param

List of account IDs for the recipients

param

The senders public key for sending an unsigned message

param

The senders private key to sign the message

returns

The Transaction Id

Type declaration

    • (amountPlanck: string, feePlanck: string, recipientIds: string[], senderPublicKey: string, senderPrivateKey: string): Promise<TransactionId>
    • Parameters

      • amountPlanck: string
      • feePlanck: string
      • recipientIds: string[]
      • senderPublicKey: string
      • senderPrivateKey: string

      Returns Promise<TransactionId>

Generated using TypeDoc