near-wallet icon indicating copy to clipboard operation
near-wallet copied to clipboard

Developer feature proposal: manually override wallet's RPC and other services URLs

Open stefanopepe opened this issue 3 years ago • 1 comments

Story

As a power user/developer who is experiencing RPC issues, I want to override/change the RPC URL so I can overcome the unexpected issues. (We can replace RPC with contract helper or indexer to get the same expected result)

Acceptance Criteria

  • [ ] Overridden URL information is persistent across sessions
  • [ ] Browser console, during page loading, alerts the user if these values are not standard
  • [ ] Any changes can be reset to default with a single command
  • [ ] Overridden URLs work on all RPC/indexer/helper calls
  • [ ] Tested with alternative RPC/indexer/helper

Unhappy Path

  • even when the user changes this parameter, some calls or behaviors use hardcoded, standard URLs
  • users are not aware that the wallet is still using overridden URLs and encounter unexpected issues

Assets

No UI is necessary, this is a low-level command that should be available only to power users.

At a very high level, the idea is to let the power user open the browser console and type: something.override.rpc("URL or IP") something.override.indexer("URL or IP") something.override.reset() something.override.status()

I'm not aware of specific obstacles with React, near-api-js or future infrastructure plans - this feature should keep a "small" size and shouldn't require more than a few days of work.

Notes

This feature is useful for users who experience slow RPC/indexer response or want to run tests on their own nodes. It is not intended for common users and doesn't need a user interface. It is not intended to check if the overridden address is valid. This first release is good if it works via command console.

stefanopepe avatar Dec 10 '21 10:12 stefanopepe

just want to point out that this feature is different from the feature request we received from users/developers previously during the RPC downtime: https://github.com/near/near-wallet-roadmap/issues/36

https://github.com/near/near-wallet-roadmap/issues/36 includes more UI work from wallet to enable users to select the RPC nodes they prefer.

think-in-universe avatar Jan 25 '22 08:01 think-in-universe