send

abstract suspend fun send(request: JsonRpcRequest): JsonRpcResponse

Sends a request and awaits its response.

Implementations should throw DappException for protocol-level failures. A transport-level failure (socket closed, app not installed) may surface as any exception; DappClient does not translate those, because a caller needs to tell "the wallet said no" apart from "the wallet was never reached".