> For the complete documentation index, see [llms.txt](https://docs.play.cronos.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.play.cronos.org/readme-1/classes/classcom_1_1crypto_1_1game__sdk_1_1_wallet_connect_session_info.md).

# com::crypto::game\_sdk::WalletConnectSessionInfo

`#include <walletconnectcallback.h>`

## Public Functions

|      | Name                                                                                                                                                                                               |
| ---- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| void | [**set\_connected**](#function-set-connected)(bool connected)                                                                                                                                      |
| void | [**set\_accounts**](#function-set-accounts)([rust::Vec](/readme-1/classes/classrust_1_1cxxbridge1_1_1_vec.md)< [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) > accounts) |
| void | [**set\_chainid**](#function-set-chainid)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) chainid)                                                                         |
| void | [**set\_bridge**](#function-set-bridge)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) bridge)                                                                            |
| void | [**set\_key**](#function-set-key)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) key)                                                                                     |
| void | [**set\_clientid**](#function-set-clientid)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) client\_id)                                                                    |
| void | [**set\_clientmeta**](#function-set-clientmeta)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) client\_meta)                                                              |
| void | [**set\_peerid**](#function-set-peerid)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) client\_id)                                                                        |
| void | [**set\_peermeta**](#function-set-peermeta)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) client\_meta)                                                                  |
| void | [**set\_handshaketopic**](#function-set-handshaketopic)([rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) handshake\_topic)                                                  |

## Public Attributes

|                                                                                                                                              | Name                                                                                                                                                                                              |
| -------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| bool                                                                                                                                         | <p><a href="#variable-connected"><strong>connected</strong></a><br>if the wallet approved the connection</p>                                                                                      |
| [rust::Vec](/readme-1/classes/classrust_1_1cxxbridge1_1_1_vec.md)< [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md) > | <p><a href="#variable-accounts"><strong>accounts</strong></a><br>hex-string(0x...), the accounts returned by the wallet</p>                                                                       |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-chain-id"><strong>chain\_id</strong></a><br>u64, the chain id returned by the wallet</p>                                                                                    |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-bridge"><strong>bridge</strong></a><br>the bridge server URL</p>                                                                                                            |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-key"><strong>key</strong></a><br>the secret key used in encrypting wallet requests and decrypting wallet responses as per WalletConnect 1.0 hex-string(0x...), 32 bytes</p> |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-client-id"><strong>client\_id</strong></a><br>this is the client's randomly generated ID</p>                                                                                |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-client-meta"><strong>client\_meta</strong></a><br>json, the client metadata (that will be presented to the wallet in the initial request)</p>                               |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-peer-id"><strong>peer\_id</strong></a><br>uuid, the wallet's ID</p>                                                                                                         |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-peer-meta"><strong>peer\_meta</strong></a><br>json, the wallet's metadata</p>                                                                                               |
| [rust::String](/readme-1/classes/classrust_1_1cxxbridge1_1_1_string.md)                                                                      | <p><a href="#variable-handshake-topic"><strong>handshake\_topic</strong></a><br>uuid, the one-time request ID</p>                                                                                 |

## Public Functions Documentation

### function set\_connected

```cpp
void set_connected(
    bool connected
)
```

### function set\_accounts

```cpp
void set_accounts(
    rust::Vec< rust::String > accounts
)
```

### function set\_chainid

```cpp
void set_chainid(
    rust::String chainid
)
```

### function set\_bridge

```cpp
void set_bridge(
    rust::String bridge
)
```

### function set\_key

```cpp
void set_key(
    rust::String key
)
```

### function set\_clientid

```cpp
void set_clientid(
    rust::String client_id
)
```

### function set\_clientmeta

```cpp
void set_clientmeta(
    rust::String client_meta
)
```

### function set\_peerid

```cpp
void set_peerid(
    rust::String client_id
)
```

### function set\_peermeta

```cpp
void set_peermeta(
    rust::String client_meta
)
```

### function set\_handshaketopic

```cpp
void set_handshaketopic(
    rust::String handshake_topic
)
```

## Public Attributes Documentation

### variable connected

```cpp
bool connected;
```

if the wallet approved the connection

### variable accounts

```cpp
rust::Vec< rust::String > accounts;
```

hex-string(0x...), the accounts returned by the wallet

### variable chain\_id

```cpp
rust::String chain_id;
```

u64, the chain id returned by the wallet

### variable bridge

```cpp
rust::String bridge;
```

the bridge server URL

### variable key

```cpp
rust::String key;
```

the secret key used in encrypting wallet requests and decrypting wallet responses as per WalletConnect 1.0 hex-string(0x...), 32 bytes

### variable client\_id

```cpp
rust::String client_id;
```

this is the client's randomly generated ID

### variable client\_meta

```cpp
rust::String client_meta;
```

json, the client metadata (that will be presented to the wallet in the initial request)

### variable peer\_id

```cpp
rust::String peer_id;
```

uuid, the wallet's ID

### variable peer\_meta

```cpp
rust::String peer_meta;
```

json, the wallet's metadata

### variable handshake\_topic

```cpp
rust::String handshake_topic;
```

uuid, the one-time request ID

***

Updated on 2023-01-11 at 18:25:18 +0800
