If so, you may have to specify which address type to dump because the command defaults to "bech32" if addresstype isn't explicitly set.
Since you do not know the actual address(es), you may have to create a separate dump with legacy and p2sh-SegWit addresses.
Holy moly, this is new to me, thanks for this! I just looked up the short help with
bitcoin-cli help dumpwallet (Bitcoin Core v26.0) and there's absolutely no reference to
addresstype whatsoever affecting the output of this command. I'm puzzled, need to investigate further.
When
dumpwallet is affected by settings in bitcoin.conf like
addresstype=legacy, it might be necessary to also specify
changetype=legacy for change addresses (for legacy address type here).
I haven't import them on electrum cause i have found a python script that work for checking the balance of accounts and I tried with all of the addresses and every account was 0
And I put some random adresses with balance(not mine) and the script found them
So that what make me know that adresses all empty
I'd rely at such an important verification step on proven tools like Electrum wallet. Your Python script may be OK, but how do you know after just a few tests? Your script may just skip gracefully without signaling issues if it's programmed the wrong way. If you don't understand the code, you can't know what it is doing. I would be careful with "unknown" scripts.
You don't give any details about the script and it's a bit annoying to always have to ask for further details. I mean, you should be the one who is very much interested to be certain to use the right tools, no?
What address type did you get in your output file of
dumpwallet command (public addresses of 1... / 3... or bc1q...)?