-
Notifications
You must be signed in to change notification settings - Fork 285
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
/api/transactions/search to handle search by recipient from multipayment recipients #3741
Comments
Okay. But as an alternative I can also enable OR condition for search endpoints, so that multipayment can be included like this: [
{ "recipientId": "<recipient address>" },
{ "asset": { "payment": { "recipientId": "<recipient address>" } } }
] Or I can add additional aggregated criteria property: { "anyRecipientId": "<recipient address>" } Otherwise it isn't clear why transactions that are included into result may have unexpected recipientId that doesn't match specified criteria (because asset.payment.recipientId does). |
Yeah OR could be good, what do you think @faustbrian ? |
Not really a fan of that because we don't require special recipient types to be specified for anything else and that just makes it more tedious to retrieve transactions. When you request transactions via API without a Also, this has to work with the |
Not gonna fight for it, that rule was already broken for delegate registration. |
There is no rule that was broken. There are special transaction types that are sent to yourself because they need to go somewhere but a multi-payment is just a transfer (type 0) that has multiple recipients. |
|
POST /api/transactions/search
currently doesn't support to search multipayment tx by recipients since the recipients sit in the asset of the multipayment transaction.The text was updated successfully, but these errors were encountered: