LYNC
  • 👋INTRODUCTION
    • 👋Introducing LYNC
    • ⚙️Pre-Requisites
  • Products
    • LYNC Account Abstraction SDK
    • Metamask Wallet
    • OKX Wallet
    • LYNC In-Game Marketplace SDK
    • NFT Fetcher
    • LYNC Portal: Game Launcher
    • LYNC NFT Deployer
  • FEVM Support
    • LYNC Wallet SDK supporting FEVM
    • NFT Deployer -> FEVM
  • NPM Packages
    • Marketplace
      • Hook: useAllCollectionNFT
      • Hook: useAllBuyNFT
      • Hook: useAllOwnerNFT
      • Hook: useNFTDetails
      • Hook: useAllNFTForRent
Powered by GitBook
On this page
  • Get Your API Key
  • Installation
  • Choose blockchain network
  • Integrating ConnetWallet scene into the build
  1. FEVM Support

LYNC Wallet SDK supporting FEVM

Integrate FEVM Network in any game in less than 30 seconds.

PreviousFEVM SupportNextNFT Deployer -> FEVM

Last updated 1 year ago

Link to SDK:

LYNC Metamask Wallet SDK allows game developers to easily integrate Metamask into their game engine and deploy their game on FEVM.

Get Your API Key

Installation

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

Once the Metamask 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 - Metamask SDK. Path : Assets ->LYNC-Metamask-SDK -> Scenes

Choose blockchain network

If you haven't generated 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.

To choose the blockchain network, simply go to the CurrentChain drop-down menu and pick the FEVM Network.

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.

In the "Build Settings" window, place ConnectWallet and FetchWallet at the top of this section.

Go to "Player Settings" and navigate to "Resolution and Presentation". Select LYNC - Template in WebGL Template

After completing all the necessary steps and configuring the Player Settings with the LYNC WebGL template, you can now build and run your game.

  • To do this, go to "File" on the top menu bar in the Unity editor and select "Build and Run."

Congratulation, you have successfully integrated the Metamask wallet with your favourite blockchain network using LYNC SDK. NOTE: If you wish to use wallet address inside game after user's wallet is connected, use:

PlayerPrefs.GetString("WalletAddress");

Please get your API key before downloading the SDK from

Download the LYNC - Metamask Wallet SDK from

here
here
https://github.com/LYNC-WORLD/Metamask-Unity-Wallet-SDK
Integrate Metamask wallet inside any game using LYNC SDK
Assets -> Import Package -> Custom Package
Assets ->LYNC-Metamask-SDK -> Scenes
Interface -> CurrentChain -> Choose Your Chain
File -> Build Settings
Add ConnectWallet & FetchWallet Scene to the top of Scenes in Build
Player Settings -> Resolution and Presentation -> Select LYNC - Template
Build and Run