public interface WalletTransactionService
| Modifier and Type | Method and Description |
|---|---|
TransactionDetail |
getAddressLastPendingTransactionSent(long networkId,
String address,
String currentUser) |
Set<String> |
getPendingTransactionHashes(long networkId) |
long |
getPendingTransactionMaxDays() |
List<TransactionDetail> |
getPendingTransactions(long networkId) |
TransactionDetail |
getTransactionByHash(String hash) |
List<TransactionDetail> |
getTransactions(long networkId,
String address,
String contractAddress,
String hash,
int limit,
boolean onlyPending,
boolean administration,
String currentUser) |
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(long networkId)
networkId - blockchain network idList of pending TransactionDetailSet<String> getPendingTransactionHashes(long networkId)
networkId - blockchain network idList<TransactionDetail> getTransactions(long networkId, String address, String contractAddress, String hash, int limit, boolean onlyPending, boolean administration, String currentUser) throws IllegalAccessException
networkId - blockchain network idaddress - wallet addresscontractAddress - contract address to use to filter 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 transactionsTransactionDetail getTransactionByHash(String hash)
hash - transaction hashTransactionDetail getAddressLastPendingTransactionSent(long networkId, String address, String currentUser) throws IllegalAccessException
networkId - blockchain network idaddress - wallet addresscurrentUser - user accessing last pending transaction of walletIllegalAccessException - if the current user is not an admin and is
not the owner of the walletvoid 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.