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

feat(wardend): add wardend q wait-tx command #115

Merged
merged 1 commit into from
Mar 22, 2024
Merged

feat(wardend): add wardend q wait-tx command #115

merged 1 commit into from
Mar 22, 2024

Conversation

Pitasi
Copy link
Contributor

@Pitasi Pitasi commented Mar 22, 2024

Based on the existing wardend q event-query-tx-for I implemented a new (imho, improved) version called warded q wait-tx.

It can be used similar to the previous command:

wardend q wait-tx 9598F8AA034B264FA507020E89C2365E194B7666B81812B411C18937F33F1151

A timeout can be specified:

wardend q wait-tx 9598F8AA034B264FA507020E89C2365E194B7666B81812B411C18937F33F1151 --timeout 3s

And, can be piped to classic tx subcommands:

wardend tx warden ... | wardend q wait-tx

Another difference from event-query-tx-for is that it doesn't fail if the transaction was already included in a previous block.

@Pitasi Pitasi merged commit a9af418 into main Mar 22, 2024
8 checks passed
@Pitasi Pitasi deleted the wait-tx-cmd branch March 22, 2024 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant