nebulasio / wiki

This repository is out of date, please check the new wiki:
http://wiki.nebulas.io/en/latest/
GNU General Public License v3.0
421 stars 153 forks source link

求详解Nebulas 101 - 02 发送交易中星云链交互 #106

Open dongshuyan opened 6 years ago

dongshuyan commented 6 years ago

看教程看到星云链交互那里,突然就懵逼了。 HTTP API怎么用的啊 为什么我运行testing里面的main.go的结果跟教程不一样呢?

我的是这样: moyu:client$ go run main.go 2018/05/08 10:50:22 GetNebState tail chain_id:100 tail:"6315d478167eef6539df3371b15dd168dc8d4f02726787babb73c45f9d95f408" lib:"0000000000000000000000000000000000000000000000000000000000000000" height:14 protocol_version:"/neb/1.0.0" version:"1.0.1" 2018/05/08 10:50:22 GetAccountState n1QZMXSZtW7BUerroSms4axNfyBGyFGkrh5 nonce 0 value 0 2018/05/08 10:50:22 GetAccountState n1Zn6iyyQRhqthmCfqGBzWfip1Wx8wEvtrJ nonce 0 value 0 2018/05/08 10:50:22 UnlockAccount failed: rpc error: code = Unknown desc = account is not found 2018/05/08 10:50:22 SendTransaction failed: rpc error: code = Unknown desc = account is locked 2018/05/08 10:51:02 GetAccountState n1Zn6iyyQRhqthmCfqGBzWfip1Wx8wEvtrJ nonce 0 value 0 求详解用法

Dearkano commented 6 years ago

curl的参数改造一下就是http请求了啊

weiht12 commented 6 years ago

你好,此版本为星云旧版wiki,欢迎将您的问题提交星云新版wiki,以便于及时与星云开发人员及其他社区开发者进行交流。同时,参与wiki的编辑维护工作还会有奖励哦。新版wiki链接:https://wiki.nebulas.io/en/latest/ (英文);https://wiki.nebulas.io/zh_CN/latest/ (中文) Hello, this version is the nebulas old wiki (later stop maintenance), welcome to submit your question to the new nebulas wiki, in order to get timely answers. At the same time, there will be rewards for editing and maintaining the wiki. New wiki link: https://wiki.nebulas.io/en/latest/ (English); https://wiki.nebulas.io/zh_CN/latest/ (Chinese)