symbol-sdk-typescript-javascript
symbol-sdk-typescript-javascript copied to clipboard
InnerTransactions are not contained in a search result.
-
Expected behavior and actual behavior. InnerTransactions are not contained in a search result, but
getTransaction
contains them. -
Steps to reproduce the problem. reproduce code: https://runkit.com/nizveyl/innertransactions-are-not-contained-in-a-result
-
Specifications like the version of the project, operating system, or hardware. symbol-sdk v1.0.0
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.
- get the aggregate transaction wrapper.
- 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
Ok, thanks. I'm looking forward to improving it!