Bitcoin mining data usage
This tutorial shows how to use django-bitcoin to receive and send money in your Python + Django application. The walkthrough guides how to create a bitcoin wallet in your Django application, buy bitcoins, transfers bitcoins into your application and then spend them. This all is done interactively from the command, Django shell and Python prompt.The tutorial was tested on OSX. It should work on Linux unmodified. On Windows you are on your own.
django-bitcoin is a proven open source solution for handling bitcoins in your service. However, it might be rough on the edges, it is being actively developed and lacks satisfying documentation. If you need a helping hand to set it up please pop up on #localbitcoins-chat on irc.freenode.net or poke me by email.
django-bitcoin creates a so called bitcoin web wallet in your Django project.
- You need to have a bitcoind installed on your desktop / server where you run the tutorial.
- django-bitcoin reads transactions from bitcoind and duplicates them as Django data with convenient models to handle them in your application
- django-bitcoin can send bitcoins from the system by calling bitcoind interfaces
2. Configuring bitcoind Install bitcoind.
Note that the bitcoind installation takes hefty 10-20 GB disk space for the block chain data. Blockchain contains all transaction history of bitcoin ever. bitcoind downloads this data from the bitcoin network and it may take a while.
- django-bitcoin communites with bitcoind over JSON-RPC protocol. You set the bitcoind address in settings.py
- bitcoind transaction handling is done as polling, using Django management commands
Configure your bitcoind to accept connection with username and password.
Create file example/localsettings.py and let’s put there in confidential settings (not stored on Github):
BITCOIND_CONNECTION_STRING = " How many bitcoin network confirmations are required until django-bitcoin considers the transaction # as received BITCOIN_MINIMUM_CONFIRMATIONS = 1 # Use Django signals to tell the system when new money has arrived to your wallets BITCOIN_TRANSACTION_SIGNALING = True
Source: opensourcehacker.com
Related posts:
- Bitcoin mining manual
- Bitcoin mining pool client
- Bitcoin mining whirlpool
- Bitcoin mining odds
- Bitcoin mining France