I got simple error

Hello, everyone.
when I run below commands.

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

I got this

Error: A query from a certain era was applied to a ledger from a different era: EraMismatch

i’ve read this.

my cardano cli version is below.

cardano-cli 1.25.1 - linux-x86_64 - ghc-8.10
git rev 9a7331cce5e8bc0ea9c6bfa1c28773f4c5a7000f

and here is my query tip

    "blockNo": 5446748,
    "headerHash": "ac6ca80d9408fcccf5ed1c86e95454e8fbad7236a69013d115d69428b53710e4",
    "slotNo": 23884821
│ Epoch 252 [88.9%] (node)                                     │

i think my cluster is already synced. what is the problem?
and a this is my first cardano article, thank you there.


Try to use --mary-era instead of --allegra-era in the command :slight_smile:


that’s work.

oh i see. what 's the era naming.

shelly → byron → allegra → mary(now)

thank you.

1 Like