Skip to main content

Zerion Wallet in your dApp

For developers: how Zerion Wallet makes itself available to your dapp's wallet selector.

This article is for dapp developers. It explains how Zerion Wallet makes itself available to your dapp, so you can check that your wallet selector picks it up. If your dapp follows the standard wallet discovery methods below, it needs no Zerion-specific code.

Wallet discovery in the Zerion Extension

Ethereum and other EVM networks

  • EIP-6963. The extension announces a provider with the name Zerion and the rdns io.zerion.wallet. It dispatches eip6963:announceProvider on page load and again each time your dapp dispatches eip6963:requestProvider. This is the most reliable way to list Zerion as its own entry.

  • Injected provider. The extension also sets an EIP-1193 provider at window.ethereum and at window.zerionWallet. The provider has isZerion set to true.

  • MetaMask Mode. By default the injected provider also reports isMetaMask as true, so that dapps which only look for MetaMask keep working. Users can turn this off per site. Do not use isMetaMask alone to tell wallets apart. See MetaMask Mode

The provider handles the usual wallet methods, including eth_requestAccounts, eth_sendTransaction, personal_sign, eth_signTypedData_v4, wallet_switchEthereumChain and wallet_addEthereumChain.

Solana

The extension registers a wallet named Zerion through the Solana Wallet Standard and also sets window.solana. Dapps that build their wallet list from the Wallet Standard will show Zerion without extra work.

Connections in the Zerion mobile app

Mobile users connect in two ways:

  • WalletConnect. The app scans WalletConnect QR codes and accepts pasted WalletConnect links. If your dapp offers WalletConnect, Zerion mobile users can connect.

  • In-app browser. Users can open your dapp inside Zerion's built-in browser and connect from there.

How to test

  1. Install the Zerion Extension and create or import a wallet.

  2. Open your dapp and open its wallet selector. Zerion should appear as its own entry if you use EIP-6963 or the Solana Wallet Standard.

  3. Connect and send a test signature request.

If your dapp calls window.ethereum directly and the user has a second wallet extension installed, Zerion first asks the user which wallet to use. This is expected. For what users see on their side, see Connect to dApps.

Did this answer your question?