24,99 €
Bitcoin is a cryptocurrency that’s changing the face of online payments. Hands-On Bitcoin Programming with Python teaches you to build software applications for mining and creating Bitcoins using Python.
This book starts with the basics of both Bitcoin and blockchain and gives you an overview of these inherent concepts by showing you how to build Bitcoin-driven applications with Python. Packed with clear instructions and practical examples, you will learn to understand simple Python coding examples that work with this cryptocurrency.
By the end of the book, you’ll be able to mine Bitcoins, accept Bitcoin payments on the app, and work with the basics of blockchain technology to create simply distributed ledgers.
Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:
Seitenzahl: 55
Veröffentlichungsjahr: 2018
Copyright © 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Pravin DhandreAcquisition Editor:Karan JainContent Development Editor: Ronnel MathewTechnical Editor: Dinesh PawarCopy Editor: Safis EditingProject Coordinator: Nidhi JoshiProofreader: Safis EditingIndexer: Tejal Daruwale SoniGraphics:Jisha ChirayilProduction Coordinator: Arvindkumar Gupta
First published: August 2018
Production reference: 1280818
Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.
ISBN 978-1-78953-700-0
www.packtpub.com
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Harish Kumar Garg founder of BignumWorks Software LLP, is a data scientist and a lead software developer with 17 years' experience in the software industry. BignumWorks Software LLP is an India-based software consultancy that provides consultancy services in the area of software development and technical training. Harish has worked for McAfee and Intel for over 11 years. He is an expert in creating data visualizations using R, Python, and web-based visualization libraries.
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Title Page
Copyright and Credits
Hands-On Bitcoin Programming with Python
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the author
Packt is searching for authors like you
Preface
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Getting Started with Bitcoin
Introduction to bitcoin and blockchains
What is bitcoin?
Uses of bitcoin
What is a blockchain?
Attributes of bitcoin and blockchain
Getting a bitcoin wallet
The different forms of bitcoin wallet
Getting and sending bitcoins
Summary
Programming Bitcoin and Blockchain with Python
Programming bitcoin with Python
Pi Bitcoin tools library
How to generate private keys and public keys
Creating a multisignature bitcoin address
Blockchain API programming with Python
Installing the Blockchain.info Python library
Getting bitcoin exchange rates from Blockchain.info
Statistics
Block explorer methods
Learning to mine bitcoin
How to mine bitcoin
Increasing difficulty in mining bitcoin
Summary
Earning Bitcoin Programmatically
Accepting bitcoin on your website
Introduction to BitPay
How to generate a bitcoin payment button
How to add a bitcoin payment button to your website
Building and releasing bitcoin-enabled APIs
21.co marketplace
21.co SDK
Selling microservices on the 21.co marketplace
Building a bitcoin trading bot
Triggering the bitcoin trade advice alert
How to get a current bid and asking price for bitcoin
The triggering of buy bitcoin
The triggering of sell bitcoin
Summary
Bitcoin Data Analysis
Manipulating and visualizing bitcoin price data
Getting set up for data analysis
Getting, reading in, and cleaning bitcoin price data
DataFrame
Data cleanup
Setting the index to the Date column
Exploring, manipulating, and visualizing the cleaned-up data
Data visualization
Exploring bitcoin transaction graphs
Bitcoin and blockchain graphs
Exploring, cleaning up, and analyzing data
Visualizing data
Collecting and analyzing Bitcoin Dice game data
Getting data from the Games Web API
Summary
Other Books You May Enjoy
Leave a review - let other readers know what you think
In this book, you will be introduced to Bitcoin and Blockchain, and how to take part in the Bitcoin ecosystem. You will learn about Bitcoin and its features, Blockchain, and how both can work together. You'll also learn how to use Pi Bitcoin tools to program Bitcoin with Python. You will learn about interacting with Blockchain APIs programmatically with Python, and about Bitcoin mining and how to get started with it. We will also explore Bitcoin trading bots. This book also deals with exploring and analyzing the tremendous amount of data being generated in the Bitcoin ecosystem; how to get, clean, manipulate, and visualize Bitcoin price data; and how to analyze a Bitcoin dice game's data using Python's data analysis tools.
Chapter 1, Getting Started with Bitcoin