0.0.29 • Published 7 days ago
@wepin/solana-wallet-adapter v0.0.29
@wepin/solana-wallet-adapter
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
\appKey
\network
\: The network to connect using the wallet adapte (default: 'solana') Currently, only'solana'
,'solana-devnet'
are supported.attributes
\ optionaldefaultLanguage
: 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