#
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
BaseWalletSession
#
Implements
WalletSessionInterface
#
Table of contents
#
Constructors
constructor
#
Properties
chainId id
#
Methods
personalSign release sendMintingTransaction
#
Constructors
#
constructor
• new BaseWalletSession(id
, chainId
)
#
Parameters
#
Defined in
#
Properties
#
chainId
• chainId: string
The ID of the chain used specified in CAIP-2 format
#
Implementation of
WalletSessionInterface.chainId
#
Defined in
#
id
• id: string
A unique identifier of the session
#
Implementation of
WalletSessionInterface.id
#
Defined in
#
Methods
#
personalSign
▸ Abstract
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
#
Implementation of
WalletSessionInterface.personalSign
#
Defined in
#
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
#
sendMintingTransaction
▸ Abstract
sendMintingTransaction(walletAddress
, mintingProperties
): Promise
<string
>
A function used for sending a minting transaction with the wallet app
#
Parameters
#
Returns
Promise
<string
>
The transaction hash
#
Implementation of
WalletSessionInterface.sendMintingTransaction