Constructors
constructor
- new Transaction(transaction: TransactionAttrs): Transaction
-
Parameters
-
transaction: TransactionAttrs
Properties
Private
_getProps
_getProps: any
Private
Optional
_id
_id?: any
Private
Optional
_senderAddress
_senderAddress?: any
Readonly
command
command: string
Readonly
fee
fee: bigint
Readonly
module
module: string
Readonly
nonce
nonce: bigint
Readonly
params
params: Buffer
Readonly
senderPublicKey
senderPublicKey: Buffer
Readonly
signatures
signatures: Buffer[]
Accessors
id
- get id(): Buffer
-
Returns Buffer
senderAddress
- get senderAddress(): Buffer
-
Returns Buffer
Methods
getBytes
- getBytes(): Buffer
-
Returns Buffer
getSigningBytes
- getSigningBytes(): Buffer
-
Returns Buffer
sign
- sign(chainID: Buffer, privateKey: Buffer): void
-
Parameters
-
chainID: Buffer
-
privateKey: Buffer
Returns void
toJSON
- toJSON(): TransactionJSON
-
toObject
- toObject(): TransactionAttrs
-
Returns TransactionAttrs
validate
- validate(): void
-
Returns void
Static
fromBytes
- fromBytes(bytes: Buffer): Transaction
-