公事包-乙太安卓
wallet-eth以太网令牌钱包助记密钥keystore转账(bip39、bip32、bip44、web3j ) ) ) ) ) ) ) ) )。
生成钱包地址
//生成钱包地址
公事包=公事包管理器. generatewalletaddress (;
//从助记符获取地址
wallet manager.generate地址(wallet.get mnemonic () );
//通过助记符获取私钥
公事包管理器. generate private key (公事包. get mnemonic ();
//钱包keystore生成
公事包1=公事包管理器. generatewalletkeystore (' 123456 ',公事包. get mnemonic ) );
通过keystore获取私钥
wallet manager.generate private key (,wallet1.getKeystore ) );
助记符号: glarepavefatalcatchcakelargemadexitanyhoodexposeneither
地址:0x 3a 5c 0f e 05 f 7515 a 8283 B1 D2 a 1a 241 cbabafbf 094
keystore :“地址”:“3a 5c 0f e 05 f 7515 a 8283 B1 D2 a 1a 241 cbabafbf 094”,“id”:“13b 913 AC-2d19-4473-8515-DD ' cipher text ' : ' 66f 392 a 77 a f1 f0c 341519561 c 9e b 5857 ef 44255 b 35 d 115 d ' cipher params ' 3360 { ' iv ' : ' DC 81 d 0a 5b 103137 c c c ' KDF params ' 3360 } ' salt ' : '7DFA 3c 3d E3 CAC fab8c 93 BD 1790 DCE 2476696222 f 10153913 a7f 0632 b 4026 f 914 ' },' MAC ' 33: ' 2220
转账
string hash=wallet manager.sendtransactionbymnemonic ('0x8c 10a 04 b0ce 0414 b 089 EFE 89 e 311 f 75 fbf 964563 ',
' volumefinalloyalmatchglareeraolivesizecraftdepositpalmlabel ',
'0xe 94791399 F3 a0E6 d9AC 23 e 64102005 EFE f1 bb 424 ',string.valueof(0.1 );
//wallet manager.sendtransactionbymnemonicasync (0x8c 10a 04 b0ce 0414 b 089 EFE 89 e 311 f 75 fbf 964563 ),
//' volumefinalloyalmatchglareeraolivesizecraftdepositpalmlabel ',
//'0xe 94791399 F3 a0E6 d9AC 23 e 64102005 EFE f1 bb 424 ',string.valueof(0.1 ),null );
相关查询
//获取版本信息
wallet manager.get客户端版本(;
//ethBalance以太网余额
wallet manager.getethbalance (地址;
//noce
公事包管理器. get nonce (地址;
//name
wallet manager.gettoken name (地址);
//symbol
wallet manager.gettoken symbol (地址);
//decimals
公事包管理器. gettoken decimals (地址);
//总供应链
公事包管理器. gettokentotalsupply (地址;
//令牌馀额
wallet manager.gettoken balance (地址);