Allow multiple RPC urls

in #utopian-io2 years ago (edited)


steem.api.setOptions function


Allow user to provide multiple RPC API urls for fallback.

Mockups / Examples

Current API:

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

New API:

steem.api.setOptions({ urls: [
] });


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 - Rewarding Open Source Contributors


Thank you for the contribution. It has been approved.

You can contact us on Discord.

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


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


  • 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!


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