Skip to content

Wallet Detector

@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/wallet-detector

Wallet Detector

This is the complement to module:@aeternity/aepp-sdk/es/utils.

Example

import WalletDetector from '@aeternity/aepp-sdk/es/utils/aepp-wallet-communication/wallet-detector'

exports.WalletDetector(params) ⇒ WalletDetector

WalletDetector stamp

Kind: Exported function
rtype: Stamp

Param Type Default Description
params Object {} Initializer object
params.connection WalletConnection Connection for listening for wallets

exports.WalletDetector.scan(onDetected) ⇒ void

Start scanning

Kind: instance method of exports.WalletDetector

Param Type Description
onDetected function Call-back function which trigger on new wallet

exports.WalletDetector.stopScan() ⇒ void

Stop scanning

Kind: instance method of exports.WalletDetector

exports.WalletDetector.getWallets() ⇒ Array

Get wallet list

Kind: instance method of exports.WalletDetector
Returns: Array - Available wallets