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

Add label filter for onchain tx API endpoint #3588

Merged

Conversation

bolatovumar
Copy link
Contributor

close #3587

@@ -197,6 +198,23 @@ public async Task<IActionResult> UnReserveOnChainWalletReceiveAddress(string sto
filteredFlatList.AddRange(txs.ReplacedTransactions.Transactions);
}

if (labelFilter != null)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure how to test this as there is currently no way to set the label through the API, only through the UI. Maybe if #3561 is merged in then I can use that to patch the transaction with a label and then test the filtering.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added test in c9366a2

@bolatovumar bolatovumar marked this pull request as ready for review April 2, 2022 03:28
@bolatovumar bolatovumar force-pushed the feat/onchain-tx-api-label-filter branch from 1dd3a45 to c9366a2 Compare April 16, 2022 04:59
@NicolasDorier NicolasDorier merged commit 7e6a2d0 into btcpayserver:master Apr 18, 2022
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.

[GreenField API] Get store on-chain wallet transactions
2 participants