Cardano-cli query utxo

sam@ubuntu:~/keys$ cardano-cli shelley query utxo --address $(cat payment.addr) --mainnet
WARNING: The “shelley” subcommand is now deprecated and will be removed in the future. Please use the top-level commands instead.
Shelley command failed: query utxo Error: A query from a certain era was applied to a ledger from a different era: EraMismatch {ledgerEraName = “Allegra”, otherEraName = “Shelley”}

This is the error I’m facing on mainnet to query

Here is screenshot of the synced relay node but I’m curious why there is something in red going on…

Try this …

$ cardano-cli query utxo \
    --address ${PAYMENT_ADDR} \
    --allegra-era \
    --mainnet  
4 Likes

Thanks alot it worked…

UR welcome

1 Like

I am having the same problem with i have tried the command with --allegra-era , shelley-era, mary-era and it still do not work… any recommendation.
Thanks

make sure your relay is properly synced

adaScreen

This is core screenshot, it started running since yesterday.
That’s the error im getting:
Shelley command failed: query utxo Error: A query from a certain era was applied to a ledger fro│
m a different era: EraMismatch {ledgerEraName = “Byron”, otherEraName = “Allegra”}

You need to wait until your node is fully synced before you can use the CLI