public interface WalletTransactionService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSendTransactionToBlockchain(String senderAddress)
Determines whether the user can send transaction to blockchain or not.
|
long |
getMaxAttemptsToSend() |
long |
getMaxParallelPendingTransactions() |
long |
getNonce(String fromAddress) |
long |
getNonce(String fromAddress,
String currentUserId) |
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,
String selectedDate,
Locale locale)
Retrives the Transaction statistics of a user on a designated contract by
period of time
|
List<TransactionDetail> |
getTransactionsToSend() |
boolean |
isLogAllTransaction() |
void |
saveTransactionDetail(TransactionDetail transactionDetail,
boolean broadcastMinedTransaction)
Save transaction details in database
|
void |
saveTransactionDetail(TransactionDetail transactionDetail,
String currentUser)
Save transaction details in database
|
List<TransactionDetail> getPendingTransactions()
List of pending TransactionDetail marked as pending
on blockchainList<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, String selectedDate, Locale locale)
address - periodicity - selectedDate - 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 detailslong getNonce(String fromAddress, String currentUserId) throws IllegalAccessException
fromAddress - currentUserId - IllegalAccessException - when user is not owner of wallet addresslong getNonce(String fromAddress)
fromAddress - void 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) throws IllegalAccessException
transactionDetail - transaction detail to savecurrentUser - current username that is saving transactionIllegalAccessException - if current user is not allowed to save
transaction to sender and receiver walletlong getPendingTransactionMaxDays()
List<TransactionDetail> getTransactionsToSend()
List of TransactionDetail having
TransactionDetail.getRawTransaction() to send on blockchainboolean canSendTransactionToBlockchain(String senderAddress)
senderAddress - wallet address of transaction senderlong getMaxAttemptsToSend()
boolean isLogAllTransaction()
long getMaxParallelPendingTransactions()
Copyright © 2003–2020 eXo Platform SAS. All rights reserved.