Abstract Protected _keyThe local keypair that is used for the communication encryption
Protected _mavletThe mavletId is a public key that is used to identify one specific application (dapp or wallet). This is used inside a message to specify the sender, for example.
Protected _transportProtected Readonly accountProtected analyticsOptional Readonly appThe URL of the dApp.
Protected handleOptional Readonly iconThe URL of the dApp Icon. This can be used to display the icon of the dApp on in the wallet
Protected Readonly matrixReadonly nameThe name of the client
Protected Readonly rateHow many requests can be sent after another
Protected Readonly rateThe time window in seconds in which the "rateLimit" is checked
Protected requestStores the times when requests have been made to determine if the rate limit has been reached
Protected storagePrivate transportReturns the connection status of the Client
Protected keyReturns whether or not the transaport is ready
Protected transportProtected addAdd a new peer to the known peers
The new peer to add
Protected cleanupReturn the account by ID
The ID of an account
Return all locally known accounts
Returns the metadata of this DApp
This method initializes the client. It will check if the connection should be established to a browser extension or if the P2P transport should be used.
A transport that can be provided by the user
Protected sendProtected setA "setter" for when the transport needs to be changed.
Optional transport: Transport<any, any, any>Generated using TypeDoc
Internalapi
This abstract class handles the a big part of the logic that is shared between the dapp and wallet client. For example, it selects and manages the transport and accounts.