Allow multiple RPC urls

in #utopian-io2 years ago (edited)

Components

steem.api.setOptions function

Proposal

Allow user to provide multiple RPC API urls for fallback.

Mockups / Examples

Current API:

steem.api.setOptions({ url: 'wss://steemd.steemit.com' });

New API:

steem.api.setOptions({ urls: [
  'wss://steemd.steemit.com',
  'wss://steemd.steemitdev.com',
  'wss://node.steem.ws'
] });

Benefits

Since architecture of the steem network is distributed and community run by design, it's not unusual to have one or more public RPC API nodes unresponsive for some amount of time. Any serious project built on top of steem blockchain will undoubtedly run it's own api node for reliability, but small community run projects usually don't have resources to do so and rely on public API nodes. It would be very beneficial for such projects to have the option of providing array of fallback urls to use automatically when main node is unresponsive.



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Hey @laxam I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x