Returns whether or not the transport is connected
The local keypair that is used for the communication encryption
The URL of the dApp.
The URL of the dApp Icon. This can be used to display the icon of the dApp on in the wallet
The name of the client
This array stores pending requests, meaning requests we received and have not yet handled / sent a response.
How many requests can be sent after another
The time window in seconds in which the "rateLimit" is checked
Stores the times when requests have been made to determine if the rate limit has been reached
Returns the connection status of the Client
Returns whether or not the transaport is ready
The method will attempt to initiate a connection using the active transport.
Add a new peer to the known peers
The new peer to add
Add a new request (current timestamp) to the pending requests, remove old ones and check if we are above the limit
This method initiates a connection to the P2P network and registers a callback that will be called whenever a message is received.
The callback that will be invoked for every message the transport receives.
Return the account by ID
The ID of an account
Return all locally known accounts
Returns the metadata of this DApp
Return all known peers
Remove the account by ID
The ID of an account
Remove all locally stored accounts
This method sends a response for a specific request back to the DApp
The BeaconResponseMessage that will be sent back to the DApp
An internal method to send a BeaconMessage to the DApp
Send a message back to the DApp
Send an acknowledge message back to the sender
A "setter" for when the transport needs to be changed.
Generated using TypeDoc
The beaconId 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.