Do not see funds when query testnet

I have requested funds to my payment.addr from the testnet. After running the following command I am unable to see any funds. I setup a relay that has a private IP and NAT on public IP on port 3001 to allow traffic to my relay. I am using the following videos and text as a guide:

Here is what I get when for an output:

cardano-cli query utxo --address $(cat payment.addr) --testnet-magic 1097911063 
                           TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------

This is what I see when my relay is running:

[relay1:cardano.node.ChainDB:Notice:44] [2021-10-01 18:22:44.87 UTC] Chain extended, new tip: d795bbdaa5aaf33dd5d651491c7d1812cc2138ba0e679a5ae87f3cfaa6ae212f at slot 30847421

Did you use the faucet to get funds? It may take a few min.

@artistulla Thanks for you reply. Yes I used the faucet. I just checked again and still no funds are shown.

What’s the incoming address?

@mcrio Thanks for your reply. Here is the incoming address:

addr_test1qrrxdhjk99g4pprq72kww3yldcvgwdcumnjuf676cx2qnndrnjee2epe5wfxrjw7vt9ljkyq8tjutg3cj60ssv0a8wvqa0ysne

I’m getting a UTXO with balance of 1000ADA:

 ./cardano-cli query utxo --testnet-magic 1097911063 --address addr_test1qrrxdhjk99g4pprq72kww3yldcvgwdcumnjuf676cx2qnndrnjee2epe5wfxrjw7vt9ljkyq8tjutg3cj60ssv0a8wvqa0ysne
                           TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------
715d7be2ffc298917fc0cd68698a1560019a57c123caf9a733f534236e013f3d     0        1000000000 lovelace + TxOutDatumHashNone

That corresponds to the transaction on the chain: Address addr_test1qrrxdhjk99g4pprq72kww3yldcvgwdcumnjuf676cx2qnndrnjee2epe5wfxrjw7vt9ljkyq8tjutg3cj60ssv0a8wvqa0ysne - Cardanoscan

2 Likes

Hi, on the above given address there are funds.

If you do not see this check whether your node is fully synced. You can do this by quering the tip.

image

You see my node is 100.00% synced :slight_smile:

2 Likes

@mcrio Thanks for checking that. I will wait until my node is fully sync and try the command again.

@fermat Thank you very much for this command. I have added it to my list of commands. My node is about 95% synced, I will wait until 100% and try to check my funds again.

1 Like

Everything is good now! Thanks.

cardano-cli query utxo --testnet-magic $MAGICNR --address $ADDRESS
                           TxHash                                 TxIx        Amount
--------------------------------------------------------------------------------------
715d7be2ffc298917fc0cd68698a1560019a57c123caf9a733f534236e013f3d     0        1000000000 lovelace + TxOutDatumHashNone
1 Like

No problem! We are here to learn, not so long ago I was exactly where you where. Please feel free to keep asking your question, the community is here to help so that one day you may help others aswell!

To see the broad range of commands at the reach of your finger tip, just type only

cardano-cli

And one tip that helps alot in building scripts, note that this command line interface (cli) is text based. So it is possible to apply regular expression commands on the output. For example to sum the amount of lovelace and convert it to ada on a given address just use

cardano-cli query utxo --mainnet --address $(cat addres.addr) | awk '{sum+= $3} END {print sum/1000000}'

With only the linux regex commands awk, grep and sed (others aswell) there is alot you can do!

good luck with your journey!

2 Likes