# Usage

{% hint style="danger" %}
The following information is deprecated and may limit its use. Please refer to the WalletConnect 2.0 tab for the latest version of NEOPIN wallet integration: [WalletConnect 2.0](/developers/walletconnect-2.0.md)
{% endhint %}

To use WalletConnect in your Unity project, simply create an empty GameObject in your Scene and attach the `WalletConnect` component to your GameObject. Attaching this script will automatically attach any required components as well

&#x20;

<figure><img src="/files/ewJjE2EGbIIN28tdFlr4" alt=""><figcaption></figcaption></figure>

#### Options

* Default Wallet
  * The default wallet to open up on iOS when no when no wallet is specified in `None`
* Auto Save and Resume
  * Automatically saves the session when the application pauses or quits and resumes the session when the app resumes or starts.
* Connect On Awake
  * Whether you would like WalletConnect to automatically start listening for a Wallet connection on awake. The user will still need to initiate a connection either by scanning a QR code or through deep linking
* Connect On Start
  * Whether you would like WalletConnect to automatically start listening for a Wallet connection on start. The user will still need to initiate a connection either by scanning a QR code or through deep linking
* Create New Session On Session Disconnect
  * WalletConnect will create a new session every time the current session ends.
* Connect Session Retry Count
  * How many times a session should attempt to reconnect to the bridge server before failing.
* Custom Bridge Url
  * Set a custom bridge to connect to.&#x20;
  * Set to '<https://wc-bridge.neopin.io>' to connect with Neopin.
* Chain Id
  * **Unused** will be used to specify chain to interact with.
  * NEOPIN Connect supports the following networks and chainID:
  * | Network | MainNet | TestNet |
    | ------- | ------- | ------- |
    | Klaytn  | 8217    | 1001    |
    | Polygon | 137     | 80001   |
* Connected Event
  * A Unity Event that is triggered when a Wallet session has started. Nothing is passed to this event listener.
* Connected Event Session
  * A Unity Event that is triggered when a Wallet session has started. The Session data is passed to this event listener
* Disconnected Event Session
  * A Unity Event that is triggered when a Wallet session has disconnected. The Session data is passed to this event listener.
* Connection Failed Event
  * A Unity Event that is triggered when a Wallet session has failed to connect either due to transport errors, network errors, or user declining to create session. The Session data is passed to this event listener
* New Session Connected
  * A Unity Event that is triggered when a new Wallet session has been successfully created and connected. The Session data is passed to this event listener. This event will only be called once in a session's lifetime.
* Resumed Session Connected
  * A Unity Event that is triggered when a Wallet session has been successfully resumed and connected. The Session data is passed to this event listener.
* App Data
  * This is the Session data that is given and shown in the Wallet

<figure><img src="/files/8WtKpPVJyiyDUOI3wRAr" alt=""><figcaption></figcaption></figure>

* name
  * The name that will be displayed in the NEOPIN Wallet.
* description
  * The description to be displayed along with the name (Optional)
* icons
  * The icon address to be displayed in the NEOPIN Wallet.
* url
  * The URL to be displayed along with the name.
* appId
  * appId is issued by NEOPIN, and consists of a 32 digit string.
  * ex) NWC1004HS6VFTPPPLUGFQBQ5SFNWB79B
  * The Wallet will reject connection of any appId that were not issued normally.
* deepLink
  * deepLink is required when connecting to the NEOPIN Wallet or returning to the service app after making a transaction.


---

# 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://docs.neopin.io/developers/deprecated/deprecated-neopin-connect-1.0/dapp/unity/usage.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.
