BasicAccount
Extends:
This is a classic account that can send all his funds and receive any transaction. All outgoing transactions are signed using the key corresponding to this address.
Static Method Summary
Static Public Methods | ||
public static |
copy(o: BasicAccount): BasicAccount |
|
public static |
dataToPlain(data: Uint8Array): object |
|
public static |
fromPlain(o: object): * |
|
public static |
proofToPlain(proof: Uint8Array): object |
|
public static |
unserialize(buf: SerialBuffer): BasicAccount |
|
public static |
verifyIncomingTransaction(transaction: Transaction): boolean |
|
public static |
verifyOutgoingTransaction(transaction: Transaction): boolean |
Constructor Summary
Public Constructor | ||
public |
constructor(balance: number) |
Method Summary
Public Methods | ||
public |
Check if two Accounts are the same. |
|
public |
isInitial(): boolean |
|
public |
toString(): string |
|
public |
withBalance(balance: number): Account | * |
|
public |
withContractCommand(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account |
Inherited Summary
From class Account | ||
public static |
dataToPlain(data: Uint8Array): object |
|
public static |
|
|
public static |
|
|
public static |
proofToPlain(proof: Uint8Array): object |
|
public static |
unserialize(buf: SerialBuffer): Account Create Account object from binary form. |
|
public get |
balance: number |
|
public get |
serializedSize: number: * |
|
public get |
type: Account.Type |
|
public |
Check if two Accounts are the same. |
|
public |
isInitial(): boolean |
|
public |
isToBePruned(): boolean |
|
public |
serialize(buf: SerialBuffer): SerialBuffer Serialize this Account object into binary form. |
|
public |
toPlain(): object |
|
public |
toString(): string |
|
public |
withBalance(balance: number): Account | * |
|
public |
withContractCommand(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account |
|
public |
withOutgoingTransaction(transaction: Transaction, blockHeight: number, transactionsCache: TransactionCache, revert: boolean): Account |
Static Public Methods
public static copy(o: BasicAccount): BasicAccount source
Params:
Name | Type | Attribute | Description |
o | BasicAccount |
public static dataToPlain(data: Uint8Array): object source
Override:
Account#dataToPlainParams:
Name | Type | Attribute | Description |
data | Uint8Array |
Return:
object |
public static fromPlain(o: object): * source
Override:
Account#fromPlainParams:
Name | Type | Attribute | Description |
o | object |
Return:
* |
public static proofToPlain(proof: Uint8Array): object source
Override:
Account#proofToPlainParams:
Name | Type | Attribute | Description |
proof | Uint8Array |
Return:
object |
public static unserialize(buf: SerialBuffer): BasicAccount source
Create Account object from binary form.
Override:
Account#unserializeParams:
Name | Type | Attribute | Description |
buf | SerialBuffer |
public static verifyIncomingTransaction(transaction: Transaction): boolean source
Params:
Name | Type | Attribute | Description |
transaction | Transaction |
Return:
boolean |
public static verifyOutgoingTransaction(transaction: Transaction): boolean source
Params:
Name | Type | Attribute | Description |
transaction | Transaction |
Return:
boolean |
Public Constructors
public constructor(balance: number) source
Override:
Account#constructorParams:
Name | Type | Attribute | Description |
balance | number |
|
Public Methods
public equals(o: Account): boolean source
Check if two Accounts are the same.
Override:
Account#equalsParams:
Name | Type | Attribute | Description |
o | Account | Object to compare with. |
Return:
boolean | Set if both objects describe the same data. |
public withBalance(balance: number): Account | * source
Override:
Account#withBalanceParams:
Name | Type | Attribute | Description |
balance | number |
public withContractCommand(transaction: Transaction, blockHeight: number, revert: boolean): Account source
Override:
Account#withContractCommandParams:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
revert | boolean |
|
public withIncomingTransaction(transaction: Transaction, blockHeight: number, revert: boolean): Account source
Override:
Account#withIncomingTransactionParams:
Name | Type | Attribute | Description |
transaction | Transaction | ||
blockHeight | number | ||
revert | boolean |
|