GRPC client responses

Hello, when testing the different GRPC methods from Concordiums GRPC API, I stumbled across the following:

concordium-client -v raw GetBlockSpecialEvents 30196f8ec8a19baaf494e1ac331465b42f35195d66bc4159453a55000840577e
[
    {
        "bakerId": 96569,
        "bakerReward": "393547",
        "foundationCharge": "35402",
        "newGASAccount": "868696",
        "oldGASAccount": "950295",
        "passiveReward": "6666",
        "tag": "BlockAccrueReward",
        "transactionFees": "354016"
    }
]

No matter which block I query, I only get one element of one type from GetBlockSpecialEvents (BlockAccrueReward) - while - according to the docs, I should be getting several other types. I also tried this with another grpc client, getting the same result. I tested some other streaming responses, which seem to work, as described in the docs.

Note: I’m querying a node that is not a baker (just a locally running node) - maybe that is the reason ?

$ concordium-client GetBlockSpecialEvents 1726771ed114ea153205d72edcb7e453f055231977ba30ba20ace20d73c69ca3
[
    {
        "foundationAccount": "4LH62AZmugKXFA2xXZhpoNbt2fFhAn8182kdHgxCu8cyiZGo2c",
        "mintBakingReward": "308280924",
        "mintFinalizationReward": "18134172",
        "mintPlatformDevelopmentCharge": "36268344",
        "tag": "Mint"
    },
    {
        "finalizationRewards": [
            {
                "address": "3CbvrNVpcHpL7tyT2mhXxQwNWHiPNYEJRgp3CMgEcMyXivms6B",
                "amount": "1414576"
            },
            {
                "address": "3EctbG8WaQkTqZb1NTJPAFnqmuhvW62pQbywvqb9VeyqaFZdzN",
                "amount": "1414576"
            },
            {
                "address": "3XSLuJcXg6xEua6iBPnWacc3iWh93yEDMCqX8FbE3RDSbEnT9P",
                "amount": "5410765"
            },
            {
                "address": "3eUA4NnWufEqTBXR2QtTwjPxHZRGZvoqHaVjybmzZSqbuG32vJ",
                "amount": "2298689"
            },
            {
                "address": "3ofwYFAkgV59BsHqzmiWyRmmKRB5ZzrPfbmx5nup24cE53jNX5",
                "amount": "1414576"
            },
            {
                "address": "47xTHwtFra1d4Mq4DYZuZYJEYrDXY34C4CGkTTzT6eiwjEczuT",
                "amount": "1414576"
            },
            {
                "address": "49SJ6R6T9zo1C5cLVyxbwAuZC3EcDB9a78vSQYm3ZLA2y2eojM",
                "amount": "1414576"
            },
            {
                "address": "4MPJybKC9Kz7kw9KNyLHhuAEt4ZTxLsd3DBDbxtKdUiv4fXqVN",
                "amount": "1937263"
            },
            {
                "address": "4d13WVDNKVGDUxRUb1PRQAJyTwWSVcjWS7uwZ1oqmDm5icQEPT",
                "amount": "1414576"
            }
        ],
        "remainder": "5",
        "tag": "FinalizationRewards"
    },
    {
        "baker": "49SJ6R6T9zo1C5cLVyxbwAuZC3EcDB9a78vSQYm3ZLA2y2eojM",
        "bakerReward": "0",
        "foundationAccount": "4LH62AZmugKXFA2xXZhpoNbt2fFhAn8182kdHgxCu8cyiZGo2c",
        "foundationCharge": "0",
        "newGASAccount": "3",
        "oldGASAccount": "3",
        "tag": "BlockReward",
        "transactionFees": "0"
    }
]

In protocols 4 and up most of the reward distribution is done at paydays. So in between paydays you don’t really see very much else. And there is one payday block per day with the current parameters.

The block I posted above is the old block from protocol 1. Those typically have more information every block.

For example if you query a payday block from today you get a lot more types of events

