Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 32 additions & 29 deletions advanced/api/sign/overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,18 @@ WalletConnect Sign is a remote signer protocol to communicate securely between w
<Tab title="Web">

<CodeGroup>
```bash npm npm install @walletconnect/sign-client ``` ```bash Yarn yarn add
@walletconnect/sign-client ``` ```bash Bun bun add @walletconnect/sign-client
``` ```bash pnpm pnpm add @walletconnect/sign-client ```
```bash npm
npm install @walletconnect/sign-client
```
```bash yarn
yarn add @walletconnect/sign-client
```
```bash bun
bun add @walletconnect/sign-client
```
```bash pnpm
pnpm add @walletconnect/sign-client
```
</CodeGroup>

<Note>
Expand All @@ -27,22 +36,27 @@ For Node.js, the WalletConnect SignClient additionally requires `lokijs` to mana
</Note>

<CodeGroup>
```bash npm npm install --save @walletconnect/sign-client lokijs@1.x ```
```bash Yarn yarn add @walletconnect/sign-client lokijs@1.x ``` ```bash Bun
bun add --save @walletconnect/sign-client lokijs@1.x ``` ```bash pnpm pnpm add
@walletconnect/sign-client lokijs@1.x ```
```bash npm
npm install --save @walletconnect/sign-client lokijs@1.x
```
```bash yarn
yarn add @walletconnect/sign-client lokijs@1.x
```
```bash bun
bun add --save @walletconnect/sign-client lokijs@1.x
```
```bash pnpm
pnpm add @walletconnect/sign-client lokijs@1.x
```
</CodeGroup>

</Tab>

<Tab title="iOS">
<Tabs
queryString="ios-method"
values={[
{ label: 'SwiftPackageManager', value: 'spm', },
{ label: 'Cocoapods', value: 'cocoa', },
]}
>
<Tabs queryString="ios-method" values={[
{ label: 'SwiftPackageManager', value: 'spm', },
{ label: 'Cocoapods', value: 'cocoa', },
]}>
<Tab title="SwiftPackageManager">

You can add a WalletConnect SDK to your project with Swift Package Manager. In order to do that:
Expand All @@ -59,15 +73,13 @@ You can add a WalletConnect SDK to your project with Swift Package Manager. In o
1. Update Cocoapods spec repos. Type in terminal `pod repo update`
2. Initialize Podfile if needed with `pod init`
3. Add pod to your Podfile:

```ruby
pod 'WalletConnectSwiftV2'
```

4. Install pods with `pod install`

If you encounter any problems during package installation, you can specify the exact path to the repository

```ruby
pod 'WalletConnectSwiftV2', :git => 'https://github.com/reown-com/reown-swift.git', :tag => '1.0.5'
```
Expand All @@ -90,18 +102,16 @@ Kotlin implementation of WalletConnect v2 Sign protocol for Android applications
#### Installation

root/build.gradle.kts:

```gradle
allprojects {
repositories {
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
}
}
```

app/build.gradle.kts

```gradle
implementation("com.walletconnect:android-core:release_version")
implementation("com.walletconnect:sign:release_version")
Expand All @@ -111,7 +121,6 @@ implementation("com.walletconnect:sign:release_version")

<Tab title="Flutter">
Install the WalletConnect client package.

```dart
flutter pub add walletconnect_flutter_v2
```
Expand All @@ -123,7 +132,6 @@ Depending on your platform, you will have to add different permissions to get th
#### MacOS

Add the following to your `DebugProfile.entitlements` and `Release.entitlements` files so that it can connect to the WebSocket server.

```xml
<key>com.apple.security.network.client</key>
<true/>
Expand All @@ -136,7 +144,6 @@ Add the following to your `DebugProfile.entitlements` and `Release.entitlements`
#### Install via Packages

Install the WalletConnect Sign Client package via Nuget.

```shell
dotnet add package WalletConnect.Sign
```
Expand All @@ -159,7 +166,6 @@ WalletConnectUnity.Core is a Unity package that provides a client implementation
<Tab title="OpenUPM CLI">

To install packages via OpenUPM, you need to have [Node.js](https://nodejs.org/en/) and [openupm-cli](https://openupm.com/docs/getting-started.html#installing-openupm-cli) installed. Once you have them installed, you can run the following commands:

```bash
openupm add com.walletconnect.core
```
Expand All @@ -168,7 +174,7 @@ openupm add com.walletconnect.core

<Tab title="Package Manager with OpenUPM">

1. Open `Advanced Project Settings` from the gear ⚙ menu located at the top right of the Package Managers toolbar
1. Open `Advanced Project Settings` from the gear ⚙ menu located at the top right of the Package Manager's toolbar
2. Add a new scoped registry with the following details:
- Name: `OpenUPM`
- URL: `https://package.openupm.com`
Expand All @@ -184,12 +190,11 @@ openupm add com.walletconnect.core

<Tab title="Package Manager with Git URL">

1. Open the add ➕ menu in the Package Managers toolbar
1. Open the add ➕ menu in the Package Manager's toolbar
2. Select `Add package from git URL...`
3. Enter the package URL:

**WalletConnectUnity Core**

```
https://github.com/WalletConnect/WalletConnectUnity.git?path=Packages/com.walletconnect.core
```
Expand All @@ -198,7 +203,6 @@ https://github.com/WalletConnect/WalletConnectUnity.git?path=Packages/com.wallet

It's possible to lock the version of the package by adding `#{version}` at the end of the git URL, where `#{version}` is the git tag of the version you want to use.
For example, to install version `1.0.1` of WalletConnectUnity Modal, use the following URL:

```
https://github.com/WalletConnect/WalletConnectUnity.git?path=Packages/com.walletconnect.core#core/1.0.1
```
Expand All @@ -213,7 +217,6 @@ Due to WebGL's single-threaded nature, certain asynchronous operations like `Tas
To enable these operations in WebGL builds, an additional third-party package, [WebGLThreadingPatcher](https://github.com/VolodymyrBS/WebGLThreadingPatcher), is required. This package modifies the Unity WebGL build to delegate work to the `SynchronizationContext`, allowing these operations to be executed on the same thread without blocking the main application. Please note that all tasks are still executed on a single thread, and any blocking calls will freeze the entire application.

The [WebGLThreadingPatcher](https://github.com/VolodymyrBS/WebGLThreadingPatcher) package can be added via git URL:

```
https://github.com/VolodymyrBS/WebGLThreadingPatcher.git
```
Expand Down