Home
Develop
Docs

Get Wallet Status

getWalletProviderStatus

Provides information about the availability of any wallet provider in the current browser environment. When called, the package will check of any of the following wallet providers are currently connected: Android, iOS.

All providers will provided a status of either AVAILABLE or NOT_AVAILABLE.

Method Interface

function getWalletProviderStatus(): GetWalletProviderStatusOutput

Input arguments

N/A

Return value

interface GetWalletProviderStatusOutput {
  android: WalletProviderStatus;
  ios: WalletProviderStatus;
}

enum WalletProviderStatus {
  NOT_AVAILABLE,
  AVAILABLE,
}

Client Call Example

import bitcoincomLink from 'bitcoincom-link';

const providerStatuses = bitcoincomLink.getWalletProviderStatus();
console.log('Provider statuses: ' + JSON.stringify(providerStatuses));

Demo