solana-mwa-wallet-standard
TypeScript icon, indicating that this package has built-in type declarations

0.2.1 • Public • Published

solana-mwa-wallet-standard

Register the Solana mobile wallet adapter as a wallet-standard standard wallet with solana features on window

Usage

Import and call the registerSolanaMwaWalletStandard function

import { registerSolanaMwaWalletStandard } from "solana-mwa-wallet-standard";

registerSolanaMwaWalletStandard({
  name: "my dapp",
  uri: "https://your-dapp.com",
  icon: "./favicon.ico",
  chains: ["solana:mainnet", "solana:devnet"], // defaults to ["solana:mainnet"] if not specified. Mobile wallets may require a separate auth flow for each chain.
});

The mobile wallet adapter will be registered as a standard wallet:

import { getWallets } from "@wallet-standard/app";
const { get } = getWallets();
const allWallets = get(); // the mobile wallet adapter should be a part of `allWallets`

Readme

Keywords

none

Package Sidebar

Install

npm i solana-mwa-wallet-standard

Weekly Downloads

0

Version

0.2.1

License

Apache-2.0

Unpacked Size

23.3 kB

Total Files

4

Last publish

Collaborators

  • socean