Skip to content
This repository has been archived by the owner on Feb 27, 2021. It is now read-only.

persist remote endpoints in localstorage #227

Open
meowsbits opened this issue Jan 10, 2020 · 3 comments
Open

persist remote endpoints in localstorage #227

meowsbits opened this issue Jan 10, 2020 · 3 comments
Labels

Comments

@meowsbits
Copy link
Member

Is your feature request related to a problem? Please describe.
I'm using Expedition locally; pointing the Ethereum JSON-RPC value at a local geth instance http://localhost:8546. Whenever I reload the page, (eg if I'm "hacking on it" and running via npm run start) the field value clears and I have to re-enter the endpoint manually.

Describe the solution you'd like
The value to stick around so I don't have to re-enter it every time the page reloads.

@meowsbits
Copy link
Member Author

and/or set uri path would be fine too

@shanejonas
Copy link
Contributor

shanejonas commented Jan 10, 2020

👍 for saving the rpc config in localstorage.


but in the meantime, theres 3 options you can use for local dev right now:

Set rpc via url

?rpcUrl= Set custom rpc url.

Example: https://expedition.dev/?rpcUrl=https://services.jade.builders/multi-geth/kotti/1.9.2

Configure default urls via environment variables

Override eth url

REACT_APP_ETH_RPC_URL=https://services.jade.builders/multi-geth/mainnet/1.9.2 npm start

OR

Override service runner url

REACT_APP_SERVICE_RUNNER_URL=https://services.jade.builders/ npm start

Source: https://github.com/etclabscore/expedition#configurations

@meowsbits
Copy link
Member Author

ah, that'll do for now! thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants