Query era mismatch | Mary - Shelley

Hello!

I am attempting to make a new token. I just made a new address, gave it some funds and now need to export the current network parameters to file before I can create a policy. To export the file I use the following command:

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

This command returns the following:

 Error: A query from a certain era was applied to a ledger from a different era: EraMismatch {ledgerEraName = "Mary", otherEraName = "Shelley"}

I have seen other topics with similar errors but these all used commands that specified certain era names. The command I am using does not and should work well with the Mary era. Other examples therefore don’t seem to work for me.

How could I fix this issue? Help is much appreciated!

Also include the flag --mary-era in the command.

2 Likes

Thanks. That was a quick fix :slight_smile: