Creates a new Transaction object.
Optional
data?: ITransactionPayloadOptional
gasOptional
guardian?: IAddressOptional
nonce?: INonceOptional
options?: ITransactionOptionsOptional
receiverOptional
senderOptional
value?: ITransactionValueOptional
version?: ITransactionVersionPrivate
chainIDThe chain ID of the Network (e.g. "1" for Mainnet).
Private
Readonly
dataThe payload of the transaction.
Private
gasThe maximum amount of gas to be consumed when processing the transaction.
Private
gasThe gas price to be used.
Private
guardianThe address of the guardian.
Private
guardianThe signature of the guardian.
Private
hashThe transaction hash, also used as a transaction identifier.
Private
nonceThe nonce of the transaction (the account sequence number of the sender).
The options field, useful for describing different settings available for transactions
Use getOptions() and setOptions() instead.
Private
Readonly
receiverThe address of the receiver.
Private
receiverThe username of the receiver.
Private
senderThe address of the sender.
Private
senderThe username of the sender.
Private
signatureThe signature.
Private
valueThe value to transfer.
The version, required by the Network in order to correctly interpret the contents of the transaction.
Use getVersion() and setVersion() instead.
Applies the guardian signature on the transaction.
The signature, as computed by a signer.
Applies the signature on the transaction.
The signature, as computed by a signer.
Computes the current transaction fee based on the NetworkConfig and transaction properties
NetworkConfig
Sets the account sequence number of the sender. Must be done prior signing.
Converts the transaction object into a ready-to-serialize, plain JavaScript object. This function is called internally within the signing procedure.
Static
fromConverts a plain object transaction into a Transaction Object.
Raw data of a transaction, usually obtained by calling toPlainObject()
Generated using TypeDoc
An abstraction for creating and signing transactions.