Constructor for Block
.
The height of this block.
The harvester wallet address.
Timestamp of the block, in standard nano seconds.
The number of transactions included in this block.
The total number of transactions included in this block.
This field is required and not indexed.
The document's creation timestamp. This field does not reflect the
date of update of a transaction but rather the date of creation of the
cached database entry.
This field is added for consistency with the other database schema.
This field is required and indexed.
This is the block's harvester address, corresponds to the
account that has harvested this block.
This field is required and indexed.
This is the block height that refers to the order in which
blocks were added to the network.
This field is required and indexed.
This block's creation timestamp. This field reflects the
time of the creation of the block.
This field is required and not indexed.
The document's update timestamp. This field does not reflect the
date of update of a transaction but rather the date of update of the
cached database entry.
This field is optional and not indexed.
This method implements a specialized query format to query items
individually, as documents, in the collection: operations
.
The individual document data that is used in a query.
This static method populates a BlockDTO object from the values of a BlockDocument as presented by mongoose queries.
The document as received from mongoose.
The DTO object that will be populated with values.
The dto
object with fields set.
Generated using TypeDoc
This class defines the exact fields that are stored in the corresponding MongoDB documents. It should be used whenever database documents are being handled or read for the
assets
collection.Note that this class uses the generic Transferable trait to enable a
toDTO()
method on the model.Timestamp fields should be numbers to avoid timezone issues.
v0.3.2