eos4j create by espritblock
Clone or download
hule hule
hule and hule add property
Latest commit a5973cf Dec 25, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings change to utf8 Jun 8, 2018
src/main/java/io/eblock/eos4j add property Dec 25, 2018
.gitignore init May 25, 2018
LICENSE add createAccount Jun 12, 2018
README.md add voteproducer Aug 10, 2018
pom.xml upgrade dependencies com.squareup.retrofit2:retrofit to 2.5.0 Dec 25, 2018

README.md

eos4j

eosio 1.0.1 for java

change writeName add writeUint64 support custom contract

use

voteproducer

voteproducer(String pk,String voter,String proxy,List<String> producers)
	

support offline sign

OfflineSign sign = new OfflineSign();
String content =sign.transfer(params,"5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3","eosio.token","eeeeeeeeeeee", "555555555551", "372.0993 EOS", "test");
   

transfer

/**
 * 转账
 * @param pk 私钥
 * @param contractAccount 合约账户
 * @param from 从
 * @param to 到
 * @param quantity 转账币种金额
 * @param memo 备注
 */

 rpc.transfer(
 	"5KQwrPbwdL6PhXujxW37FSSQZ1JiwsST4cqQzDeyXtP79zkvFD3",
 	"eosio.token",
 	"eosio",
 	"eosio.token",
 	"12.2821 SYS",
 	"");

createAccount

/**
 * 创建账户
 * @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);
 	

seedPrivate


Ecc.seedPrivate("test");

seedPrivate


Ecc.seedPrivate("test");

privateToPublic


Ecc.privateToPublic(privateKey);

sign

Ecc.sign(pk, "test");

data serializa

//transfer parse
String data = Ecc.parseTransferData(
	"fromaccount", 
	"toaccount", 
	"10.0020 SYS", 
	"memo"
);

//account parse
String data1 = Ecc.parseAccountData(
	"eosio",
	"espritbloc1.",
	"EOS8eAX54cJtAngV2V22WZhRCW7e4sTAZz1mC5U22vp8mAGuFdMXx",
	"EOS8FPooohZiiCAYXahWCQRxgXXzUbS2gNELAeYCUgGdDMbd2FHQT");

join eos open source

wechat hl_294944589

License

eos4j is released under GNU/GPL Version 3