handle

open suspend override fun handle(request: JsonRpcRequest): JsonRpcResponse

Dispatches one JSON-RPC frame.

Notifications (no id) are answered with a response carrying a null id, which callers should drop; returning null instead would make the signature awkward for every transport that only ever sends requests.


open suspend override fun handle(request: JsonRpcRequest, context: DappRequestContext): JsonRpcResponse