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

Horizon API: "transactions" function should have a parameter to skip XDR content #981

Closed
alien2108 opened this issue Sep 16, 2024 · 1 comment
Assignees

Comments

@alien2108
Copy link

What problem does your feature solve?

Some transactions (claimable balance....) have HUGE XDR load. Like 10Mb per transaction. If you do not need XDR info it would be good to provide parameter to skip this data in return. We have seen "transactions" responses that were 800MB for a single wallet due to complete overload of XDR fields.

What would you like to see?

Something as "xdr=true(default)/false" that would not return value of result_xdr and result_meta_xdr

What alternatives are there?

@alien2108 alien2108 changed the title RPC: "transactions" function should have a parameter to skip XDR content Horizon API: "transactions" function should have a parameter to skip XDR content Sep 16, 2024
@mollykarcher
Copy link
Contributor

@alien2108 are you running your own Horizon instance or using SDF's? If the former, there is a configuration value that removes XDR output from all Horizon responses (SKIP_TXMETA=true). There is no ability to set this on a per-request basis. If you are using SDF's instance, then txmeta will be removed from all API responses starting at Protocol 22.

If you'd still like to request this feature (per-request txmeta removal), can you please refile it over in the Horizon codebase? That is over here: https://github.com/stellar/go

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

2 participants