Home Reference Source Test
public class | source

Transaction

Static Method Summary

Static Public Methods
public static

Constructor Summary

Public Constructor
public

constructor(format: Transaction.Format, sender: Address, senderType: Account.Type, recipient: Address, recipientType: Account.Type, value: number, fee: number, validityStartHeight: number, flags: Transaction.Flag | *, data: Uint8Array, proof: Uint8Array, networkId: number)

Member Summary

Public Members
public get

data: Uint8Array

public get

fee: number

public get

feePerByte: number

public get

flags: number

public get

networkId: number

public set

proof: Uint8Array

public get

proof: Uint8Array

public get
public get

recipientType: Account.Type

public get
public get

senderType: Account.Type

public get
public get

serializedSize: number

public get
public get

value: number

Method Summary

Public Methods
public

compare(o: Transaction): number

public
public

equals(o: Transaction): boolean

public
public

hasFlag(flag: Transaction.Flag): boolean

public

hash(): Hash

public
public
public

toString(): string

public

verify(networkId: number): boolean

Static Public Methods

public static unserialize(buf: SerialBuffer): Transaction source

Params:

NameTypeAttributeDescription
buf SerialBuffer

Return:

Transaction

Public Constructors

public constructor(format: Transaction.Format, sender: Address, senderType: Account.Type, recipient: Address, recipientType: Account.Type, value: number, fee: number, validityStartHeight: number, flags: Transaction.Flag | *, data: Uint8Array, proof: Uint8Array, networkId: number) source

Params:

NameTypeAttributeDescription
format Transaction.Format
sender Address
senderType Account.Type
recipient Address
recipientType Account.Type
value number
fee number
validityStartHeight number
flags Transaction.Flag | *
data Uint8Array
proof Uint8Array
  • optional
networkId number
  • optional

Public Members

public get data: Uint8Array source

public get fee: number source

public get feePerByte: number source

public get flags: number source

public get networkId: number source

public set proof: Uint8Array source

public get proof: Uint8Array source

public get recipient: Address source

public get recipientType: Account.Type source

public get sender: Address source

public get senderType: Account.Type source

public get serializedContentSize: number source

public get serializedSize: number source

public get validityStartHeight: number source

public get value: number source

Public Methods

public compare(o: Transaction): number source

Params:

NameTypeAttributeDescription
o Transaction

Return:

number

public compareBlockOrder(o: Transaction): number source

Params:

NameTypeAttributeDescription
o Transaction

Return:

number

public equals(o: Transaction): boolean source

Params:

NameTypeAttributeDescription
o Transaction

Return:

boolean

public getContractCreationAddress(): Address source

Return:

Address

public hasFlag(flag: Transaction.Flag): boolean source

Params:

NameTypeAttributeDescription
flag Transaction.Flag

Return:

boolean

public hash(): Hash source

Return:

Hash

public serialize(buf: SerialBuffer): SerialBuffer source

Params:

NameTypeAttributeDescription
buf SerialBuffer
  • optional
  • nullable: true

Return:

SerialBuffer

public serializeContent(buf: SerialBuffer): SerialBuffer source

Params:

NameTypeAttributeDescription
buf SerialBuffer
  • optional
  • nullable: true

Return:

SerialBuffer

public toString(): string source

Return:

string

public verify(networkId: number): boolean source

Params:

NameTypeAttributeDescription
networkId number
  • optional

Return:

boolean