public class EthereumWalletTransactionService extends Object
| Constructor and Description |
|---|
EthereumWalletTransactionService(EthereumWalletAccountService walletAccountService,
TransactionStorage walletTransactionStorage,
EthereumWalletContractService contractService,
org.exoplatform.container.xml.InitParams params) |
| 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,
String currentUser,
boolean transactionMined)
Save temporary transaction label and message and save transaction hash in
sender and receiver account
|
public EthereumWalletTransactionService(EthereumWalletAccountService walletAccountService, TransactionStorage walletTransactionStorage, EthereumWalletContractService contractService, org.exoplatform.container.xml.InitParams params)
public List<TransactionDetail> getPendingTransactions(long networkId)
networkId - blockchain network idList of pending TransactionDetailpublic Set<String> getPendingTransactionHashes(long networkId)
networkId - blockchain network idpublic long getPendingTransactionMaxDays()
public List<TransactionDetail> getTransactions(long networkId, String address, String contractAddress, String hash, int limit, boolean onlyPending, boolean administration, String currentUser) throws IllegalAccessException
IllegalAccessExceptionpublic TransactionDetail getTransactionByHash(String hash)
public TransactionDetail getAddressLastPendingTransactionSent(long networkId, String address, String currentUser) throws IllegalAccessException
IllegalAccessExceptionpublic void saveTransactionDetail(TransactionDetail transactionDetail, String currentUser, boolean transactionMined) throws IllegalAccessException
transactionDetail - transaction detail to savecurrentUser - current username that is saving transactiontransactionMined - whether the transaction has been mined on
blockchain or notIllegalAccessException - if current user is not allowed to save
transaction to sender and receiver walletpublic long getWatchedTreatedTransactionsCount()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.