@RolesAllowed(value="users") public class EthereumWalletAccountREST extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
| Constructor and Description |
|---|
EthereumWalletAccountREST(EthereumWalletService ethereumWalletService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
getAccountByAddress(String address)
Retrieves the user or space details associated to an address
|
javax.ws.rs.core.Response |
getAccountByTypeAndID(String id,
String type)
Retrieves the user or space details by username or spacePrettyName
|
javax.ws.rs.core.Response |
getTransactions(long networkId,
String address)
Get list of transactions of an address
|
javax.ws.rs.core.Response |
getWallets()
Get list of wallet accounts
|
javax.ws.rs.core.Response |
isFundRequestSent(String notificationId)
Returns fund request status
|
javax.ws.rs.core.Response |
markFundRequestAsSent(String notificationId)
Mark a notification as sent
|
javax.ws.rs.core.Response |
requestFunds(FundsRequest fundsRequest)
Sends a fund request notifications
|
javax.ws.rs.core.Response |
saveAddress(AccountDetail accountDetail)
Save address a user or space associated address
|
javax.ws.rs.core.Response |
savePreferences(UserPreferences userPreferences)
Save user preferences of Wallet
|
javax.ws.rs.core.Response |
saveTransactionMessage(TransactionMessage transactionMessage)
Store transaction custom label and message
|
public EthereumWalletAccountREST(EthereumWalletService ethereumWalletService)
public javax.ws.rs.core.Response getAccountByTypeAndID(String id, String type)
id - type - public javax.ws.rs.core.Response getAccountByAddress(String address)
address - public javax.ws.rs.core.Response saveAddress(AccountDetail accountDetail)
accountDetail - public javax.ws.rs.core.Response savePreferences(UserPreferences userPreferences)
userPreferences - public javax.ws.rs.core.Response requestFunds(FundsRequest fundsRequest)
fundsRequest - public javax.ws.rs.core.Response markFundRequestAsSent(String notificationId)
notificationId - public javax.ws.rs.core.Response isFundRequestSent(String notificationId)
notificationId - @RolesAllowed(value="administrators") public javax.ws.rs.core.Response getWallets()
public javax.ws.rs.core.Response saveTransactionMessage(TransactionMessage transactionMessage)
transactionMessage - public javax.ws.rs.core.Response getTransactions(long networkId,
String address)
networkId - address - Copyright © 2003–2018 eXo Platform SAS. All rights reserved.