Request

@Serializable(with = RequestPolymorphicSerializer::class)
sealed interface Request(source)

Represents a request in the protocol.

Inheritors

Properties

Link copied to clipboard
abstract val method: Method

The request method identifier.

Link copied to clipboard
abstract val params: RequestParams?

Optional request parameters.

Functions

Link copied to clipboard

Converts the request to a JSON-RPC request.