Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance `cleos get transaction_id` for exploded data #6830

heifner opened this issue Feb 25, 2019 · 2 comments


Copy link

commented Feb 25, 2019

  • See #6829
  • Add support for returning transaction id of json with exploded action data.
  • #6829 added automatic use of actions.hex_data as if actions.hex_data provided. That only works, of course, if hex_data is available. If hex_data is not available then the abi of the action would need to be retrieve or provided.

@kj4ezj kj4ezj added the enhancement label Mar 23, 2019


This comment has been minimized.

Copy link

commented Aug 28, 2019

Due to some problems, (guessing that a single nodeos pushed too many transactions) caused the transaction push to return timeout, but in fact the transaction has been pushed successfully. The solution I think of temporarily is that I hope to calculate the ID of the transaction in advance before the transaction is submitted, so that when the transaction is repeated, it is first determined whether the transaction ID already exists. After searching, I found that 'cleos get transaction_id ' (#6830) seems to be the function I want, but testing different data, always returning the same id. I use the method problem? Or is this feature not used like this?

cleos get transaction_id 1e24d670f7c504c63184cc4be449f19685a2215f95d03aba7d61f4aac3c77eb8.json
cleos get transaction_id 53a7af39b92fc811b7ccae2e3602964fd21263162756f491cb875e80b5e7a886.json


This comment has been minimized.

Copy link
Contributor Author

commented Aug 28, 2019

The develop version of cleos will give an error of:

07:21:08@heifnerk:~/ext/eosio/programs/cleos$ ./cleos get transaction_id 1.json
transaction json does not include 'actions'

The problem is your json includes more than a transaction object. Only give it the transaction object. See attached files.


07:22:48@heifnerk:~/ext/eosio/programs/cleos$ ./cleos get transaction_id 1.json.txt 
07:23:21@heifnerk:~/ext/eosio/programs/cleos$ ./cleos get transaction_id 5.json.txt 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
3 participants
You can’t perform that action at this time.