$ concordium-client raw GetBlockSpecialEvents 56a7fb9b8f354a8d37ee6a633538ee8bc7cc93be8826990e9632754f2eb2376c
...
        "tag": "PaydayAccountReward",
        "transactionFees": "1166679"
    },
    {
        "account": "2xVc5hjeTffS1CYK9RT9Ud9G1dTs9A5hoEtv9yrvFChX53MGth",
        "bakerReward": "3921001",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "31672"
    },
    {
        "account": "3xxXWP21JqhCR21TKLraGMusEQPz2uWc8docJBZouKpwkomfKK",
        "bakerReward": "3921001",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "31672"
    },
    {
        "account": "4PCkZyjHnCzpjnH5k37xWjSf3ieQXoAJtihCcxECA713Y37gaa",
        "bakerReward": "3921001",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "31672"
    },
    {
        "bakerReward": "10736564080",
        "finalizationReward": "0",
        "poolOwner": 83002,
        "tag": "PaydayPoolReward",
        "transactionFees": "75061118"
    },
    {
        "account": "3vE4c72bqeCegyUhNiebhvPXTGN1TQMCivAmdfZ1XqBrCutzzA",
        "bakerReward": "10736564080",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "75061118"
    },
    {
        "bakerReward": "145843165047",
        "finalizationReward": "0",
        "poolOwner": 83075,
        "tag": "PaydayPoolReward",
        "transactionFees": "989849071"
    },
    {
        "account": "3nDiUUeTrHYrG2oqTCzz9tzg8SCpiR4LL7TFBjgKVEeBpkQEwE",
        "bakerReward": "145843165047",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "989849071"
    },
    {
        "bakerReward": "139169084673",
        "finalizationReward": "0",
        "poolOwner": 83078,
        "tag": "PaydayPoolReward",
        "transactionFees": "946393110"
    },
    {
        "account": "4VYm2qx7dViwhqobzznLBM4oeixZxDmWZ6pYCckczXePJ4ZvdZ",
        "bakerReward": "139169084673",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "946393110"
    },
    {
        "bakerReward": "141838716823",
        "finalizationReward": "0",
        "poolOwner": 83079,
        "tag": "PaydayPoolReward",
        "transactionFees": "994128293"
    },
    {
        "account": "4aLZNqgmdM1N5JJRd9h88idXypPbri6odXR9rMEuD7VQxTeGvv",
        "bakerReward": "141838716823",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "994128293"
    },
    {
        "bakerReward": "116070963",
        "finalizationReward": "0",
        "poolOwner": 83249,
        "tag": "PaydayPoolReward",
        "transactionFees": "683521"
    },
    {
        "account": "4Jh7zRzGAGPZ4KdQ6hCejEB1xNF7ge2n9aQMjx5QzaDTerBSp5",
        "bakerReward": "116070963",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "683521"
    },
    {
        "bakerReward": "290177407",
        "finalizationReward": "0",
        "poolOwner": 83434,
        "tag": "PaydayPoolReward",
        "transactionFees": "1906524"
    },
    {
        "account": "3wiw27u3JYBbEG7UEjggEu1jQmQymGQH9TknkUAXuYhhGeba7p",
        "bakerReward": "290177407",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "1906524"
    },
    {
        "bakerReward": "870532222",
        "finalizationReward": "0",
        "poolOwner": 84042,
        "tag": "PaydayPoolReward",
        "transactionFees": "5666020"
    },
    {
        "account": "45UooiikS9pxPMxQZmqiMbx4XkbMKx62wkExTYtabDgx9UcoMF",
        "bakerReward": "388104199",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "2526051"
    },
    {
        "account": "4ZeNrBsJRJ88AphpxMB1k8bYPVvKwvg9rhcX2C2SzrDa6tzHDD",
        "bakerReward": "217303921",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "1414362"
    },
    {
        "account": "4ic2f2mzj2uHt9s1xtfR9VMcF6pnzez3MWHU9DeHFt9mqMMmnK",
        "bakerReward": "85223070",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "554690"
    },
    {
        "account": "43GTNrsQbr4CzbimUE1rh92bo2fLadaD18Azig1GmCUEib9L2E",
        "bakerReward": "120988792",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "787477"
    },
    {
        "account": "4iy53JYfw26RrVtZvh8qGhkmMJTDzu8TbuKcNdkwAvm26geBFG",
        "bakerReward": "55284256",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "359827"
    },
    {
        "account": "3JFDXox8E6gusqibNUVdkSkchb5TqGLA8MGrdnyMhSsZ48H9NP",
        "bakerReward": "3627984",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "23613"
    },
    {
        "bakerReward": "116070963",
        "finalizationReward": "0",
        "poolOwner": 84059,
        "tag": "PaydayPoolReward",
        "transactionFees": "829658"
    },
    {
        "account": "4NmDxH2gu2FmKFvaP4ZuiKbhb7ahszFdoBbQ1SLfAiwq4hGfVs",
        "bakerReward": "116070963",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "829658"
    },
    {
        "bakerReward": "1741064445",
        "finalizationReward": "0",
        "poolOwner": 84134,
        "tag": "PaydayPoolReward",
        "transactionFees": "11804483"
    },
    {
        "account": "43B4J8QE3NweMVTQMVHLaftyqWt5haJivLyGoyLy2echmdXaGC",
        "bakerReward": "1741064445",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "11804483"
    },
    {
        "bakerReward": "58035481",
        "finalizationReward": "0",
        "poolOwner": 84271,
        "tag": "PaydayPoolReward",
        "transactionFees": "459062"
    },
    {
        "account": "3JVFJXESJHthAkFahA1sYYkKcmk1VyEVGrr5F1CaZKVKWjCtUx",
        "bakerReward": "17558679",
        "finalizationReward": "0",
        "tag": "PaydayAccountReward",
        "transactionFees": "138892"
    },
...