256hax / solana-wallet-standard-minimal-example

Implement Wallet Standard in your wallet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Implement Wallet Standard in your wallet.

License:MIT License


Languages

Language:TypeScript 91.0%Language:CSS 7.4%Language:HTML 1.5%