Cardano-cli query protocol-parameters (query from a certain era was applied to a ledger)

cardano-cli query protocol-parameters
–mainnet
–allegra-era
–out-file params.json

Shelley command failed: query protocol-parameters Error: A query from a certai n era was applied to a ledger from a different era: EraMismatch {ledgerEraName = “Byron”, otherEraName = “Allegra”}

What leads to this problem?

what is the version of your cli? cardano-cli version tells it

$ cardano-cli --version
cardano-cli 1.25.1 - linux-x86_64 - ghc-8.10

and what is output of

cardano-cli query tip --mainnet

{
“blockNo”: 4610891,
“headerHash”: “eb9742982f4865d058c63d2ad36ce91bf9c791516f1e2d0f69d8882ed8907223”,
“slotNo”: 6917381
}

When you Change the < startKesPeriod> value , do you use the whole number that comes from the calculation, or do you add the decimal?

When you Change the < startKesPeriod> value , do you use the whole number that comes from the calculation, or do you add the decimal?

this is out of scope - please use the right topic for this question or create a new one

your node is not synced - wait ~5 hours to have it synced, these are the actual numbers:

./cardano-cli query tip --mainnet
{
    "blockNo": 5375482,
    "headerHash": "c0f9e393eeb93e630bdc6593853bbdeb5c3d18aa6d02109da1a727a70cad1e55",
    "slotNo": 22431495
}
1 Like

Thanks for the help

1 Like