Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

fix: filter out failed txs from getAssetTransfers (#520)#558

Open
jose-compu wants to merge 1 commit into
alchemyplatform:masterfrom
jose-compu:fix/asset-transfers-include-failed-txs
Open

fix: filter out failed txs from getAssetTransfers (#520)#558
jose-compu wants to merge 1 commit into
alchemyplatform:masterfrom
jose-compu:fix/asset-transfers-include-failed-txs

Conversation

@jose-compu
Copy link
Copy Markdown

Summary

  • Fixes alchemy_getAssetTransfers Return transactions Fail #520alchemy_getAssetTransfers returns transfers from failed/reverted transactions with no way to distinguish them
  • Adds excludeFailedTransfers option to AssetTransfersParams that fetches transaction receipts and filters out transfers with status === 0
  • The flag is stripped before sending the request to the API, so it's purely SDK-side filtering

Test plan

  • Bug reproduction test confirms failed txs are returned by default
  • Verify excludeFailedTransfers: true removes reverted transfers from results
  • Verify excludeFailedTransfers is not leaked to the API payload
  • All 409 existing unit tests pass

alchemy_getAssetTransfers returns transfers from reverted transactions.
Add excludeFailedTransfers option that checks receipt statuses and
removes transfers with status 0.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

alchemy_getAssetTransfers Return transactions Fail

1 participant