def jsonrpc_request(method, identifier, params=None):
return '<STR_LIT>'.format(json.dumps({<EOL>'<STR_LIT:id>': identifier,<EOL>'<STR_LIT>': method,<EOL>'<STR_LIT>': params or {},<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>})).encode()<EOL>
Produce a JSONRPC request.