Extension Wallet
Integration
Cosmos Chains
Deprecated
Provider

Provider

Cosmostation extension support various chains.

Code using @cosmostation/extension-client

import { cosmos, InstallError } from "@cosmostation/extension-client";
 
try {
  const provider = await cosmos();
} catch (e) {
  if (e instanceof InstallError) {
    console.log("not installed");
  }
}

Vanilla Code

window.onload = async () => {
  if (!window.cosmostation) {
    alert("Please install cosmostation extension");
  } else {
    // logic
  }
};