JSONRPCResponse

data class JSONRPCResponse(val id: RequestId, val result: RequestResult = EmptyResult()) : JSONRPCMessage(source)

A successful (non-error) response to a request.

Sent in response to a JSONRPCRequest when the method execution succeeds. The id must match the id of the original request.

Constructors

Link copied to clipboard
constructor(id: RequestId, result: RequestResult = EmptyResult())

Properties

Link copied to clipboard

The identifier from the original request. Used to match responses to requests.

Link copied to clipboard
open override val jsonrpc: String

Always "2.0" to indicate JSON-RPC 2.0 protocol.

Link copied to clipboard

The result of the method execution. Structure depends on the method that was called.