# BaseWalletSession

kycdao-mobile - v0.1.0 / BaseWalletSession

An abstract class that describes a communication session with a wallet that can be used during the verification process.

# Wallets

Use this protocol, when you want to integrate the kycDAO SDK to your wallet. Provide a concrete implementation of the protocol in a class. Learn more at doc:WalletIntegration about integrating the SDK to a wallet.

# DApps

For DApps integrating the kycDAO SDK, you will likely won't have to use this protocol. WalletConnect should be used to connect your DApp to a supported Wallet. Learn more at doc:WalletIntegration about integrating the SDK to a DApp.

# Hierarchy

# Implements

  • WalletSessionInterface

# Table of contents

# Constructors

  • constructor

# Properties

  • chainId
  • id

# Methods

  • personalSign
  • release
  • sendMintingTransaction

# Constructors

# constructor

new BaseWalletSession(id, chainId)

# Parameters

Name Type
id string
chainId string

# Defined in

Core/BaseWalletSession.tsx:30

# Properties

# chainId

chainId: string

The ID of the chain used specified in CAIP-2 format

# Implementation of

WalletSessionInterface.chainId

# Defined in

Core/BaseWalletSession.tsx:26


# id

id: string

A unique identifier of the session

# Implementation of

WalletSessionInterface.id

# Defined in

Core/BaseWalletSession.tsx:24

# Methods

# personalSign

Abstract 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

# Implementation of

WalletSessionInterface.personalSign

# Defined in

Core/BaseWalletSession.tsx:80


# 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

# Defined in

Core/BaseWalletSession.tsx:94


# sendMintingTransaction

Abstract 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

# Implementation of

WalletSessionInterface.sendMintingTransaction

# Defined in

Core/BaseWalletSession.tsx:88