decode

fun decode(json: JsonObject): JsonRpcRequest

Parses one request frame.

Throws

with DappErrorCode.INVALID_PARAMS when jsonrpc is not "2.0" or method is not a string.