# WalletConnectSession

kycdao-mobile - v0.1.0 / WalletConnectSession

A class representing a session with a WalletConnect wallet

# Hierarchy

# 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

BaseWalletSession.chainId

# Defined in

Core/BaseWalletSession.tsx:26


# 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

BaseWalletSession.id

# Defined in

Core/BaseWalletSession.tsx:24


# 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

# 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

Name Type Description
walletAddress string The public address of the wallet we want to sign our data with
message string The message we want the wallet app to sign

# 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

BaseWalletSession.release

# Defined in

Core/BaseWalletSession.tsx:94


# sendMintingTransaction

sendMintingTransaction(walletAddress, mintingProperties): Promise<string>

A function used for sending a minting transaction with the wallet app

# Parameters

Name Type Description
walletAddress string The public address of the wallet we want to send the minting transaction with
mintingProperties MintingProperties Data that describes a transaction used for minting

# Returns

Promise<string>

The transaction hash

# Overrides

BaseWalletSession.sendMintingTransaction

# Defined in

WalletConnect/WalletConnectManager.tsx:188