Hierarchy

Constructors

Properties

#connectParams: undefined | {
    chainId?: number;
}

Type declaration

  • Optional chainId?: number
Coin98Connector?: Coin98Connector
chains: Chain[]
connector?: Connector<{}>

Type declaration

    dappMetadata: DAppMetaData
    isInjected: boolean
    options?: WalletOptions<Coin98AdditionalOptions>
    type: "evm" = "evm"
    walletConnectConnector?: WalletConnectConnector
    walletId: string
    walletStorage: AsyncStorage
    id: string = ...
    meta: WalletMeta

    Accessors

    Methods

    • connect to wallet with QR code

      Parameters

      • options: ConnectWithQrCodeArgs

      Returns Promise<void>

      Example

      wallet.connectWithQrCode({
      chainId: 1,
      onQrCodeUri(qrCodeUri) {
      // render the QR code with `qrCodeUri`
      },
      onConnected(accountAddress) {
      // update UI to show connected state
      },
      })
    • Parameters

      • currencyAddress: string = NATIVE_TOKEN_ADDRESS

      Returns Promise<{
          decimals: number;
          displayValue: string;
          name: string;
          symbol: string;
          value: BigNumber;
      }>

      the native token balance of the connected wallet

    Generated using TypeDoc