public LnurlResponse getLnurlResponse()

in src/main/java/org/openvasp/core/service/FundsProcessingService.java [90:100]


    public LnurlResponse getLnurlResponse(String q, String tag) {
        LnurlResponse response = new LnurlResponse();
        response.setTag(tag);
        VaspAccount account = entityManager.createQuery(
                String.format("select a from VaspAccount a where a.lnurl.secret = '%s'", q),
                VaspAccount.class).getSingleResult();
        String assetType = account.getAssetsAddresses().keySet().iterator().next();
        response.setAddress(account.getAssetAddress(assetType));
        response.setAsset(assetType);
        return response;
    }