public interface WalletTransactionService
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getPendingTransactionHashes() |
long |
getPendingTransactionMaxDays() |
List<TransactionDetail> |
getPendingTransactions() |
TransactionDetail |
getTransactionByHash(String hash) |
TransactionDetail |
getTransactionByHash(String hash,
String currentUser) |
List<TransactionDetail> |
getTransactions(String address,
String contractAddress,
String contractMethodName,
String hash,
int limit,
boolean onlyPending,
boolean administration,
String currentUser) |
TransactionStatistics |
getTransactionStatistics(String address,
String periodicity,
Locale locale)
Retrives the Transaction statistics of a user on a designated contract by
period of time
|
long |
getWatchedTreatedTransactionsCount() |
void |
saveTransactionDetail(TransactionDetail transactionDetail,
boolean broadcastMinedTransaction)
Save transaction details in database
|
void |
saveTransactionDetail(TransactionDetail transactionDetail,
String currentUser,
boolean broadcastMinedTransaction)
Save transaction details in database
|
List<TransactionDetail> getPendingTransactions()
List of pending TransactionDetailSet<String> getPendingTransactionHashes()
List<TransactionDetail> getTransactions(String address, String contractAddress, String contractMethodName, String hash, int limit, boolean onlyPending, boolean administration, String currentUser) throws IllegalAccessException
address - wallet addresscontractAddress - contract address to use to filter transactionscontractMethodName - the contract method name to use to filter on
transactionshash - the transaction hash to include in resulted transactionslimit - limit size of returned transactions unless the hash parameter
is not null, in that case, continue searching in transactions list
until the hash is included in resultsonlyPending - whether filtering on pending transactions only or notadministration - include administration transactions or notcurrentUser - the user accessing the list of transactionsIllegalAccessException - if the current user isn't allowed to access
wallet transactionsTransactionStatistics getTransactionStatistics(String address, String periodicity, Locale locale)
address - periodicity - locale - TransactionStatistics with sent and received amounts and
labelsTransactionDetail getTransactionByHash(String hash)
hash - transaction hashTransactionDetail getTransactionByHash(String hash, String currentUser)
hash - transaction hashcurrentUser - current username that is getting transaction detailsvoid saveTransactionDetail(TransactionDetail transactionDetail, boolean broadcastMinedTransaction)
transactionDetail - transaction detail to savebroadcastMinedTransaction - whether the transaction has been mined on
blockchain or notvoid saveTransactionDetail(TransactionDetail transactionDetail, String currentUser, boolean broadcastMinedTransaction) throws IllegalAccessException
transactionDetail - transaction detail to savecurrentUser - current username that is saving transactionbroadcastMinedTransaction - whether the transaction has been mined on
blockchain or notIllegalAccessException - if current user is not allowed to save
transaction to sender and receiver walletlong getWatchedTreatedTransactionsCount()
long getPendingTransactionMaxDays()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.