Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WalletProvider

Hierarchy

  • WalletProvider

Implemented by

Index

Methods

Methods

enable

  • enable(context: Context): Promise<void>
  • Request access to the user's accounts. Wallet can ask the user to approve or deny access. If user deny access, it will throw error.

    Parameters

    Returns Promise<void>

getKeys

  • Get array of keys that includes bech32 address string, address bytes and public key from wallet if user have approved the access.

    Parameters

    Returns Promise<Key[]>

sign

  • sign(context: Context, bech32Address: string, message: Uint8Array): Promise<Uint8Array>
  • Request signature from matched address if user have approved the access.

    Parameters

    • context: Context
    • bech32Address: string
    • message: Uint8Array

    Returns Promise<Uint8Array>

Generated using TypeDoc