# 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](https://docs.neopin.io/developers/walletconnect-2.0 "mention")
{% 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="https://3207921449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqGie2GKzhU3olmN7yiWW%2Fuploads%2F0e8a9r0cVr4arpsbH0Vb%2Fimage.png?alt=media&#x26;token=c9e84fdf-d93d-43eb-ba95-67ed9454fab9" 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="https://3207921449-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqGie2GKzhU3olmN7yiWW%2Fuploads%2FjcHSNquGJXWrZTK6IFgb%2Fimage.png?alt=media&#x26;token=2e71730c-bc4f-4cad-ae95-4d5762f4aad9" 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.
