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

[fireblocks] Add a way to cancel transaction #198

Merged
merged 2 commits into from
Apr 14, 2024
Merged

Conversation

ian-shim
Copy link
Contributor

@ian-shim ian-shim commented Apr 9, 2024

Adding support for canceling transaction in flight.
This method can cancel transactions that have not been broadcasted to the network (either because it's still gathering cosignatures or other MPC operations)

samlaf
samlaf previously approved these changes Apr 10, 2024

func (f *client) CancelTransaction(ctx context.Context, txID string) (bool, error) {
f.logger.Debug("Fireblocks cancel transaction", "txID", txID)
url := fmt.Sprintf("/v1/transactions/%s/cancel", txID)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this is a path, not a url

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated

Copy link
Collaborator

@samlaf samlaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! sorry, this slipped in my mailbox

@ian-shim ian-shim merged commit 84d5bc1 into master Apr 14, 2024
3 checks passed
@ian-shim ian-shim deleted the fireblocks-cancel-txn branch April 14, 2024 17:29
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.

2 participants