StarKey Installation
Install StarKey from the surface you use:
- Browser extension — Chrome Web Store (Chrome, Brave, Edge)
- iOS — App Store
- Android — Google Play
After installing the extension, pin it in the browser toolbar and reload any dApp tab that was already open — the provider is injected at page load.
Checking for the extension from a dApp
The extension injects a starkey object into the top-level document of any http:// or https:// page. To check whether it is present:
const isStarkeyInstalled = typeof window !== 'undefined' && 'starkey' in windowThe wallet is multi-chain, so the object is namespaced per chain — window.starkey.supra for Supra, window.starkey.ethereum for EVM networks. Check the namespace you actually use rather than the top-level object alone:
const provider = window.starkey?.supra
if (!provider) {
window.open('https://starkey.app/', '_blank')
}Injection is asynchronous, so a single synchronous check on first render can run before the object exists. See
Detecting the Provider for the polling pattern, the one-time
starkey-extension-installed event, and the mobile-vs-desktop install prompt.
Related pages
- Detecting the Provider — the full detection flow for dApps
- Get started with Supra
- Get started with EVM networks