Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BrowserExtensionAdapter

Extension Adapter for Browser based wallet access, to use with GenericExtensionWallet

note

This adapter is automatically chosen in browser environments - Usually, you won't use this adapter directly.

Hierarchy

  • BrowserExtensionAdapter

Implements

  • ExtensionAdapter

Index

Methods

assertWalletAvailable

  • assertWalletAvailable(): Promise<void>

getCurrentPermission

onNotification

request

  • request(payload: ExtensionRequestArgs): Promise<ExtensionResponse>
  • Generic request method, to request various operations

    throws

    An error object in case of failures, see also ExtensionWalletError

    Parameters

    • payload: ExtensionRequestArgs

      The payload object for the respective operation

    Returns Promise<ExtensionResponse>

    The response from the wallet in case of success

requestPermission

requestSendEncryptedMessage

requestSign