Skip to content
This repository has been archived by the owner on Jun 10, 2022. It is now read-only.

Search transaction statements endpoint (/statements/transaction) ignores receiptType parameter #592

Open
thomasoehri opened this issue Mar 23, 2021 · 0 comments

Comments

@thomasoehri
Copy link

The Symbol API documentation specifies that you can filter transaction statements by receipt type:

receiptType Array of integers (ReceiptTypeEnum) Items Enum: 4685 4942 8515 8776 9032 8786 9042 12616 12626 16717 16718 16974 20803 5766761763 62019 Filter by receipt type. To filter by multiple receipt types, add more filter query params like: receiptType=8515&receiptType=20803.

The parameter "receiptType" won't get recognized by the endpoint though.

For example, http://ngl-dual-306.symbolblockchain.io:3000/statements/transaction?targetAddress=NAE7TERUPREIRJT32NYJGRGUVIYFT6USWCAHVZA&receiptType=8515
still brings up receipts of type 20803 (as well as 8515):

{ "data": [ { "statement": { "height": "19121", "source": { "primaryId": 0, "secondaryId": 0 }, "receipts": [ { "version": 1, "type": 8515, "targetAddress": "6809F992347C4888A67BD3709344D4AA3059FA92B0807AE4", "mosaicId": "6BED913FA20223F8", "amount": "185547354" }, { "version": 1, "type": 8515, "targetAddress": "68693706B3EA603157D423C4F29ED6701CF70960E831D2AD", "mosaicId": "6BED913FA20223F8", "amount": "9765650" }, { "version": 1, "type": 20803, "mosaicId": "6BED913FA20223F8", "amount": "191997042" } ] }, "id": "6059FEE17BBE8920786A373C" }, ...

I'd expect it to only show receipts of type 8515.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant