@wepin/solana-wallet-adapter
TypeScript icon, indicating that this package has built-in type declarations

0.0.29 • Public • Published

wepin logo


@wepin/solana-wallet-adapter

npm version npm downloads

Wepin Solana Wallet Adapter for Web. This package is exclusively available for use in web environments.

⚠️ Notice:

This package is only available for web environments and cannot be used in Android or iOS hybrid apps (Webview).

If you are using this package in a Server Side Rendering (SSR) environment, make sure to load the package only on the Client Side Rendering (CSR) side.

Please refer to the following code for implementation:

import { useMemo } from "react";
import { WepinWalletAdapter } from '@wepin/solana-wallet-adapter'
const App = () => {
  const wallets = useMemo(
      () => [
          new WepinWalletAdapter({
              appId: 'your-app-id',
              appKey: 'your-app-key',
              network: 'solana',
              attributes: {,
                defaultLanguage: 'ko',
                aultCurrency: 'KRW',
              }
          })
      ],
      []
    )
}

Parameters

  • appId <string>
  • appKey <string>
  • network <string>: The network to connect using the wallet adapte (default: 'solana') Currently, only 'solana', 'solana-devnet' are supported.
  • attributes <object> optional
    • defaultLanguage: The language to be displayed on the widget (default: 'en') Currently, only 'ko', 'en' and 'ja' are supported.
    • defaultCurrency: The currency to be displayed on the widget (default: 'USD') Currently, only 'KRW', 'USD' and 'JPY' are supported.

⏩ Requirements

  • Node version 20.17 or newer is required.

⏩ Document

⏩ Get App ID and Key

After signing up for Wepin Workspace, go to the development tools menu and enter the information for each app platform to receive your App ID and App Key.

⏩ Install

To install the Wepin Provider, you can use npm, yarn, or a CDN: Using npm:

npm install @wepin/solana-wallet-adapter

Using yarn:

yarn add @wepin/solana-wallet-adapter

Package Sidebar

Install

npm i @wepin/solana-wallet-adapter

Weekly Downloads

324

Version

0.0.29

License

MIT

Unpacked Size

1.53 MB

Total Files

21

Last publish

Collaborators

  • ke.kim
  • wepin.dev