@RolesAllowed(value="users") public class WalletTransactionREST extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
WalletTransactionREST(WalletTransactionService transactionService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getLastPendingTransactionSent(long networkId,
String address)
Get last pending transaction of an address
|
javax.ws.rs.core.Response |
getTransactions(long networkId,
String address,
String contractAddress,
String hash,
int limit,
boolean onlyPending,
boolean administration)
Get list of transactions of an address
|
javax.ws.rs.core.Response |
saveTransactionDetails(TransactionDetail transactionDetail)
Store transaction hash in sender, receiver and contract accounts
|
public WalletTransactionREST(WalletTransactionService transactionService)
@RolesAllowed(value="users") public javax.ws.rs.core.Response saveTransactionDetails(TransactionDetail transactionDetail)
transactionDetail - transaction details to save@RolesAllowed(value="users") public javax.ws.rs.core.Response getLastPendingTransactionSent(long networkId, String address)
networkId - blockchain network idaddress - wallet address to retrieve its transactions@RolesAllowed(value="users") public javax.ws.rs.core.Response getTransactions(long networkId, String address, String contractAddress, String hash, int limit, boolean onlyPending, boolean administration)
networkId - blockchain network idaddress - wallet address to retrieve its transactionscontractAddress - filtered contract address transactionshash - transaction hash to include in the returned listlimit - transactions list limitonlyPending - whether retrieve only pending transactions of wallet or
alladministration - whether include or not administrative transactions or
notCopyright © 2003–2019 eXo Platform SAS. All rights reserved.