Invalid option `--byron-era'

I keep getting this error when trying to find out my address balance.

Please assist.

Hi!

from 1.26.1 you can just remove this flag from the command… have you tried that?

Hi laplasz, Thanks for the reply. i have not. how do i go about it?

what is the command?

cardano-cli query utxo
–address $(cat payment.addr)
–mainnet

I get:
Command failed: query utxo Error: This query cannot be used for the Byron era

Hi!

Query the tip first - cardano-cli query tip --mainnet

the node is synced?

Yes, when i Query the tip first - cardano-cli query tip --mainnet - I get somethit like this:

{
“epoch”: 259,
“hash”: “dbf5104ab91a7a0b405353ad31760b52b2703098ec17185bdd7ff1800bb61aca”,
“slot”: 26633911,
“block”: 5580350
}

good - now it should work since the node sync has reached the shelley era…

Sorry, now i get this: cardano-cli: Network.Socket.connect: <socket: 11>: does not exist (No such file or directory)

probably the node has been restarted, and it is in starting phase
check the logs of the node - should be similar like this: