WalletConnectWallet

Based on KIP-0017

Currently only handles one networkId: wallet cannot change from tesnet04 to mainnet01.

If kadena_getAccounts_v1 isnt implemented, the fallback of getting wallet accounts is to do the explicitly unrecommended practice of appending k: to the pubkey

References:

Hierarchy

Constructors

Properties

#accounts: AccountsList
#networkId: "mainnet01" | "testnet04" | "development"
#signClient: SignClient

Accessors

  • get accounts(): AccountsList
  • Returns list of the wallet's accounts and their corresponding pubkeys

    Returns

    Returns AccountsList

  • get networkId(): "mainnet01" | "testnet04" | "development"
  • Returns "mainnet01" | "testnet04" | "development"

  • get pairing(): Struct
  • Returns

    the currently active pairing

    Returns Struct

  • get pairingTopic(): string
  • Save this somewhere to allow users to resume their previous WalletConnect session.

    Returns

    the currently active pairing topic

    Returns string

  • get session(): Struct
  • Returns

    the currently active session

    Returns Struct

  • get sessionTopic(): string
  • Returns

    the currently active session topic

    Returns string

Methods

  • TODO: somehow this throws { message: "Unsupported wc_ method. wc_pairingDelete", code: 10001 } but it looks like its still getting disconnected properly

    Returns Promise<void>

  • TODO: untested since no publicly available wallet implements this yet

    Returns

    the signed txs, ready to JSON.stringify and send

    Parameters

    • cmds: PactCommand[]

    Returns Promise<ICommand[]>

  • Returns

    Parameters

    • cmd: PactCommand

    Returns Promise<ICommand>

  • Returns

    Parameters

    • signClient: SignClient
    • networkId: "mainnet01" | "testnet04" | "development"
    • walletConnectAccounts: string[]

      returned by connect e.g. ["kadena:mainnet01:1234...abcd",...]

    Returns Promise<AccountPubkey[]>

  • Checks if this wallet is installed and available for use

    Returns

    Returns Promise<boolean>

  • Returns the name of this wallet

    Returns

    Returns string

Generated using TypeDoc