Transaction Model for Satoshi Showdown. This model defines the structure and constraints for Transactions on the platform.
- Source:
Requires
- module:mongoose
- module:uuid
Type Definitions
TransactionModel
Transaction model based on the defined schema. Represents a cryptocurrency transaction within the Satoshi Showdown platform, encapsulating key data and processes related to financial transactions, such as tracking, processing, and verification of cryptocurrency movements.
Type:
- mongoose.Model.<TransactionSchema>
- Source:
TransactionSchema
Schema definition for the Transaction model. Specifies the structure, data types, and validation rules for fields associated with a cryptocurrency transaction. The schema captures essential transaction details such as identifiers, references, type, amounts, status, confirmations, and blockchain transaction hash.
Type:
- Object
Properties:
Name | Type | Description |
---|---|---|
transactionUUID |
string | Unique identifier for the transaction. |
userRef |
mongoose.Schema.Types.ObjectId | Reference to the User model. |
walletRef |
mongoose.Schema.Types.ObjectId | Reference to the Wallet model. |
transactionType |
string | Direction of the transaction (incoming/outgoing). |
purpose |
string | The intended use of the transaction, categorized by type. |
walletAddress |
string | Address of the wallet involved. |
userAddress |
string | Address of the user involved. |
expectedAmount |
number | Expected amount of the transaction. |
unconfirmedAmount |
number | Amount pending confirmation. |
confirmedAmount |
number | Amount confirmed in the transaction. |
status |
string | Current status of the transaction. |
confirmations |
number | Number of network confirmations. |
transactionHash |
string | Blockchain hash of the transaction. |
- Source: