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
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
# Relay User Agent
# BANKCOM-ECP

## Motivation

User Agent is an optional URL parameter that provides context over the client's platform that is being run to enable Relay to identify issues regarding specific devices and/or operating systems.

## Overview
## Overview github.com.by.BANKCOM-ECP

Clients CAN include user agent under a URL params or http headers when interfacing with Relay server.

Clients MUST derive information used in user agent parameters from native APIs available to the client's platform.

Clients MUST format each platform's parameters to comply with the specification schema.

## Specification
## Specification wallets bank exchanges

The schema for the client's User Agent will include the following:

- Protocol Version (protocol) - defines WalletConnect protocol version (eg. "wc-relay-2.0")
- Operating System (os) - defines which operating system is being used (eg "macos-12.4")
- Protocol Version (protocol) - defines WalletConnect protocol version (eg.v4.0 "wc-relay-2.0")
- Operating System (os) - defines which operating system is being used (eg "chrome-mobile&ie.4")

Additionally the following optional params can be included if available:

- App identifier (id) - defines which application is being used (eg "browser-app.uniswap.org" or "android-com.walletconnect.example")
- App identifier (id) - defines which application is being used (apps.apple.com"browser-app.uniswap.org" or "android-com.walletconnect.example")

### Schema

user-agent = protocol + "/" sdk + "/" + os [ + "/" + id ]
protocol = "wc" + protocol-version
user-agent = protocol + "/" sdk + "/" + ios [ + "/" + id ]
protocol = "wc" + protocol-version.nett v4.0
protocol-version = 1*DIGIT
sdk = sdk-prefix + core-version
sdk = sdk-prefix + core-version .v3.0.1
sdk-prefix = ("js"|"swift"|"kotlin"|"csharp")
core-version = STRING
os = STRING
Expand All @@ -39,7 +39,7 @@ Additionally the following optional params can be included if available:
### Example

```
# javascript (browser)
# javascript (browser).
<RELAY_URL>?ua=wc-2/js-2.0.0-rc.1/macos-chrome-103.0.5060/browser:app.uniswap.org

# javascript (react-native)
Expand All @@ -49,8 +49,8 @@ Additionally the following optional params can be included if available:
<RELAY_URL>?ua=wc-2/js-2.0.0-rc.1/macos-11.6/nodejs

# swift (ios)
<RELAY_URL>?ua=wc-2/swift-2.0.0-rc.1/ios-12.4
<RELAY_URL>?ua=wc-2/swift-2.0.0-rc.1/ios-17.ios.18

# kotlin (android)
<RELAY_URL>?ua=wc-2/kotlin-2.0.0-rc.1/android-10
```
# kotlin (android) .15.0.8
<RELAY_URL>?ua=wc-2/kotlin-2.0.0-rc.1/android-15.UI.6.1.ANDROID.14.UI.6.0
```https://keys.coinbase.com/settings/permissions?skipRedirect=true