Class WalletConnectCommunicationClient

Internalapi

Hierarchy

Constructors

Properties

acknowledgeRequest: any
activeAccountOrPbk: any
activeListeners: Map<string, ((message) => void)>

Type declaration

    • (message): void
    • Parameters

      • message: string

      Returns void

activeNetwork: any
channelOpeningListeners: Map<string, ((pairingResponse) => void)>

Type declaration

checkWalletReadiness: any
clearEvents: any
clearState: any
closePairings: any
closeSessions: any
disconnect: any
disconnectionEvents: Set<string>
eventHandlers: Map<ClientEvents, Function>
fetchAccounts: any
getPermittedMethods: any
getPermittedNetwork: any
getSession: any
getSignClient: any
getTezosNamespace: any
getTezosRequiredNamespace: any
getTopicFromSession: any
isLeader: any
isMobileOS: (() => boolean)

Type declaration

    • (): boolean
    • Returns boolean

isMobileSesion: any
keyPair?: KeyPair
messageIds: any

this queue stores each active message id [0] newest message [length - 1] oldest message

notifyListeners: any
notifyListenersWithPermissionResponse: any
onPairingClosed: any
onSessionClosed: any
openSession: any
permissionScopeParamsToNamespaces: any
ping: any
pingInterval: any
session: any
setDefaultAccountAndNetwork: any
signClient: undefined | SignClient
storage: WCStorage
subscribeToSessionEvents: any
tryConnectToRelayer: any
updateActiveAccount: any
updateStorageWallet: any

Function used to fix appSwitching with web wallets when pairing through 'Other wallet flow'

Param

the newly created session

validateAccounts: any
validateEvents: any
validateMethods: any
validateNetworkAndAccount: any
validateReceivedNamespace: any
wcOptions: any
instance: any

Methods

  • Returns Promise<void>

  • Parameters

    • account: string
    • Optional notify: boolean

    Returns Promise<void>

  • Returns Promise<void>

  • Create a cryptobox client

    Parameters

    • otherPublicKey: string
    • selfKeypair: KeyPair

    Returns Promise<SessionKeys>

  • Create a cryptobox server

    Parameters

    • otherPublicKey: string
    • selfKeypair: KeyPair

    Returns Promise<SessionKeys>

  • Returns undefined | Struct

  • Encrypt a message for a specific publicKey (receiver, asymmetric)

    Parameters

    • recipientPublicKey: string
    • message: string

    Returns Promise<string>

  • Returns Promise<string>

    Description

    Access the public key hash (or public key) of the active account

    Error

    ActiveAccountUnspecified thrown when there are multiple Tezos account in the session and none is set as the active one

  • Returns string[]

    Description

    Return all connected accounts from the active session

    Error

    NotConnected if no active session

  • Returns string

    Description

    Access the active network

    Error

    ActiveNetworkUnspecified thorwn when there are multiple Tezos networks in the session and none is set as the active one

  • Returns string[]

    Description

    Return all networks from the namespace of the active session

    Error

    NotConnected if no active session

  • Get the public key

    Returns Promise<string>

  • get the public key hash

    Returns Promise<string>

  • Parameters

    • Optional forceNewConnection: boolean

    Returns Promise<undefined | {
        topic: string;
        uri: string;
    }>

  • Parameters

    Returns Promise<void>

  • Parameters

    • senderPublicKey: string
    • messageCallback: ((message) => void)
        • (message): void
        • Parameters

          • message: string

          Returns void

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

  • Parameters

    • _message: string
    • Optional _peer: any

    Returns Promise<void>

  • Parameters

    Returns Promise<void>

    Description

    Once the session is established, send Tezos operations to be approved, signed and inject by the wallet.

    Error

    MissingRequiredScope is thrown if permission to send operation was not granted

  • Parameters

    Returns Promise<void>

    Description

    Once the session is establish, send payload to be approved and signed by the wallet.

    Error

    MissingRequiredScope is thrown if permission to sign payload was not granted

  • Parameters

    • _senderPublicKey: string

    Returns Promise<void>

Generated using TypeDoc