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

[Feature]: Use fast-near rpc endpoint for view calls with a failover logic for traditional near rpc endpoints #7

Open
jaswinder6991 opened this issue May 14, 2024 · 0 comments
Labels
✨ feature New feature or request

Comments

@jaswinder6991
Copy link
Collaborator

jaswinder6991 commented May 14, 2024

What is your idea or feature suggestion?

Fast-near has a built specialised RPC solution which has a lot of performance benefits for READ calls especially.
We should use that for our view calls. However, we should build a failover logic incase fast-near fails we should use traditional rpc endpoints.

Benefits

Better performance on READ calls.

Where can we find information about this?

Link to fast-near docs - https://github.com/fastnear/fast-near?tab=readme-ov-file#get

Example API - https://rpc.web4.near.page/account/<contract_account_id>/view/<method_name>?<arg_name>=<string_arg_value>&<arg_name.json>=<json_arg_value>

Are you willing to provide a PR to address this?

None

@jaswinder6991 jaswinder6991 added the ✨ feature New feature or request label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant