-1

I have a need for the following:

1) ability to create wallets

2) send/receive payments

3) check wallet balances

4) can work in mainnet and testnet

Since my blockchain goals are minimal, I would like to skip having to run a full bitcoin node and thus am looking for a more thin-client-like solution.

So far I've tried electrum with python_bitcoinrpc, but they don't seem to work together:

electrum --testnet setconfig rpcport 18332
electrum --testnet setconfig rpcuser user1
electrum --testnet setconfig rpcpassword tests123
electrum --testnet daemon start

and script:

from bitcoinrpc.authproxy import AuthServiceProxy, JSONRPCException

rpc_connection = AuthServiceProxy("http://user1:tests123@127.0.0.1:18332")

print(rpc_connection.getinfo())

and always get I always get bitcoinrpc.authproxy.JSONRPCException: -342: non-JSON HTTP response with '200 OK' from server

Could you please suggest whats the most mainstream way of achieving those goals with python?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.