Giter Site home page Giter Site logo

Comments (5)

espritblock avatar espritblock commented on July 29, 2024

catch ApiException getError,把错误的详细信息打印出来看下

from eos4j.

guomingyi avatar guomingyi commented on July 29, 2024

您好,还是不行,帮忙看下可以么?
下面是新的,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.

espritblock avatar espritblock commented on July 29, 2024

沟通已解决

from eos4j.

wudian avatar wudian commented on July 29, 2024

我的demo也跑不通,能贴个跑的通的例子吗

from eos4j.

aasirx avatar aasirx commented on July 29, 2024

同问

from eos4j.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.