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

Include confirmation depth and maybe other txn metadata in z_getoperation{status,result}. #6822

Open
nathan-at-least opened this issue Jan 26, 2024 · 0 comments
Labels

Comments

@nathan-at-least
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Whenever I use z_sendmany, I want to check the operation status to see if there is a txid. When there is a txid, I almost always want to know how many confirmations it has, so I end up using gettransaction. It's a bit tedious to cut'n'paste and parse output (either visually or with a script).

Describe the solution you'd like

It would be nice if z_sendmany included this directly in the result. Perhaps something like this:

{
  …
  "result": {"txid": …, "confirmations": …},
  …
}

Alternatives you've considered

An alternative might be a higher-level API or client tool that just automates using z_getoperation{status|result} then subsequently looking up confirmations for the txns. This could be completely separate from zcashd, which is also appealing.

Additional context

Since we're likely to retire zcashd maintenance, I'm not sure how worthwhile this is, but it seems easy to implement. This ticket may be useful for other cli wallet implementors.

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

No branches or pull requests

1 participant