https://github.com/ProChain/tron_wallet_android
![](https://img.haomeiwen.com/i13196674/764961c8c34c0552.png)
![](https://img.haomeiwen.com/i13196674/fce3650959b953df.png)
This is Android tron wallet base on the tron wallet cli by JAVA. Support most of the wallet cli function
create or import key. checkBalance or assets. transfer call dapp contract, backup private key
About Tron
https://github.com/tronprotocol
TRON is an ambitious project dedicated to the establishment of a truly decentralized Internet and its infrastructure.
The current TRON team radiates out from Beijing to Seoul, Tokyo, San Francisco and many other countries and regions, totaling more than 100 members. The technological backbones of TRON are experienced blockchain enthusiasts who were previously employed by internet giants such as Alibaba, Tencent and Baidu.
=============================================
Usage
You can check the testCenter's sample for more functions.
private void changeWalletPwd() {
WalletApiWrapper walletApi = new WalletApiWrapper();
walletApi.context = this;
//then you can call wallApi's function ....
}
ImportWallet
ImportwalletByBase64
ChangePassword
Login
Logout
BackupWallet
BackupWallet2Base64
Getaddress
GetBalance
GetAccount
GetAssetissueByAccount
GetAssetIssueByName
SendCoin
TransferAsset
ParticipateAssetissue
Assetissue
CreateWitness
VoteWitness
FreezeBalance
UnfreezeBalance
WithdrawBalance
Listaccounts
Listwitnesses
Listassetissue
listNodes
GetAssetIssueByName
Getblock UpdateAccount Exit or Quit
================================================
call or sign contract
private void callSignContract() { if (walletApi==null) { Log.d("wallet", "please login first"); return ; }
String contractAddress = "THBE7KgFSP6zWrfJh7yp4gfZd9VCfPcbws";
String method = "click";
String params = "1";
String privateKey = "Your private key";
walletApi.ecKey = ECKey.fromPrivate(ByteArray.fromHexString(privateKey));
//ClickEvent
walletApi.triggerContract(contractAddress,method, params);
}
===================================================
dapp interaction relate.
todo....using the similar js middle ware as we do in EOS
网友评论