Rise Wallet
  • 🙌Introduction
    • Self-Custody
    • Best Practices
    • Bigger Picture
  • Features
    • ✨Active on Devnet
  • Integrations
    • ⛓️Integrate Rise Wallet
      • With the Wallet Adapter
      • Without the Wallet Adapter
        • Detecting the Provider
        • Establishing Connection
        • Sending Transactions
        • Signing Transactions
        • Signing Messages
    • 🎭Profile Picture Protocol
      • Get a Wallet's Profile Picture
      • Set a NFT as a Profile Picture
      • Clear Profile Picture
    • ⚡Rise Notifications
      • Sending Notifications
      • User Perspective
        • Notification Center
        • Subscription Management
      • API Endpoints
        • Broadcast Endpoint
        • Unicast Endpoint
        • List Casts Endpoint
        • View Cast Endpoint
        • Check Key Subscription Status
Powered by GitBook
On this page
  1. Integrations
  2. Integrate Rise Wallet
  3. Without the Wallet Adapter

Detecting the Provider

To detect if a Rise Wallet is installed in a user's browser, you need to check if window.rise is defined. The Rise Wallet extension injects rise into the browser's window object and it's available to all web pages on the user's browser.

const isRiseInstalled = window.rise && window.rise.isRise;

If Rise Wallet is not installed, you can prompt and redirect your users to download it using something like this:

const getProvider = () => {
  if ('rise' in window) {
    const provider = window.rise;
    if (provider.isRise) {
      return provider;
    }
  }
  window.open('https://risewallet.io', '_blank');
};
PreviousWithout the Wallet AdapterNextEstablishing Connection

Last updated 2 years ago

⛓️