#
WalletConnectSession
kycdao-mobile - v0.1.0 / WalletConnectSession
A class representing a session with a WalletConnect wallet
#
Hierarchy
-
↳
WalletConnectSession
#
Table of contents
#
Properties
accounts chainId icon id name url walletId
#
Methods
personalSign release sendMintingTransaction
#
Properties
#
accounts
• accounts: [string
]
List of blockchain accounts/wallet addresses accessible through the session
#
Defined in
WalletConnect/WalletConnectManager.tsx:146
#
chainId
• chainId: string
The ID of the chain used specified in CAIP-2 format
#
Inherited from
#
Defined in
#
icon
• Optional
icon: string
URL for an icon of the wallet app the session belongs to
#
Defined in
WalletConnect/WalletConnectManager.tsx:148
#
id
• id: string
A unique identifier of the session
#
Inherited from
#
Defined in
#
name
• Optional
name: string
Name of the wallet app the session belongs to
#
Defined in
WalletConnect/WalletConnectManager.tsx:150
#
url
• url: WCURL
The wallet connect URL as provided by WalletConnectSwift
#
Defined in
WalletConnect/WalletConnectManager.tsx:134
#
walletId
• Optional
walletId: string
ID of a Wallet object belonging to the BaseWalletSession
Note
If the session was established as a result of WalletConnectManager.connect, it will contain the id, otherwise null
iOS Only
This value is unused on Android and always null
#
Defined in
WalletConnect/WalletConnectManager.tsx:144
#
Methods
#
personalSign
▸ personalSign(walletAddress
, message
): Promise
<string
>
A function used for signing a message with the wallet app
#
Parameters
#
Returns
Promise
<string
>
The signed message returned by the wallet app
#
Overrides
BaseWalletSession.personalSign
#
Defined in
WalletConnect/WalletConnectManager.tsx:176
#
release
▸ release(): void
WalletSession objects must be cleaned up when they are no longer needed. Call release to safely remove the listeners used for native bridging
#
Returns
void
#
Inherited from
#
Defined in
#
sendMintingTransaction
▸ sendMintingTransaction(walletAddress
, mintingProperties
): Promise
<string
>
A function used for sending a minting transaction with the wallet app
#
Parameters
#
Returns
Promise
<string
>
The transaction hash
#
Overrides
BaseWalletSession.sendMintingTransaction
#
Defined in
WalletConnect/WalletConnectManager.tsx:188