1.0.3 • Published 2 months ago

@ground-x/embedded-wallet-rn-sdk v1.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months ago

Embedded Wallet React Native SDK

The Embedded Wallet RN(React Native) SDK, developed by GroundX, is a software development kit for integrating wallet functionalities into mobile applications.

Installation

Using npm:

npm install @ground-x/embedded-wallet-rn-sdk

Using yarn:

yarn add @ground-x/embedded-wallet-rn-sdk

Basic Usage

  1. Import the SDK
import { KlipProvider } from '@ground-x/embedded-wallet-rn-sdk'
  1. Initialize the SDK
<KlipProvider params={{ appKey: 'testAppKey', region: 'global', environment: 'prod' }}>
  <Children />
  ...
</KlipProvider>
  1. Use the necessary SDK functions
import { useKlip } from '@ground-x/embedded-wallet-rn-sdk'

...

const { klip } = useKlip()

try {
  const loginResult = await klip.auth.login()  // try to login
  const walletAddress = loginResult.walletAddress  // get the user's address
} catch (e) {
  // Handle error
}

Support

If you encounter any issues or require assistance, please send email ( For Korean users / For Global users )

License

The Embedded Wallet RN SDK is licensed under the MIT License.