Class Server.XTransaction

Extends: Server.DBSC

Methods

new(from_bid: string, to_bid: string, amount_major: number, amount_minor: number, reason: string): Server.XTransaction
Note: @nodiscard - Return value should not be ignored
Creates a new Transaction object.
Parameters:
  • from_bid (string): the bid of the account this transaction is from
  • to_bid (string): the bid of the account this transaction is to
  • amount_major (number): the major amount of the transaction
  • amount_minor (number): the minor amount of the transaction
  • reason (string): the reason for the transaction
Returns: xTransaction the transaction