Interactive Demo

See how our extension integrates with Phantom wallet to protect Solana users

Phantom Wallet Integration

Our extension integrates seamlessly with Phantom Wallet to provide security checks before wallet connections and transactions. This interactive demo shows how the integration works.

Website Loads

User visits a website that requests Phantom wallet connection

example-dapp.sol
Website requesting wallet connection
iteration0001.js
// Website attempts to connect to Phantom
const connectWallet = async () => {
  try {
    const { solana } = window;
    
    if (solana?.isPhantom) {
      const response = await solana.connect();
      const publicKey = response.publicKey.toString();
      console.log("Connected with Public Key:", publicKey);
      return publicKey;
    }
  } catch (error) {
    console.error(error);
  }
};