Success

data class Success<out T>(val id: RequestId, val result: T) : JSONRPCResponse<T, Nothing> (source)

A successful JSON-RPC 2.0 response carrying a result value.

Type Parameters

T

The type of the result.

Constructors

Link copied to clipboard
constructor(id: RequestId, result: T)

Properties

Link copied to clipboard
@SerialName(value = "id")
open override val id: RequestId

The request identifier.

Link copied to clipboard
@SerialName(value = "jsonrpc")
val jsonrpc: String

The JSON-RPC version string. Always "2.0".

Link copied to clipboard
@SerialName(value = "result")
val result: T

The result value determined by the invoked method.