APIPresale Payment
Get Crypto Transactions For Presale Orders
Retrieve cryptocurrency payment transaction history
Crypto Transaction History
View all cryptocurrency payment transactions for presale orders
Query
📊
getCryptoTransactions
List all cryptocurrency transactions
Schema
getCryptoTransactions: [CryptoTransaction]
Parameters
This query requires no parameters - returns all cryptocurrency transactions
Return Value
📦
Returns Array of CryptoTransaction Objects
List of all cryptocurrency payment transactions with complete details
Example
💻
Usage Example
Get all crypto transactions
query {
getCryptoTransactions {
txnId
roundId
userId
code
amount
cryptoAmount
cryptoType
status
createdAt
updatedAt
}
}
Response Example
📤
Sample Response
List of transactions
{
"data": {
"getCryptoTransactions": [
{
"txnId": "TXN123456",
"roundId": "1",
"userId": "user_abc123",
"code": "ORD789",
"amount": 500.0,
"cryptoAmount": 0.011628,
"cryptoType": "BTC",
"status": 1,
"createdAt": "2024-01-15T10:30:00Z",
"updatedAt": "2024-01-15T10:45:00Z"
}
]
}
}
Transaction Fields
txnId
Unique transaction ID
roundId
Presale round identifier
userId
User who made payment
code
Order/transaction code
amount
USD value of payment
cryptoAmount
Cryptocurrency amount paid
cryptoType
Type of cryptocurrency used
status
Transaction status code
Status Codes
Transaction Status Values
0
Pending - Waiting for blockchain confirmation1
Completed - Transaction confirmed and processed-1
Failed - Transaction failed or rejected💡
Best Practice
Implement pagination for large transaction lists. Filter by userId for user-specific views. Use status field to identify pending transactions requiring attention. Store createdAt and updatedAt for auditing and reporting purposes.