jsonRPCResponse

Creates a JSONRPCResponse using the DSL builder.

Type Parameters

T

The type of the result value.

E

The type of the error data.


@JvmName(name = "jsonRPCResponseResult")
inline fun <T> jsonRPCResponse(init: JSONRPCResponseBuilder<T, Nothing>.() -> Unit): JSONRPCResponse<T, Nothing>(source)

Creates a JSONRPCResponse using the DSL builder, with error data type defaulting to Nothing.

Convenience overload for the common case where error data is not used.

Type Parameters

T

The type of the result value.