<p>I'm following the instructions laid out in this article.</p>
<p><a href="https://developers.cardano.org/docs/get-started/cardano-wallet-js" rel="nofollow noreferrer">https://developers.cardano.org/docs/get-started/cardano-wallet-js</a></p>
<p>I first ran cardano node and wallet using docker-compose on preprod network. I then created a new walletm, sent some test tokens using the faucet portal. The transaction was successful and verifiable on preprod cardano explorer. However the wallet balance when I call the api still shows as zero. I waited for the node to fully sync and change the status to &quot;Ready&quot; but even after that the wallet balance is still zero.</p>
<p>This is the network status(preview)</p>
<pre><code>{
  network_info: { network_id: 'testnet', protocol_magic: 2 },
  network_tip: {
    absolute_slot_number: 7984597,
    epoch_number: 92,
    slot_number: 35797,
    time: '2023-01-25T09:56:37Z'
  },
  next_epoch: { epoch_number: 93, epoch_start_time: '2023-01-26T00:00:00Z' },
  node_era: 'babbage',
  node_tip: {
    absolute_slot_number: 7984492,
    epoch_number: 92,
    height: { quantity: 376281, unit: 'block' },
    slot_number: 35692,
    time: '2023-01-25T09:54:52Z'
  },
  sync_progress: { status: 'ready' },
  wallet_mode: 'node'
}
</code></pre>
<p>This is the code to check the balance.</p>
<pre><code>const { Seed, WalletServer } = require(&quot;cardano-wallet-js&quot;);
(async function () {
let walletServer = WalletServer.init(&quot;http://127.0.0.1:8090/v2&quot;);
let wallets = await walletServer.wallets();
let id = wallets[0].id;
let wallet = await walletServer.getShelleyWallet(id);
let availableBalance = wallet.getAvailableBalance();
console.log(availableBalance);
})();
</code></pre>

CC BY-SA 4.0
2023-01-25T08:51:18.503Z
Can you please provide more information?
Marek Mahut - StakeNuts
CC BY-SA 4.0
2023-01-25T08:55:55.473Z
Sure.

Here is the transaction which I did from Faucet to my test preview wallet.
https://preview.cexplorer.io/address/addr_test1qzf90j270zkyfz7y8gtxmgjf02mee35xvzegfs8a93jgkvs89sjsfy7cyzh4me7et5qeldtq94nqn7ec7aejh4lptdaszd2560#data

These funds are not reflected when I run "wallet.getAvailableBalance()" in the code. Balance is still shown as 0.
pumpkin pie
CC BY-SA 4.0
2023-01-25T09:20:07.100Z
I updated the question with the code to retrieve balance.
pumpkin pie
CC BY-SA 4.0
2023-01-25T10:39:53.523Z
Can you console.log the address of the wallet?
Marek Mahut - StakeNuts
CC BY-SA 4.0
2023-01-25T11:48:41.987Z
When i run wallet.getNextAddress(), I get below response.
```
AddressWallet {
  id: 'addr_test1qzf90j270zkyfz7y8gtxmgjf02mee35xvzegfs8a93jgkvs89sjsfy7cyzh4me7et5qeldtq94nqn7ec7aejh4lptdaszd2560',
  state: 'unused'
}
```
pumpkin pie
CC BY-SA 4.0
2023-01-25T15:38:41.593Z
Possibly you're running your local node on one network (preprod) and used the faucet and are checking on the other (preview). Try using the faucet to send assets to that address on the other network (https://docs.cardano.org/cardano-testnet/tools/faucet). And if they appear you have to decide which one you want to use. Here's the config files for each: https://book.world.dev.cardano.org/environments.html
sean
CC BY-SA 4.0
2023-01-25T16:09:30.263Z
Thank you. I double checked that I'm running the network on preview. I also tried Blockfrost (preview network) and queried those addresses, and I was able to find the balance here. So I suspect the cardano node that I'm running locally using docker is not updating for some reason. I'm running on Windows 11 btw.
pumpkin pie
CC BY-SA 4.0
2023-01-25T18:05:33.633Z
Here's a similar issue (unfortunately unresolved, https://forum.cardano.org/t/cardano-wallet-js-debugging/104169/9)

But there might be some good suggestions to 1) check the logs and 2) check the docker configuration; might need to assign more RAM in the settings
sean
CC BY-SA 4.0
2023-01-27T10:04:21.713Z
I don't see any transaction for this wallet address on the blockchain explorer: https://preprod.cardanoscan.io/address/009257c95e78ac448bc43a166da2497ab79cc68660b284c0fd2c648b32072c250493d820af5de7d95d019fb5602d6609fb38f7732bd7e15b7b
George - APEX Stake Pool
CC BY-SA 4.0
2023-01-27T11:11:03.050Z
Please look into the preview testnet, not preprod.
pumpkin pie
<cardano-cli><cardano-node>
cardano preprod wallet balance is still zero after full node sync
# cardano preprod wallet balance is still zero after full node sync

