Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

176
Views
How to add global variable like window.ethereum in metamask in chrome extension

I'm building chrome extension wallet from scratch and I want to add global variable like window.ethereum from metamask.
I've tried to simply add this code to the background.js but it does not work.๐Ÿ˜…

window.alternativeForEthereum = {};

Now I want to find a way to provide interface for all web pages which interacts with my wallet so that the pages can send requests to the wallet directly.
The target workflow is extremely similar to accessing account logic from metamask.

Thank you in advance and any answer will be highly appreciated.

about 4 years ago ยท Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
ยฉ 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!