json RPCResponse
inline fun <T, E> jsonRPCResponse(init: JSONRPCResponseBuilder<T, E>.() -> Unit): JSONRPCResponse<T, E>(source)
Creates a JSONRPCResponse using the DSL builder.
Type Parameters
T
The type of the result value.
E
The type of the error data.
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.