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.
|
TransactionDetail |
sendEther(TransactionDetail transactionDetail,
String issuerUsername)
Send ether (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 - TransactionDetail with the hash of the transaction sent in
blockchainExceptionTransactionDetail initialize(TransactionDetail transactionDetail, String issuerUsername) throws Exception
transactionDetail - issuerUsername - TransactionDetail with the hash of the transaction sent in
blockchainExceptionTransactionDetail sendEther(TransactionDetail transactionDetail, String issuerUsername) throws Exception
transactionDetail - issuerUsername - TransactionDetail with the hash of the transaction sent in
blockchainExceptionBigInteger balanceOf(String address) throws Exception
address - TransactionDetail with the hash of the transaction sent in
blockchainExceptionBigInteger getEtherBalanceOf(String address) throws Exception
address - TransactionDetail with the hash of the transaction sent in
blockchainExceptionboolean isInitializedAccount(String address) throws Exception
address - TransactionDetail with the hash of the transaction sent in
blockchainExceptionboolean isAdminAccount(String address) throws Exception
address - TransactionDetail with the hash of the transaction sent in
blockchainExceptionint getAdminLevel(String address) throws Exception
address - TransactionDetail with the hash of the transaction sent in
blockchainExceptionboolean isApprovedAccount(String address) throws Exception
address - TransactionDetail with the hash of the transaction sent in
blockchainExceptionContractDetail getContractDetailFromBlockchain(String contractAddress)
contractAddress - TransactionDetail with the hash of the transaction sent in
blockchainCopyright © 2003–2019 eXo Platform SAS. All rights reserved.