/solana-wallet-standard-minimal-example

Implement Wallet Standard in your wallet.

Primary LanguageTypeScriptMIT LicenseMIT

Solana Wallet Standard Minimal Example

Implement Wallet Standard in your wallet for experimental purpose only.

This example is A. If you have API, check at solana-labs/wallet-standard - WALLET.md.

A. Write a wallet with a Wallet Standard compatible API.
B. Wrap your existing API with a Wallet Standard compatible API.

Note

We don't use Extension(e.g. Chrome Extension) to keep things simple and easy to understand.
Check your Wallet at Web(localhost).

You browser will register your wallet when you start web server.

registerWallet(new SolanaWallet());

Run

% npm i
% npm run dev

Then connect wallet.
"Solana Wallet" is your Wallet App:
screenshot

Reference