Class: TransactionID

TransactionID

The class representing the transaction identifier. Provides for automatically creating the `nonce` value when an instance of this object is created.

new TransactionID(signer_or_userContext, admin)

Builds a new transaction Id based on a user's certificate and an automatically generates a nonce value.
Parameters:
Name Type Description
signer_or_userContext Identity An instance of Identity that provides an unique base for this transaction id. This also may be an instance of a {@User}.
admin boolean Indicates that this instance will be used for administrative transactions.

Methods


getNonce()

The nonce value

getTransactionID()

The transaction ID

isAdmin()

indicates if this transactionID was generated for an admin