<p>I had the same problem, but i found these posts (<a href="https://forum.cardano.org/t/testnet-tutorial-querry-utxo-error/45249" rel="nofollow noreferrer">https://forum.cardano.org/t/testnet-tutorial-querry-utxo-error/45249</a> + <a href="https://forum.cardano.org/t/command-failed-query-utxo-error-this-query-cannot-be-used-for-the-byron-era/55606" rel="nofollow noreferrer">https://forum.cardano.org/t/command-failed-query-utxo-error-this-query-cannot-be-used-for-the-byron-era/55606</a>) with basically the same instruction: Just wait till the node is fully synced !. I did that, and 1 hour later the query command passed.
Hope it helps.</p>

CC BY-SA 4.0
2022-03-08T00:43:12.770Z
2022-03-08T00:43:12.770Z
Jab
<p>It can take 6hr to 2days for node to sync. So don't panic wait for an hour</p>
<p>You can monitor the progress of sync using this command</p>
<p><code>cardano-cli query tip --mainnet</code></p>
<p>Check the <code>syncProgress</code> param in the generated json</p>

CC BY-SA 4.0
2022-07-17T09:10:45.447Z
2022-07-23T12:24:36.633Z
2022-07-23T12:24:36.633Z
Shubham Gupta
<p>When I am trying below command.</p>
<pre><code>cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063
</code></pre>
<p>I am getting this error.</p>
<pre><code>Command failed: query utxo  Error: This query cannot be used for the Byron era
</code></pre>
<p>What I have to do now?</p>

CC BY-SA 4.0
2022-02-15T04:03:40.387Z
What are the contents of the `payment.addr`? Does it contain a Byron or a Shelley address?
Erik de Castro Lopo
CC BY-SA 4.0
2022-02-15T04:47:15.183Z
`$(cat payment.addr)
zsh: command not found: addr_test1vp465rg9nm7x3th67nfsccuav25ffvjk3wr5upk57k3ec9gadwcjp
` This is what i am getting
arunwebber
CC BY-SA 4.0
2022-02-15T04:52:16.787Z
How do i know whether it is a shelly or byron?
arunwebber
CC BY-SA 4.0
2022-02-15T05:04:14.400Z
Ok, that is a Shelley era address. You might try adding `--shelley-mode` or `--cardano-mode` to the command line.
Erik de Castro Lopo
CC BY-SA 4.0
2022-02-15T05:06:15.560Z
`cardano-cli: encodeFailure: local state query: using acquire without a Point must be conditional on negotiating v8 of the node-to-client protocol
CallStack (from HasCallStack):
  error, called at src/Ouroboros/Network/Protocol/LocalStateQuery/Codec.hs:80:7 in ouroboros-network-0.1.0.0-a6337e1ec691134555c3c4cba8800a5d3d08f8812cda7fdf6590dc6bf33ac964:Ouroboros.Network.Protocol.LocalStateQuery.Codec%  ` I am getting this now after adding shelly-mode
arunwebber
CC BY-SA 4.0
2022-02-15T05:06:50.553Z
Try `--cardano-mode` instead.
Erik de Castro Lopo
CC BY-SA 4.0
2022-02-15T05:07:47.093Z
I am getting this error now `Command failed: query utxo  Error: This query cannot be used for the Byron era` for `--cardano-mode`
arunwebber
CC BY-SA 4.0
2022-02-15T05:23:01.003Z
I got it working using cardano-mode but the wallet is showing me zer balance . `cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063 --cardano-mode`
`                           TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------`
arunwebber
<wallet>
Command failed: query utxo Error: This query cannot be used for the Byron era
# Command failed: query utxo Error: This query cannot be used for the Byron era

(Asked by: username_0 on 2022-02-15)

When I am trying below command.
cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063

I am getting this error.
Command failed: query utxo  Error: This query cannot be used for the Byron era

What I have to do now?

**Tags:** wallet
> **Comments:**
> **username_1**: What are the contents of the `payment.addr`? Does it contain a Byron or a Shelley address?  
> **username_0**: `$(cat payment.addr) zsh: command not found: addr_test1vp465rg9nm7x3th67nfsccuav25ffvjk3wr5upk57k3ec9gadwcjp ` This is what i am getting  
> **username_0**: How do i know whether it is a shelly or byron?  
> **username_1**: Ok, that is a Shelley era address. You might try adding `--shelley-mode` or `--cardano-mode` to the command line.  
> **username_0**: `cardano-cli: encodeFailure: local state query: using acquire without a Point must be conditional on negotiating v8 of the node-to-client protocol CallStack (from HasCallStack):   error, called at src/Ouroboros/Network/Protocol/LocalStateQuery/Codec.hs:80:7 in ouroboros-network-0.1.0.0-a6337e1ec691134555c3c4cba8800a5d3d08f8812cda7fdf6590dc6bf33ac964:Ouroboros.Network.Protocol.LocalStateQuery.Codec%  ` I am getting this now after adding shelly-mode  
> **username_1**: Try `--cardano-mode` instead.  
> **username_0**: I am getting this error now `Command failed: query utxo  Error: This query cannot be used for the Byron era` for `--cardano-mode`  
> **username_0**: I got it working using cardano-mode but the wallet is showing me zer balance . `cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063 --cardano-mode` `                           TxHash                                 TxIx        Amount --------------------------------------------------------------------------------------`  

---

## 2 answers

### Answer by username_2 on 2022-03-08. Score: 1 | Accepted answer

I had the same problem, but i found these posts (<https://forum.cardano.org/t/testnet-tutorial-querry-utxo-error/45249> + <https://forum.cardano.org/t/command-failed-query-utxo-error-this-query-cannot-be-used-for-the-byron-era/55606>) with basically the same instruction: Just wait till the node is fully synced !. I did that, and 1 hour later the query command passed.
Hope it helps.


---

### Answer by username_3 on 2022-07-17. Score: 2

It can take 6hr to 2days for node to sync. So don't panic wait for an hour

You can monitor the progress of sync using this command

`cardano-cli query tip --mainnet`

Check the `syncProgress` param in the generated json


---

