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

Allow fetch functions to pass headers #1983

Closed
45930 opened this issue Jan 26, 2025 · 1 comment
Closed

Allow fetch functions to pass headers #1983

45930 opened this issue Jan 26, 2025 · 1 comment

Comments

@45930
Copy link
Contributor

45930 commented Jan 26, 2025

Whenever an http request is made by o1js, we should allow developers to pass headers to the server. In particular, we should expose two new functions in the fetch module: setMinaDefaultHeaders and setArchiveDefaultHeaders, which add the configured headers to every request, and update the function signature for the methods that make a request one time (fetchAccount, fetchEvents, fetchActions, etc...).

This feature will enable developers to run private archive nodes or Mina nodes requiring a key, requests to pools of nodes to submit a series of requests to the same exact node, and other features like these on the node operator side.

@kadirchan
Copy link
Contributor

kadirchan commented Feb 4, 2025

Hi @45930 I sent a PR (#2004)for this issue. Please let me know if there is any missing part.

@45930 45930 closed this as completed Feb 5, 2025
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