# LYNC In-Game Marketplace SDK

The in-game marketplace SDK enables developers to integrate a blockchain-based marketplace into their games, allowing players to perform transactions using NFT-based in-game assets. Key features include:

1. Decentralized profile management.
2. Buy, sell, rent, and lend NFTs.
3. NFT minting for free.
4. Cross-chain swaps.
5. Cross-chain rent/lend.
6. On-Ramp / Off-ramp Integration

By incorporating this SDK, developers can enhance player engagement, create monetization opportunities, and foster a strong player community.

<figure><img src="/files/4CXe7Xox8ItZan0t19Mr" alt=""><figcaption><p>LYNC MARKETPLACE SDK</p></figcaption></figure>

### Steps to Integrate Marketplace in Games:

**Note:** Make sure to Integrate any wallet SDK provided by LYNC.

Download the LYNC - Marketplace Wallet SDK

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

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3h3YUWYt8sR5rHLOIeFc%2Fuploads%2FdDzWzt5kkCqpWZTINSsu%2FLYNC%20wallet%20sdk.png?alt=media&token=65ae978c-fa8b-4eb5-a2ba-548146b3bb14>" %}
Import LYNC Marketplace SDK
{% endembed %}

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

&#x20;<mark style="background-color:yellow;">**Path : Assets ->LYNC-Marketplace -> Scenes**</mark>

After opening the **Marketplace** scene, Go to **Marketplace** GameObjec&#x74;**.** In the "Inspector" window, go to the Contract Address & Enter the **Contract Address** of your in-game assets which are listed as NFT.

<figure><img src="/files/NBdp8QY38vJQeOuQdMj9" alt=""><figcaption><p>Enter contract address</p></figcaption></figure>

Once you have entered the Contract Address, the chain id is getting fetched directly by Interface from the wallet Integration Screen.

Once the contract address is added, if you play the Unity game. It will start fetching all the NFTs by this contract address.

**Listing In-Game Assets on the In-Game Marketplace:**\
Players can list their in-game assets on either sell or lend in just one click.

<figure><img src="/files/50PvhTk6unzpacbNB8ee" alt=""><figcaption></figcaption></figure>

1. Navigate to the 'Inventory' section to access your owned NFTs.
2. Choose the desired NFT from your inventory' owned NFT Section.
3. Input a price for the asset.
4. Click the 'Sell' button to initiate the listing process.
5. Complete the first wallet transaction to approve your token.
6. Finalize the second transaction to successfully list your item on the marketplace.

***Voila! You've just listed your item for sale.***

Similarly, players can easily list their in-game assets for lending with just a few clicks:

1. Go to the 'Inventory' section to view your owned NFTs.
2. Select the NFT you wish to lend from your inventory's 'Owned NFT' section.
3. Set a daily rental price for the asset.
4. Specify the maximum duration for which the asset can be rented.
5. Complete the transaction to list your token for lending.

***And there you have it! You've successfully listed your item for rent.***

Additionally, our in-game marketplace SDK allows cross-chain token swaps, enabling players to exchange tokens seamlessly within the game environment, without worrying about any complexities.

<figure><img src="/files/WZ1ehOfTSteWYEzToO3s" alt=""><figcaption><p>Cross chain swaps visa Squid</p></figcaption></figure>

**In-Game Claimer Page**

LYNC Marketplace SDK allows gamers to mint in-game assets as NFT from the game itself, gamers can bring their contract address from any chain and the claimer page can be used by the gamers.

such If you want to deploy in-game assets as NFTs, Loot boxes, gasless NFT mint, or even dynamic NFTs. This can be done via [LYNC NFT Deployer](/lync/products/lync-nft-deployer.md).&#x20;

<figure><img src="/files/NsT8j1ugbk0b7c9v3Arg" alt=""><figcaption><p>Claim/Mint NFTs in game</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lync.gitbook.io/lync/products/lync-in-game-marketplace-sdk.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
