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

InnerTransactions are not contained in a search result. #783

Open
44uk opened this issue May 21, 2021 · 2 comments
Open

InnerTransactions are not contained in a search result. #783

44uk opened this issue May 21, 2021 · 2 comments

Comments

@44uk
Copy link
Contributor

44uk commented May 21, 2021

  1. Expected behavior and actual behavior.
    InnerTransactions are not contained in a search result, but getTransaction contains them.

  2. Steps to reproduce the problem.
    reproduce code:
    https://runkit.com/nizveyl/innertransactions-are-not-contained-in-a-result

  3. Specifications like the version of the project, operating system, or hardware.
    symbol-sdk v1.0.0

@rg911
Copy link
Contributor

rg911 commented May 21, 2021

yeah, this is intended for rest. I don't think it is a bug on the sdk. At the moment the full aggregate transaction needs 2 queries from the search endpoint.

  1. get the aggregate transaction wrapper.
  2. use the aggregateHash to query the transactions/{hash} to get the full payload.

Alternatively, you can use the embedded=true for in the searchCriteria to get the inner transaction only (no wrapper). However, there are limitations to using this flag in combination with other query params. I think the recipientAddress / signerPublicKey works nicely with embedded, but the tx type (aggComplete) will not work together with embedded.

I agree this limitation is not very convenient and we are planning to improve it (the whole catapult-rest) right now

@44uk
Copy link
Contributor Author

44uk commented May 21, 2021

Ok, thanks. I'm looking forward to improving it!

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

No branches or pull requests

2 participants