Comments (5)
catch ApiException getError,把错误的详细信息打印出来看下
from eos4j.
您好,还是不行,帮忙看下可以么?
下面是新的,log返回的err code == 500
******************* Ecc Start *******************
============= 通过种子生成私钥 ===============
private key :5JYgcuybUYKAuqrx9QZFUsDWiMh31DH1soFwKcyWuoq9oD5Fb22
============= 通过私钥生成公钥 ===============
public key :EOS7Wz4yF2HMQKuDPEVJEgw91D6Y1ycqUPHpWrpmdPWCDQuGPSFef
============= 自定义数据签名 ===============
sign :SIG_K1_KfKhJFzFVffT5zmWs59SZG8vTkgC6MrGYJuPQTWLPwjXU2MHKu24mXg2DhfLQR7ovgEHg57HMAc61aq36gYv1mq342R56T
============= 转账数据序列化 ===============
seriz data :00f2d4142123e95d0000c85353840ccdb486010000000000045359530000000019e6b58be8af95313233616263646f2e2f2c2e2f214023232425
transfer eq eosjs seriz true
============= 创建账户数据序列化 ===============
seriz data :0000000000ea30550002a2f164772b5601000000010003ee4221c9c3f4f62646e3c758dbb8abaae506a559f67148a76968fa6b0f0868140100000001000000010003ba8de2f029cae85e7ca5c9f591bb17b86d750c5116cec30d94100e16e446d41501000000
account eq eosjs seriz true
******************* Ecc End *******************
******************* Rpc Start *******************
******************* Rpc:http://mainnet.eoscalgary.io *******************
============= 创建账户并且抵押 ===============
{"compression":"none","transaction":{"expiration":"2018-07-24T15:52:53","ref_block_num":7551296,"ref_block_prefix":1364978175,"net_usage_words":0,"max_cpu_usage_ms":0,"delay_sec":0,"context_free_actions":[],"actions":[{"account":"eosio","name":"newaccount","authorization":[{"actor":"eosio","permission":"active"}],"data":"0000000000ea305530f2d41421033055010000000100037c7d5649991b92dfdf5dd00bb6e6a1a1662f8af0b461879527e8a5af07e1411401000000010000000100037c7d5649991b92dfdf5dd00bb6e6a1a1662f8af0b461879527e8a5af07e1411401000000"},{"account":"eosio","name":"buyrambytes","authorization":[{"actor":"eosio","permission":"active"}],"data":"0000000000ea305530f2d4142103305500200000"},{"account":"eosio","name":"delegatebw","authorization":[{"actor":"eosio","permission":"active"}],"data":"0000000000ea305530f2d41421033055640000000000000004535953000000006400000000000000045359530000000000"}],"transaction_extensions":[]},"signatures":["SIG_K1_KcYE8tSEJ76X4dsCxnYYWcxDFrk7hrZQQEYN1rntXrzv9rckXdGh8vsRLMx4Hhcts6L2qs2ZAw7tTyHNsANEiqx7Y14A4r"]}
getError code:500
============= 创建账户不抵押 ===============
{"compression":"none","transaction":{"expiration":"2018-07-24T15:52:54","ref_block_num":7551308,"ref_block_prefix":3182982404,"net_usage_words":0,"max_cpu_usage_ms":0,"delay_sec":0,"context_free_actions":[],"actions":[{"account":"eosio","name":"newaccount","authorization":[{"actor":"eosio","permission":"active"}],"data":"0000000000ea305520f2d41421033055010000000100037c7d5649991b92dfdf5dd00bb6e6a1a1662f8af0b461879527e8a5af07e1411401000000010000000100037c7d5649991b92dfdf5dd00bb6e6a1a1662f8af0b461879527e8a5af07e1411401000000"},{"account":"eosio","name":"buyrambytes","authorization":[{"actor":"eosio","permission":"active"}],"data":"0000000000ea305520f2d4142103305500200000"}],"transaction_extensions":[]},"signatures":["SIG_K1_Kan7G7ZqTLVtTfES6CwXgMY2N8NsLDprA5L9YVdaJy4zPxt8b4J2iqABn2YoydKnHumAwoULJNMSHMPtdGZ3qgqiJUt3M7"]}
getError code:500
******************* Rpc End *******************
代码改动:如下
1:rpc换成主网:Rpc rpc = new Rpc("http://mainnet.eoscalgary.io");
2:公钥私钥换成自己生成的
3:加上 catch(ApiException ex),如上面log,打印出了error code == 500
麻烦帮忙看下什么原因,多谢了
from eos4j.
沟通已解决
from eos4j.
我的demo也跑不通,能贴个跑的通的例子吗
from eos4j.
同问
from eos4j.
Related Issues (18)
- close 方法 HOT 1
- transfer时memo超过94个字符导致签名失败 HOT 1
- 有发币的功能吗? HOT 1
- 无法用gradle安装
- 转账问题 HOT 2
- maven HOT 1
- 可以用这个库来调用智能合约吗? HOT 1
- 楼主,可以弄一个给a账号抵押cpu的方法吗? HOT 1
- 对非转账交易进行签名 签名失败 HOT 2
- how to get the error detail HOT 1
- io.eblock.eos4j.api.utils.Generator类的createService调用多次会出现内存溢出 HOT 1
- 使用手机进行pushTransaction出现 unsatisfied_authorization 3090003 错误 HOT 2
- 这个库有问题啊,会导致转账金额增加 HOT 1
- 该库已经不再维护了,大家可以使用eos官方的库。 HOT 1
- how to get data from table of contract HOT 3
- something about buy ram with eos HOT 5
- 转账精度问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eos4j.