Skip to main content

OKX Wallet

Integrate OKX wallet into game engine


The LYNC - OKX wallet SDK allows game developers to integrate OKX Wallet into their games quickly, and set up OKX Chain inside the game in less than 30 seconds. This SDK allows game developers to monitor gamers’ data via the LYNC analytics system and update the SDK without leaving the game engine.

Get Your API Key​

Please get your API key before downloading the SDK from here

Installation​

Download the LYNC - OKX Wallet SDK from here

Import the SDK .unitypackage file to your project. or simply drag and drop .unitypackage file to your project.

Assets -> Import Package -> Custom Package

Once the OKX Wallet SDK package has finished importing into your Unity project, you can begin integrating it into your game. To do this, open the ConnectWallet scene provided by the LYNC-OKX SDK.

Assets ->LYNC-OKX-SDK -> Scenes

Choose blockchain network​

info

If you haven't generated an API Key, please check Get Your API Key

After opening ConnectWallet scene, Go to Interface. In the "Inspector" window, go to the API key & Enter the API key.

Enter the API key

To choose the blockchain network, simply go to the CurrentChain drop-down menu and pick the network of your preference to deploy your game on.

Interface -> CurrentChain -> Choose Your Chain

Integrating ConnetWallet scene into the build​

To deploy your Unity project, it's necessary to set up the Player Settings in Unity. Follow these steps to select the LYNC WebGL template.

File -> Build Settings

Add ConnectWallet & FetchWallet Scene to the top of Scenes in Build