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', } }) ], [] ) }
-
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.
-
- Node version 20.17 or newer is required.
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.
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