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

sendMoney

sendMoney: function

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 unsigned transaction

param

The senders public key for sending an unsigned message

param

The senders private key to sign the message

param

The recipients RS Address

returns

The Transaction

Type declaration

    • (transaction: Transaction, senderPublicKey: string, senderPrivateKey: string, recipientAddress: string): Promise<TransactionId | Error>
    • Parameters

      • transaction: Transaction
      • senderPublicKey: string
      • senderPrivateKey: string
      • recipientAddress: string

      Returns Promise<TransactionId | Error>

sendMoneyMultiOut

sendMoneyMultiOut: function

Sends a multi-out request to the blockchain

The transaction will be broadcasted in two steps.

  1. If sameAmount is true. "sendMoneyMultiSame" is called, otherwise "sendMoneyMulti" is called
  2. Take the returned unsigned message and sign it, i.e. the private key won't be transmitted.
param

The unsigned transaction

param

The senders public key for sending an unsigned message

param

The senders private key to sign the message

param

The multi-out string of recipient->amount key value pairs

param

Whether all recipients will receive the same amount

returns

The Transaction

Type declaration

    • (transaction: Transaction, senderPublicKey: string, senderPrivateKey: string, recipients: string, sameAmount: boolean): Promise<TransactionId>
    • Parameters

      • transaction: Transaction
      • senderPublicKey: string
      • senderPrivateKey: string
      • recipients: string
      • sameAmount: boolean

      Returns Promise<TransactionId>

Generated using TypeDoc