public interface WalletTokenAdminService
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
balanceOf(String address)
Get token balance of a wallet address (on blockchain)
|
void |
createAdminAccount()
Generates admin account wallet and store it internally in eXo Server
|
void |
createAdminAccount(String privateKey,
String issuerUsername)
Creates admin account wallet using provided private key and store it
internally in eXo Server
|
int |
getAdminLevel(String address)
Get admin level of a wallet address from token (on blockchain)
|
Wallet |
getAdminWallet() |
String |
getAdminWalletAddress() |
ContractDetail |
getContractDetailFromBlockchain(String contractAddress)
Retrieves contract details from blockchain, like: - Sell price - Owner -
Symbol - Name ...
|
BigInteger |
getEtherBalanceOf(String address)
Get ether balance of a wallet address (on blockchain)
|
TransactionDetail |
initialize(TransactionDetail transactionDetail,
String issuerUsername)
Initializes (on blockchain) a receiver wallet address using 'Admin' wallet
by using funds transmitted in transaction detail.
|
boolean |
isAdminAccount(String address)
Checks whether a wallet address is an admin on token with at least level 1
(on blockchain)
|
boolean |
isApprovedAccount(String address)
Checks if a wallet address is approved on token (on blockchain)
|
boolean |
isInitializedAccount(String address)
Checks whether the wallet is initialized or not (on blockchain)
|
TransactionDetail |
reward(TransactionDetail transactionDetail,
String issuerUsername)
Send rewarded token amounts (on blockchain) to a receiver wallet address
using 'Admin' wallet.
|
void createAdminAccount()
void createAdminAccount(String privateKey, String issuerUsername) throws IllegalAccessException
privateKey - admin account wallet private keyissuerUsername - current user creating walletIllegalAccessException - if current user is not allowed to create
admin wallet accountWallet getAdminWallet()
String getAdminWalletAddress()
TransactionDetail reward(TransactionDetail transactionDetail, String issuerUsername) throws Exception
transactionDetail - issuerUsername - ExceptionTransactionDetail initialize(TransactionDetail transactionDetail, String issuerUsername) throws Exception
transactionDetail - issuerUsername - ExceptionBigInteger balanceOf(String address) throws Exception
address - ExceptionBigInteger getEtherBalanceOf(String address) throws Exception
address - Exceptionboolean isInitializedAccount(String address) throws Exception
address - Exceptionboolean isAdminAccount(String address) throws Exception
address - Exceptionint getAdminLevel(String address) throws Exception
address - Exceptionboolean isApprovedAccount(String address) throws Exception
address - ExceptionContractDetail getContractDetailFromBlockchain(String contractAddress)
contractAddress - Copyright © 2003–2019 eXo Platform SAS. All rights reserved.