eosio 1.0.1 for java
change writeName add writeUint64 support custom contract
voteproducer(String pk,String voter,String proxy,List<String> producers)
OfflineSign sign = new OfflineSign();
String content =sign.transfer(params,"5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3","eosio.token","eeeeeeeeeeee", "555555555551", "372.0993 EOS", "test");
/**
* 转账
* @param pk 私钥
* @param contractAccount 合约账户
* @param from 从
* @param to 到
* @param quantity 转账币种金额
* @param memo 备注
*/
rpc.transfer(
"5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3",
"eosio.token",
"eosio",
"eosio.token",
"12.2821 SYS",
"");
/**
* 创建账户
* @param pk 创建者私钥
* @param creator 创建者
* @param newAccount 新账户名
* @param owner 公钥
* @param active 公钥
* @param buyRam ram
* @param stakeNetQuantity 网络抵押
* @param stakeCpuQuantity CPU抵押
* @param transfer 抵押所有者,0自己,1对方
*/
rpc.createAccount(
"5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3",
"eosio",
"newaccount22",
"EOS8eAX54cJtAngV2V22WZhRCW7e4sTAZz1mC5U22vp8mAGuFdMXx",
"EOS8eAX54cJtAngV2V22WZhRCW7e4sTAZz1mC5U22vp8mAGuFdMXx",
8192l,
"1.0000 SYS",
"1.0000 SYS",
0l);
Ecc.seedPrivate("test");
Ecc.seedPrivate("test");
Ecc.privateToPublic(privateKey);
Ecc.sign(pk, "test");
//transfer parse
String data = Ecc.parseTransferData(
"fromaccount",
"toaccount",
"10.0020 SYS",
"memo"
);
//account parse
String data1 = Ecc.parseAccountData(
"eosio",
"espritbloc1.",
"EOS8eAX54cJtAngV2V22WZhRCW7e4sTAZz1mC5U22vp8mAGuFdMXx",
"EOS8FPooohZiiCAYXahWCQRxgXXzUbS2gNELAeYCUgGdDMbd2FHQT");
wechat hl_294944589
eos4j is released under GNU/GPL Version 3