bitcoinrpc — Convenience functions

bitcoin-python - Easy-to-use Bitcoin API client

bitcoinrpc.connect_to_local(filename=None)

Connect to default bitcoin instance owned by this user, on this machine.

Returns a BitcoinConnection object.

Arguments:

  • filename: Path to a configuration file in a non-standard location (optional)
bitcoinrpc.connect_to_remote(user, password, host='localhost', port=8332, use_https=False)

Connect to remote or alternative local bitcoin client instance.

Returns a BitcoinConnection object.

Previous topic

API reference

Next topic

bitcoinrpc.connection — Connect to Bitcoin server via JSON-RPC

This Page