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 154 forks source link

成功交易的txhash查找不到 #155

Open xfarmer opened 6 years ago

xfarmer commented 6 years ago

命令行和输出结果如下:

[Farmer@Ubuntu go-nebulas]$ curl -i -H 'Content-Type: application/json' -X POST http://localhost:8685/v1/admin/transaction -d '{"from":"n1FF1nz6tarkDVwWQkMnnwFPuPKUaQTdptE","to":"n1FsXiuYY9RkRkTDcKVMpPcsqAHxBv76qwP", "value":"1000000000000000000","nonce":3,"gasPrice":"1000000","gasLimit":"2000000"}'
HTTP/1.1 200 OK
Content-Type: application/json
Vary: Origin
Date: Mon, 21 May 2018 06:06:02 GMT
Content-Length: 110

{"result":{"txhash":"18e30a7b906d1ab673e477478c59374cf63af0d60f6247c3d60cdc2bc3742ab4","contract_address":""}}
[Farmer@Ubuntu go-nebulas]$ curl -i -H Accept:application/json -X POST http://localhost:8685/v1/user/getTransactionReceipt -d '{"hash":"18e30a7b906d1ab673e477478c59374cf63af0d60f6247c3d60cdc2bc3742ab4"}'
HTTP/1.1 400 Bad Request
Content-Type: application/json
Vary: Origin
Date: Mon, 21 May 2018 06:24:02 GMT
Content-Length: 34

{"error":"transaction not found"}

交易后的hash: 18e30a7b906d1ab673e477478c59374cf63af0d60f6247c3d60cdc2bc3742ab4 查找交易找不到 是操作不对吗?万望指出是什么原因?

yupnano commented 6 years ago

根据目前的信息还不能确定问题原因。可能是交易正在被打包,可以多等十几秒再查一下看看有没结果。

weiht12 commented 5 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)