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

129
Views
how to detect wallet change in JS when i connect with Solflare extention

hello guys am working on a blockchain app that uses many wallets extensions like phantom , slope , solflare ... now i authorize only few public keys to be connected to my app , but the problem is if i connect with an authorized public key i can change to unauthorized one from the extension (SOLFLARE) and do what i want , please how can i detect current public key in solflare for example when using phantom here is how to access it :

window.solana.publicKey

any way to access solflare like that or any other solution i need the public key or an event that i can attach to it ...

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

hello guys i just figured it out , it's the same thing we can access it using :

window.solflare.publicKey
about 4 years ago · Juan Pablo Isaza Report

0

solflareLogin();

async function solflareLogin() {
    window.solflare.connect();
    window.solflare.on("connect", () => console.log("connected!"));
    setTimeout(() => {
        const wallet   = window.solflare.publicKey.toString();
        console.log( wallet );
    }, 100);

}
about 4 years ago · Juan Pablo Isaza Report
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!