• Create a JSONRPCErrorResponse message

    Parameters

    • errorMessage: string

      Text to provide to the requester about why this request failed

    • OptionalerrorCode: JSONRPCErrorCode

      JSONRPCErrorCode value that best aligns with the purpose of the failure

    • OptionalrequestId: RequestId

      ID of the request that this response is intended to address. If no ID was provided, don't pass a value to this parameter.

    Returns JSONRPCErrorResponse

    JSONRPCErrorResponse message that can be serialized and sent over a connection