Skip to content

WalletConnect and Chrome extension #1370

Discussion options

You must be logged in to vote

Hey @WiwiC,

Walletconnect does work in a chrome extension. It makes things a bit trickier but it's possible and it's been done before.
What you need to do is :

  • initialize Walletconnect in the service worker of the extension
  • set up a inpage script to be injected as the page loads such as https://www.npmjs.com/package/@metamask/providers
  • pump the JSON RPC requests to your background.js
  • handle the incoming JSON RPC requests coming from the Dapp & forward them to the walletconnect client

Your flow will be Dapp <-> Extension <-> Wallet

Best,
Gancho

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@WiwiC
Comment options

@gilles437
Comment options

@gilles437
Comment options

@dhadx
Comment options

Answer selected by hackyguru
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants