Establishes a connection to the wallet
A promise that resolves to true if the connection was successful, false otherwise
Disconnects from the wallet
A promise that resolves when the disconnection is complete
Checks if the transport is currently connected to the wallet
True if connected, false otherwise
Registers a callback for notifications from the wallet
Function to call when a notification is received
A function to remove the callback
Sends a request to the wallet
The request type containing method and params
The expected response type
Request object with method and optional params
A promise that resolves to the response
Interface for transport layer that handles communication with the wallet
The transport layer is responsible for: