# VerificationManager

kycdao-mobile - v0.1.0 / VerificationManager

A class used for verification related tasks, like querying verification status for different wallets or creating verification sessions

# Table of contents

# Methods

  • createSession
  • hasValidToken
  • configure
  • getInstance

# Methods

# createSession

createSession(walletAddress, walletSession): Promise<VerificationSession>

Creates a VerificationSession which is used for implementing the verification flow

# Parameters

Name Type Description
walletAddress string The address of the wallet we are creating the session for
walletSession BaseWalletSession The BaseWalletSession that will be used for signing messages and minting

# Returns

Promise<VerificationSession>

The VerificationSession object

# Defined in

Core/VerificationManager.tsx:64


# hasValidToken

hasValidToken(verificationType, walletAddress, chainId): Promise<boolean>

Checks on-chain whether the wallet has a valid token for the verification type

# Parameters

Name Type Description
verificationType VerificationType The type of verification we want to find a valid token for
walletAddress string The address of the wallet the token belongs to
chainId string CAIP-2 chain id of the network to use

# Returns

Promise<boolean>

True, when the wallet has a valid token for the selected verification type on the wallet session’s network

# Defined in

Core/VerificationManager.tsx:94

hasValidToken(verificationType, walletAddress, walletSession): Promise<boolean>

Checks on-chain whether the wallet has a valid token for the verification type

# Parameters

Name Type Description
verificationType VerificationType The type of verification we want to find a valid token for
walletAddress string The address of the wallet the token belongs to
walletSession BaseWalletSession A BaseWalletSession instance

# Returns

Promise<boolean>

True, when the wallet has a valid token for the selected verification type on the wallet session’s network

# Defined in

Core/VerificationManager.tsx:104


# configure

Static configure(configuration): Promise<void>

Initializes the SDK with a configuration

# Parameters

Name Type Description
configuration Configuration The configuration options for the SDK

# Returns

Promise<void>

# Defined in

Core/VerificationManager.tsx:53


# getInstance

Static getInstance(): VerificationManager

VerificationManager singleton instance

# Returns

VerificationManager

The VerificationManager instance

# Defined in

Core/VerificationManager.tsx:36