(Asked by: username_0 on 2023-01-25)

I'm following the instructions laid out in this article.
https://developers.cardano.org/docs/get-started/cardano-wallet-js
I first ran cardano node and wallet using docker-compose on preprod network. I then created a new walletm, sent some test tokens using the faucet portal. The transaction was successful and verifiable on preprod cardano explorer. However the wallet balance when I call the api still shows as zero. I waited for the node to fully sync and change the status to "Ready" but even after that the wallet balance is still zero.
This is the network status(preview)
{
  network_info: { network_id: 'testnet', protocol_magic: 2 },
  network_tip: {
    absolute_slot_number: 7984597,
    epoch_number: 92,
    slot_number: 35797,
    time: '2023-01-25T09:56:37Z'
  },
  next_epoch: { epoch_number: 93, epoch_start_time: '2023-01-26T00:00:00Z' },
  node_era: 'babbage',
  node_tip: {
    absolute_slot_number: 7984492,
    epoch_number: 92,
    height: { quantity: 376281, unit: 'block' },
    slot_number: 35692,
    time: '2023-01-25T09:54:52Z'
  },
  sync_progress: { status: 'ready' },
  wallet_mode: 'node'
}

This is the code to check the balance.
const { Seed, WalletServer } = require("cardano-wallet-js");
(async function () {
let walletServer = WalletServer.init("http://127.0.0.1:8090/v2");
let wallets = await walletServer.wallets();
let id = wallets[0].id;
let wallet = await walletServer.getShelleyWallet(id);
let availableBalance = wallet.getAvailableBalance();
console.log(availableBalance);
})();

**Tags:** cardano-cli, cardano-node
> **Comments:**
> **username_1**: Can you please provide more information?  
> **username_0**: Sure.  Here is the transaction which I did from Faucet to my test preview wallet. https://preview.cexplorer.io/address/addr_test1qzf90j270zkyfz7y8gtxmgjf02mee35xvzegfs8a93jgkvs89sjsfy7cyzh4me7et5qeldtq94nqn7ec7aejh4lptdaszd2560#data  These funds are not reflected when I run "wallet.getAvailableBalance()" in the code. Balance is still shown as 0.  
> **username_0**: I updated the question with the code to retrieve balance.  
> **username_1**: Can you console.log the address of the wallet?  
> **username_0**: When i run wallet.getNextAddress(), I get below response. ``` AddressWallet {   id: 'addr_test1qzf90j270zkyfz7y8gtxmgjf02mee35xvzegfs8a93jgkvs89sjsfy7cyzh4me7et5qeldtq94nqn7ec7aejh4lptdaszd2560',   state: 'unused' } ```  
> **username_2**: Possibly you're running your local node on one network (preprod) and used the faucet and are checking on the other (preview). Try using the faucet to send assets to that address on the other network (https://docs.cardano.org/cardano-testnet/tools/faucet). And if they appear you have to decide which one you want to use. Here's the config files for each: https://book.world.dev.cardano.org/environments.html  
> **username_0**: Thank you. I double checked that I'm running the network on preview. I also tried Blockfrost (preview network) and queried those addresses, and I was able to find the balance here. So I suspect the cardano node that I'm running locally using docker is not updating for some reason. I'm running on Windows 11 btw.  
> **username_2**: Here's a similar issue (unfortunately unresolved, https://forum.cardano.org/t/cardano-wallet-js-debugging/104169/9)  But there might be some good suggestions to 1) check the logs and 2) check the docker configuration; might need to assign more RAM in the settings  
> **username_3**: I don't see any transaction for this wallet address on the blockchain explorer: https://preprod.cardanoscan.io/address/009257c95e78ac448bc43a166da2497ab79cc68660b284c0fd2c648b32072c250493d820af5de7d95d019fb5602d6609fb38f7732bd7e15b7b  
> **username_0**: Please look into the preview testnet, not preprod.  

---

## 0 answers

