soroban-cli icon indicating copy to clipboard operation
soroban-cli copied to clipboard

Add a --dry-run option to `tx sign`

Open leighmcculloch opened this issue 1 year ago • 1 comments

Once we add the tx sign command I think we should add a --dry-run option to it that doesn't actually sign or output a tx, but just lists what will and won't be signed.

For example for a simple tx it'll just show the tx being signed.

For a transaction with one or more auths it'd show which auths will be signed and which won't.

This could be really helpful for users of hardware signers or other devices in understanding what they'll be signing without needing to actually go and sign. It could become a good way to understand if the tx is doing something it shouldn't be.

I think we'll have other ways to introspect a tx as well, but this would be focused on auths and the entities to be signed.

Another way of approaching this instead of a --dry-run option would be to make an auths command, such as tx auths that provides capabilities specific to auths.

cc @janewang @willemneal

leighmcculloch avatar Jul 24 '24 06:07 leighmcculloch

Created task for adding tx auths command #1493

ifropc avatar Jul 26 '24 19:07 ifropc

Close this in favor of https://github.com/stellar/stellar-cli/issues/1493

janewang avatar Jan 10 '25 17:01 janewang