Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GreenField: Add Server Info API basics #1576

Merged
merged 3 commits into from May 19, 2020

Conversation

dennisreimann
Copy link
Member

@dennisreimann dennisreimann commented May 18, 2020

Any kind of feedback welcome, as I'm still trying to learn how C# and the rest works ;)

When merged it closes #1534.

This is what the output looks like:

{
    "status": {
        "fullySynched": true,
        "syncStatus": [
            {
                "cryptoCode": "LBTC",
                "blockHeaders": 390,
                "progress": 1.0
            },
            {
                "cryptoCode": "LTC",
                "blockHeaders": 272,
                "progress": 1.0
            },
            {
                "cryptoCode": "BTC",
                "blockHeaders": 898,
                "progress": 1.0
            }
        ]
    },
    "version": "1.0.4.4",
    "onion": "http://wsaxew3qa5ljfuenfebmaf3m5ykgatct3p6zjrqwoouj3foererde3id.onion",
    "supportedPaymentMethods": [
        "BTC",
        "LBTC",
        "USDT",
        "ETB",
        "LCAD",
        "LTC",
        "BTC_LightningLike",
        "LBTC_LightningLike",
        "LTC_LightningLike"
    ]
}

@dennisreimann dennisreimann marked this pull request as ready for review May 18, 2020
BTCPayServer/BTCPayServer.csproj Outdated Show resolved Hide resolved
@dennisreimann dennisreimann requested a review from Kukks May 18, 2020
Kukks
Kukks approved these changes May 19, 2020
@NicolasDorier
Copy link
Contributor

NicolasDorier commented May 19, 2020

merging now, but will fix some potential crashes.

@NicolasDorier NicolasDorier merged commit 338a0f9 into btcpayserver:master May 19, 2020
3 checks passed
@dennisreimann dennisreimann deleted the api-server-info branch May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GreenField API: GET Server Info
3 participants