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

[Feature]: add two CLI query commands: block-results and simulate #16886

Closed
larry0x opened this issue Jul 7, 2023 · 0 comments · Fixed by #16887
Closed

[Feature]: add two CLI query commands: block-results and simulate #16886

larry0x opened this issue Jul 7, 2023 · 0 comments · Fixed by #16887

Comments

@larry0x
Copy link
Contributor

larry0x commented Jul 7, 2023

Summary

Add the following two new CLI commands:

simd q block-results [height]
simd q simulate /path/to/tx.json

Problem Definition

Why these are useful?

The simd q block command queries the block, but it doesn't include tx events or begin/endblocker events. As a developer, it's often useful to have a easy way to query begin/endblocker events.

The simulate command is mainly useful for multisigs. Very often, we compose a tx, gather multisig signers to sign it, only to find out the tx fails because we made a typo when composing it. It'd be greatly helpful if we can simulate the tx, find out whether it will be successful or not, as well as get a gas estimate, before having signers sign it.

Proposal

Add the two suggested commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant