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
Optionaloptions: { Optional settings for the request
Optionaltimeout?: numberMaximum time (in ms) before the request fails with a timeout error. Overrides the transport's default timeout if set.
A promise that resolves to the response
OptionalwarmupTimeout used for the initial request sent right after the transport establishes its connection.
This value represents the maximum time allowed for the first lightweight "warm-up" request to complete (e.g., a readiness or session check). It is typically shorter or different from the regular request timeout, as some transports require a distinct delay before they can reliably process the initial request.
Interface for transport layer that handles communication with the wallet
The transport layer is responsible for: