這篇文章主要講解了“EOS cleos get transaction怎么獲取交易”,文中的講解內(nèi)容簡單清晰,易于學(xué)習(xí)與理解,下面請大家跟著小編的思路慢慢深入,一起來研究和學(xué)習(xí)“EOS cleos get transaction怎么獲取交易”吧!
隆安網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,隆安網(wǎng)站設(shè)計制作,有大型網(wǎng)站制作公司豐富經(jīng)驗。已為隆安上千提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站建設(shè)要多少錢,請找那個售后服務(wù)好的隆安做網(wǎng)站的公司定做!
命令格式:$ cleos get transaction ${transaction_id}
通過在nodeos中加載account_history_api_plugin,我們可以使用transaciton_id查詢特定事務(wù)
$ 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}
我們也可以查詢某個賬戶從最近一個賬戶開始執(zhí)行的交易清單
$ cleos get transactions inita [ { "transaction_id": "eb4b94b72718a369af09eb2e7885b3f494dd1d8a20278a6634611d5edd76b703", ... }, { "transaction_id": "6acd2ece68c4b86c1fa209c3989235063384020781f2c67bbb80bc8d540ca120", ... }, ... ]
感謝各位的閱讀,以上就是“EOS cleos get transaction怎么獲取交易”的內(nèi)容了,經(jīng)過本文的學(xué)習(xí)后,相信大家對EOS cleos get transaction怎么獲取交易這一問題有了更深刻的體會,具體使用情況還需要大家實踐驗證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識點(diǎn)的文章,歡迎關(guān)注!