Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning Bitcoin

You're reading from   Learning Bitcoin Embrace the new world of fiance by leveraging the power of crypto-currencies using Bitcoin and the Blockchain

Arrow left icon
Product type Paperback
Published in Oct 2015
Publisher
ISBN-13 9781785287305
Length 236 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
 Caetano Caetano
Author Profile Icon Caetano
Caetano
Arrow right icon
View More author details
Toc

Executing Bitcoin operations


Bitcoin Core has a Console which allows you to execute commands directly. The backend engine, called bitcoind, will execute the command and interact with the wallet, the blockchain, or the network, as requested. The results are returned as standard JSON text.

Note

JSON stands for Javascript Object Notation. Developers can use the JSON format as a way of encoding data that's easily read by both humans and computers. Following is an example of using JSON to describe a company and address:

{
  "title" : "ACME Manufacturing","address" : "1234 Main Street, Anywhere, CA"}

Curly braces, {}, are used to group key/value pairs. Keys are used to reference a piece of data. Each pair is separated by a colon, ":" . JSON uses quotes, "", to define strings of characters.

Bitcoin Core accepts and responds with JSON.

Opening the console

To open the window, select Debug window under the Help menu, and then select the Console tab. You will be prompted with a window similar to the example...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images