Skip to content

Instantly share code, notes, and snippets.

@Ankarrr
Created June 9, 2020 04:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Ankarrr/28e9209f1841d7a47af4bf361eac0ebd to your computer and use it in GitHub Desktop.
Save Ankarrr/28e9209f1841d7a47af4bf361eac0ebd to your computer and use it in GitHub Desktop.
// Create web3 instance
export const alchemyWeb3 = createAlchemyWeb3(currentHttpProvider, {
maxRetries: 5,
retryJitter: 250,
});
// Do something
// Reset the provider
// alchemyWeb3.setProvider(newProvider);
alchemyWeb3.setWriteProvider(newProvider);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment