Issue with wallet fund: cert_issuer.errors.InsufficientFundsError

I am getting this error and i am not sure what is the problem… Any ideas?

WARNING - [WinError 10061] No connection could be made because the target machine actively refused it
WARNING - address mjb7Azb3573iuMrMtgWEFdfiZjWWGyYTi7 has a balance of 0
INFO - Total cost will be 133500 satoshis
ERROR - Please add 133500 satoshis to the address mjb7Azb3573iuMrMtgWEFdfiZjWWGyYTi7
Traceback (most recent call last):
File “D:\Programs\Python\lib\runpy.py”, line 193, in run_module_as_main
main”, mod_spec)
File “D:\Programs\Python\lib\runpy.py”, line 85, in run_code
exec(code, run_globals)
File "cert_issuer_main
.py", line 21, in
cert_issuer_main()
File "cert_issuer_main
.py", line 17, in cert_issuer_main
issue_certificates.main(parsed_config)
File “D:\New Projects\venv\lib\site-packages\cert_issuer-2.0.29-py3.6.egg\cert_issuer\issue_certificates.py”, line 36, in main
return issue(app_config, certificate_batch_handler, transaction_handler)
File “D:\New Projects\venv\lib\site-packages\cert_issuer-2.0.29-py3.6.egg\cert_issuer\issue_certificates.py”, line 16, in issue
transaction_handler.ensure_balance()
File “D:\New Projects\venv\lib\site-packages\cert_issuer-2.0.29-py3.6.egg\cert_issuer\blockchain_handlers\bitcoin\transaction_handlers.py”, line 51, in ensure_balance
raise InsufficientFundsError(error_message)
cert_issuer.errors.InsufficientFundsError: Please add 133500 satoshis to the address mjb7Azb3573iuMrMtgWEFdfiZjWWGyYTi7

The log is pretty explicit but basically:

address mjb7Azb3573iuMrMtgWEFdfiZjWWGyYTi7 has a balance of 0
cert_issuer.errors.InsufficientFundsError: Please add 133500 satoshis to the address mjb7Azb3573iuMrMtgWEFdfiZjWWGyYTi7

Just look for bitcoin testnet faucet online to credit the address.

I already did so. And I have a testnet balance in my wallet.

/ # bitcoin-cli getbalance
49.99996160

And I am still getting the same error message when I try to issue a cert:

cert_issuer.errors.InsufficientFundsError: Please add 133500 satoshis to the address mz9csLgKKaPXi2QFeEvAjmQ72VQcEsCWSg

My conf file:

issuing_address = mxyHBq5TD3bnq72UZGAMEi3Gpq1Dgr8JgS
chain=bitcoin_testnet
usb_name=./
key_file=./pk_issuer.txt
unsigned_certificates_dir=./data/unsigned_certificates
blockchain_certificates_dir=./data/blockchain_certificates
work_dir=./cert-issuer/work
no_safe_mode
no_bitcoind

/ #technical

so there are two things here:

your issuing address in the config file is mxyHBq5TD3bnq72UZGAMEi3Gpq1Dgr8JgS, the one the issuer seems to use is this one mz9csLgKKaPXi2QFeEvAjmQ72VQcEsCWSg. I have no idea which wallet is loaded in your bitcoin-cli so I’ll have to trust you are confident it’s the same one as in your config file.

The only point I can drag your attention to is the pk_issuer.txt file. There you need to put the WIF format of the private key associated with the address you want to issue from. It’s not well documented I will try and update that soon.

1 Like

By the way the address keeps changing between your messages, if you want proper support please try to maintain consistency or else I am just shooting in the dark.

1 Like

The last one is correct one.

Did you set the WIF format of the private key associated with the address in the pk_issuer.txt file?