Transaction
Direct Subclass:
Static Method Summary
Static Public Methods | ||
public static |
fromAny(tx: Transaction | string | object): Transaction |
|
public static |
fromPlain(plain: object): Transaction |
|
public static |
unserialize(buf: SerialBuffer): Transaction |
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 |
format: Transaction.Format |
|
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 |
serializedContentSize: number |
|
public get |
serializedSize: number |
|
public get |
validityStartHeight: number |
|
public get |
value: number |
Method Summary
Public Methods | ||
public |
compare(o: Transaction): number |
|
public |
compareBlockOrder(o: Transaction): number |
|
public |
equals(o: Transaction): boolean |
|
public |
|
|
public |
hasFlag(flag: Transaction.Flag): boolean |
|
public |
|
|
public |
serialize(buf: SerialBuffer): SerialBuffer |
|
public |
|
|
public |
toPlain(): {"transactionHash": *, "format": *, "sender": *, "senderType": *, "recipient": *, "recipientType": *, "value": *, "fee": *, "feePerByte": *, "validityStartHeight": *, "network": *, "flags": *, "data": *, "proof": *, "size": *, "valid": *} |
|
public |
toString(): string |
|
public |
verify(networkId: number): boolean |
Static Public Methods
public static fromAny(tx: Transaction | string | object): Transaction source
Params:
Name | Type | Attribute | Description |
tx | Transaction | string | object |
public static fromPlain(plain: object): Transaction source
Params:
Name | Type | Attribute | Description |
plain | object |
public static unserialize(buf: SerialBuffer): Transaction source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
Public Constructors
Public Members
public get data: Uint8Array source
public get fee: number source
public get feePerByte: number source
public get flags: number source
public get format: Transaction.Format source
public get networkId: number source
public set proof: Uint8Array source
public get proof: Uint8Array source
public get recipientType: Account.Type 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:
Name | Type | Attribute | Description |
o | Transaction |
Return:
number |
public compareBlockOrder(o: Transaction): number source
Params:
Name | Type | Attribute | Description |
o | Transaction |
Return:
number |
public equals(o: Transaction): boolean source
Params:
Name | Type | Attribute | Description |
o | Transaction |
Return:
boolean |
public hasFlag(flag: Transaction.Flag): boolean source
Params:
Name | Type | Attribute | Description |
flag | Transaction.Flag |
Return:
boolean |
public serialize(buf: SerialBuffer): SerialBuffer source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|
public serializeContent(buf: SerialBuffer): SerialBuffer source
Params:
Name | Type | Attribute | Description |
buf | SerialBuffer |
|
public toPlain(): {"transactionHash": *, "format": *, "sender": *, "senderType": *, "recipient": *, "recipientType": *, "value": *, "fee": *, "feePerByte": *, "validityStartHeight": *, "network": *, "flags": *, "data": *, "proof": *, "size": *, "valid": *} source
Return:
{"transactionHash": *, "format": *, "sender": *, "senderType": *, "recipient": *, "recipientType": *, "value": *, "fee": *, "feePerByte": *, "validityStartHeight": *, "network": *, "flags": *, "data": *, "proof": *, "size": *, "valid": *} |
public verify(networkId: number): boolean source
Params:
Name | Type | Attribute | Description |
networkId | number |
|
Return:
boolean |