EOScleosgettransaction怎么获取交易
这篇文章主要讲解了“EOS cleos get transaction怎么获取交易”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“EOS cleos get transaction怎么获取交易”吧!
隆安网站建设公司创新互联公司,隆安网站设计制作,有大型网站制作公司丰富经验。已为隆安上千提供企业网站建设服务。企业网站搭建\外贸网站建设要多少钱,请找那个售后服务好的隆安做网站的公司定做!
通过transaction_id获取交易
命令格式:$ cleos get transaction ${transaction_id}
通过在nodeos中加载account_history_api_plugin,我们可以使用transaciton_id查询特定事务
$ cleos get transaction eb4b94b72718a369af09eb2e7885b3f494dd1d8a20278a6634611d5edd76b703 { "transaction_id": "eb4b94b72718a369af09eb2e7885b3f494dd1d8a20278a6634611d5edd76b703", "processed": { "refBlockNum": 2206, "refBlockPrefix": 221394282, "expiration": "2017-09-05T08:03:58", "scope": [ "inita", "tester" ], "signatures": [ "1f22e64240e1e479eee6ccbbd79a29f1a6eb6020384b4cca1a958e7c708d3e562009ae6e60afac96f9a3b89d729a50cd5a7b5a7a647540ba1678831bf970e83312" ], "messages": [{ "code": "eos", "type": "transfer", "authorization": [{ "account": "inita", "permission": "active" } ], "data": { "from": "inita", "to": "tester", "amount": 1000, "memo": "" }, "hex_data": "000000008040934b00000000c84267a1e80300000000000000" } ], "output": [{ "notify": [{ "name": "tester", "output": { "notify": [], "sync_transactions": [], "async_transactions": [] } },{ "name": "inita", "output": { "notify": [], "sync_transactions": [], "async_transactions": [] } } ], "sync_transactions": [], "async_transactions": [] } ] } }
通过帐户获取交易
命令格式:$ cleos get transaction ${account}
我们也可以查询某个账户从最近一个账户开始执行的交易清单
$ cleos get transactions inita [ { "transaction_id": "eb4b94b72718a369af09eb2e7885b3f494dd1d8a20278a6634611d5edd76b703", ... }, { "transaction_id": "6acd2ece68c4b86c1fa209c3989235063384020781f2c67bbb80bc8d540ca120", ... }, ... ]
感谢各位的阅读,以上就是“EOS cleos get transaction怎么获取交易”的内容了,经过本文的学习后,相信大家对EOS cleos get transaction怎么获取交易这一问题有了更深刻的体会,具体使用情况还需要大家实践验证。这里是创新互联,小编将为大家推送更多相关知识点的文章,欢迎关注!
文章名称:EOScleosgettransaction怎么获取交易
标题路径:http://pwwzsj.com/article/gpphhc.html