SlideShare a Scribd company logo
Copyright © Blockchain Council www.blockchain-council.org 1
Copyright © Blockchain Council www.blockchain-council.org
What is a blockchain API? How can you integrate
In your website?
Since Bitcoin first broke into the world wide web, it has made several upgrades to
its original code making it easier for the average user to get started with Bitcoin.
As you may already know, an API refers to an Application Programming Interface
which is designed to simplify interacting with a piece of software. It typically
contains a host of subroutine definitions, communication protocols, and tools that
can be used to build applications on top of the existing functionality. In this article,
we take a look at the various kind of APIs available for blockchains and also learn
the methods of invoking these functions in a website.
2
Copyright © Blockchain Council www.blockchain-council.org
Benefits of Using Blockchain APIs
Before jumping into blockchain APIs, we must first have a basic understanding of
how blockchains work. A typical blockchain consists of the following three basic
steps:
3
Copyright © Blockchain Council www.blockchain-council.org
(a) A transaction is generated by a bitcoin client and broadcast it to the network
where it sits in the memory pool waiting to be processed.
(b) The transaction is picked up by miners and added to a block.
(c) The miners solve the block, and the transaction is finally added to the
blockchain.
4
Copyright © Blockchain Council www.blockchain-council.org
It is evident from the process above that; it is too complicated for every person
who wants to use blockchains to set up their network. That is precisely why
Blockchain API’s exist. Blockchain API’s can consequently be used for many
applications which wouldn’t be possible with just blockchains. For instance, using
the decentralized security offered by blockchains to verify cryptographic key
exchanges requires some form of an API.
5
Copyright © Blockchain Council www.blockchain-council.org
Also since blockchains are somewhat expensive to be used for performing
computing tasks, they can instead be used to exchange tokens that can be used
to rent computing power. Etheroll is one such example of a decentralized
application that relies on the blockchain for ensuring fairness of the betting game.
The bulk of the user interface and other features for the website are similar to that
of a traditional website.
6
Copyright © Blockchain Council www.blockchain-council.org
However, the essential component, that is computing the dice roll fairly for all
players is done using a transaction on the Ethereum Blockchain. Another
application of blockchain APIs for security is for the management of supply chain
logistics. VeChain is one of the biggest players in the blockchain based logistics
sector, and it uses blockchain APIs to make sure that the product is authentic and
trackable in real time.
7
Copyright © Blockchain Council www.blockchain-council.org
How to integrate blockchain APIs in a Website
There is a wide variety of different blockchain APIs each of which caters to unique
needs such as Neuroware, Factom Alpha, Blockchain (for blockchain.com),
ChromaWay, Coinbase, Gem, Tierion and many others. For this guide, we shall
consider one of the simplest applications of setting up a Blockchain API for
accepting Bitcoin payments on a website.
Learn more about Blockchain
8
Copyright © Blockchain Council www.blockchain-council.org
. The process depends on Receive Payments API V2 of Blockchain to generate
new unused addresses to receive payments for a specific extended public key
(xPub):
· Request for an API key users must set up a wallet at www.blockchain.info
and request for an API key at
https://api.blockchain.info/v2/apikey/request/
·
9
Copyright © Blockchain Council www.blockchain-council.org
Generation an extended public key (xPub): After generating a wallet at the
address specified above, the xPub can be found in:
Settings -> Addresses -> Manage -> More Options -> Show xPub
· Generating a unique address for every customer: The basic URL for
creating a new request for every customer is:
https://api.blockchain.info/v2/receive?xpub=$xpub&callback=$callback_url&key=$
key
10
Copyright © Blockchain Council www.blockchain-council.org
The three main parameters for this request
are as follows:
1. xpub – Your xPub.
2. callback_url – The callback URL to be notified when a payment is received.
3. key – Your blockchain.info receive payments v2 API key (created in step 1).
Every call to the server will increment the index by one to avoid showing the same
address to different customers.
11
Copyright © Blockchain Council www.blockchain-council.org
Adoption by big Names-
Amazon, Walmart, IM, Infosys is some of the big names that are working towards
exploring the use of this technology. Chinese company Alibaba is exploring the
use of Blockchain. Alibaba’s Ant Financial Service Group, a part of Alibaba group,
collaborated with Globe Telecom, a Philippine telecommunication giant to provide
real-time cross-border payment services. This service will be useful for both SME
industries and individuals. With the help of this technology, the user can send and
receive the money quickly and easily.
12
Copyright © Blockchain Council www.blockchain-council.org
Healthcare-
It might sound a bit unconventional, but Blockchain Technology can be
revolutionary even in the healthcare sector. The latest information in this zone
came when Ali Health or Alibaba Health Information Technology Ltd. will
collaborate with Chinese City government to establish a connection between the
current medical. The objective behind this is to bring all the information on
Blockchain platform thus, making the entire information easily accessible.
13
Copyright © Blockchain Council www.blockchain-council.org
Blockchain Council Certifications
You can check out our certifications, and kick start your career in the Blockchain
space today.
● Certified Blockchain Expert
● Certified Blockchain Expertv2
● Certified Blockchain Developer
● Certified Smart Contract Developer
● Certified Solidity Developer
● Certified Ethereum Developer
14
THANK YOU!
Any questions?
You can mail us at
hello@blockchain-council.org
Copyright © Blockchain Council www.blockchain-council.org 15

More Related Content

PDF
Blockchain spreads
PDF
BlockchainLAB Hackathon
PDF
Arm the World with SPN based Security
PDF
Cisco Connect 2018 Malaysia - Secure data center-building a secure zero-trus...
PDF
Enterprise-Grade Trust: Collaboration Without Compromise
PPTX
Cisco Connect 2018 Indonesia - Building a secure data center
PPTX
Cisco Connect 2018 Indonesia - Delivering intent for data center networking
PDF
Moving Beyond Zero Trust
Blockchain spreads
BlockchainLAB Hackathon
Arm the World with SPN based Security
Cisco Connect 2018 Malaysia - Secure data center-building a secure zero-trus...
Enterprise-Grade Trust: Collaboration Without Compromise
Cisco Connect 2018 Indonesia - Building a secure data center
Cisco Connect 2018 Indonesia - Delivering intent for data center networking
Moving Beyond Zero Trust

What's hot (18)

PDF
IoT Security: Problems, Challenges and Solutions
PDF
Talk2 esc2 muscl-wifi_v1_2b
PDF
Cisco Connect Halifax 2018 Anatomy of attack
PDF
Cisco Connect Halifax 2018 Accelerating incident response in organizations...
PDF
Accelerating Digital Leadership
PDF
Cisco Connect Toronto 2017 - Security Through The Eyes of a Hacker
PDF
Cisco connect winnipeg 2018 stealthwatch whiteboard session and cisco secur...
PDF
Devil's Bargain: Sacrificing Strategic Investments to Fund Today's Problems
PDF
Cisco Connect Toronto 2018 cloud and on premises collaboration security exp...
PDF
Cisco Connect 2018 Thailand - Cisco Meraki an innovation journey to a smarter...
PDF
Ministry of Foreign Affairs
PDF
Cisco connect winnipeg 2018 unlocking business value with network programma...
PDF
Trusted Environment. Blockchain for business: best practices, experience, tips
PDF
Cisco connect winnipeg 2018 simply powerful networking with meraki
PDF
TechWiseTV Workshop: Programmable ASICs
PDF
[Cisco Connect 2018 - Vietnam] Anh duc le building a secure data center
PPTX
Microsoft IoT Security @ Xpand:X:ED Meetup Sydney Feb 2016
PDF
Cisco connect winnipeg 2018 simplifying cloud adoption with cisco ucs
IoT Security: Problems, Challenges and Solutions
Talk2 esc2 muscl-wifi_v1_2b
Cisco Connect Halifax 2018 Anatomy of attack
Cisco Connect Halifax 2018 Accelerating incident response in organizations...
Accelerating Digital Leadership
Cisco Connect Toronto 2017 - Security Through The Eyes of a Hacker
Cisco connect winnipeg 2018 stealthwatch whiteboard session and cisco secur...
Devil's Bargain: Sacrificing Strategic Investments to Fund Today's Problems
Cisco Connect Toronto 2018 cloud and on premises collaboration security exp...
Cisco Connect 2018 Thailand - Cisco Meraki an innovation journey to a smarter...
Ministry of Foreign Affairs
Cisco connect winnipeg 2018 unlocking business value with network programma...
Trusted Environment. Blockchain for business: best practices, experience, tips
Cisco connect winnipeg 2018 simply powerful networking with meraki
TechWiseTV Workshop: Programmable ASICs
[Cisco Connect 2018 - Vietnam] Anh duc le building a secure data center
Microsoft IoT Security @ Xpand:X:ED Meetup Sydney Feb 2016
Cisco connect winnipeg 2018 simplifying cloud adoption with cisco ucs
Ad

Similar to What is a blockchain api how can you integrate in your website (20)

PPTX
How blockchain startups make money?
PPTX
Introduction Blockchain Technology Models To Work Within The Enterprise
PDF
Blockmason link whitepaper
PPTX
Top 5 blockchain platforms for digital marketing
PDF
Ibm system storage solutions handbook
PPTX
Blockchain applications 15 killer concepts for you
PDF
Blockchain Application Development
PDF
bitcoin app - Google Docs.pdf
PPTX
Introducing flow the new blockchain for open worlds
PPTX
The most relevant platforms overview for blockchain developers in 2020
PPTX
What Is The Blockchain kyc solutions
PPTX
How can blockchain help you to grow your business
PPTX
Top 7 Benefits Of Using Blockchain Technology For Mobile Apps
PPTX
How will Blockchain Affect Daily life Routines : 6 real life scenarios
PPTX
How do blockchain and wordpress work together
PPTX
How An Ai Blockchain Platform Creates Digital Assets From Personal Data
PPTX
Top 7 Trends To Shape Blockchain Follow in 2020
PDF
Comprehensive Guide regarding Blockchain Technology - Develop Blockchain App
PDF
How Secure Is Content Streaming With Blockchain Technology
PPTX
Blockchain Programming Skills For New Developers
How blockchain startups make money?
Introduction Blockchain Technology Models To Work Within The Enterprise
Blockmason link whitepaper
Top 5 blockchain platforms for digital marketing
Ibm system storage solutions handbook
Blockchain applications 15 killer concepts for you
Blockchain Application Development
bitcoin app - Google Docs.pdf
Introducing flow the new blockchain for open worlds
The most relevant platforms overview for blockchain developers in 2020
What Is The Blockchain kyc solutions
How can blockchain help you to grow your business
Top 7 Benefits Of Using Blockchain Technology For Mobile Apps
How will Blockchain Affect Daily life Routines : 6 real life scenarios
How do blockchain and wordpress work together
How An Ai Blockchain Platform Creates Digital Assets From Personal Data
Top 7 Trends To Shape Blockchain Follow in 2020
Comprehensive Guide regarding Blockchain Technology - Develop Blockchain App
How Secure Is Content Streaming With Blockchain Technology
Blockchain Programming Skills For New Developers
Ad

More from Blockchain Council (20)

PPTX
A quick guide about blockchain based 'remittance' solution
PDF
By 2030, blockchain technology could drive a global economy of $1.7 trillion.
PPTX
5 ways on how will blockchain impact healthcare
PPTX
In 2021, facebook plans to introduce its own cryptocurrency.
PPTX
Why NFTs has overtaken Defoe As the hottest trend in blockchain
PPTX
Low code blockchain platform for crm by salesforce
PPTX
5 best blockchain stocks to buy in this year
PPTX
How to use hyperledger fabric for the enterprise
PPTX
Top 10 tricks to keep your bitcoin wallet safe
PPTX
Samsung started to develop its own blockchain
PPTX
Google cloud became a network block producer by joining the eos blockchain co...
PPTX
Blockchain use cases in energy sector
PPTX
Top Universities Are Increasing Blockchain Activity Worldwide.
PPTX
Vs code extensions required for blockchain development
PPTX
Blockchain Application In The Energy Sector Is Offering Cost Effective strate...
PPTX
Volvo committed to use blockchain for the highest level of transparency.
PPTX
5 major advantages of blockchain technology for engineering students
PPTX
How blockchain can potentially replace traditional supply chain processes
PPTX
Do Smart Contract Matter To Become A Blockchain Developer
PPTX
How companies are leveraging blockchain in supply chains
A quick guide about blockchain based 'remittance' solution
By 2030, blockchain technology could drive a global economy of $1.7 trillion.
5 ways on how will blockchain impact healthcare
In 2021, facebook plans to introduce its own cryptocurrency.
Why NFTs has overtaken Defoe As the hottest trend in blockchain
Low code blockchain platform for crm by salesforce
5 best blockchain stocks to buy in this year
How to use hyperledger fabric for the enterprise
Top 10 tricks to keep your bitcoin wallet safe
Samsung started to develop its own blockchain
Google cloud became a network block producer by joining the eos blockchain co...
Blockchain use cases in energy sector
Top Universities Are Increasing Blockchain Activity Worldwide.
Vs code extensions required for blockchain development
Blockchain Application In The Energy Sector Is Offering Cost Effective strate...
Volvo committed to use blockchain for the highest level of transparency.
5 major advantages of blockchain technology for engineering students
How blockchain can potentially replace traditional supply chain processes
Do Smart Contract Matter To Become A Blockchain Developer
How companies are leveraging blockchain in supply chains

Recently uploaded (20)

PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Cell Structure & Organelles in detailed.
PDF
Basic Mud Logging Guide for educational purpose
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Institutional Correction lecture only . . .
PDF
Anesthesia in Laparoscopic Surgery in India
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Cell Structure & Organelles in detailed.
Basic Mud Logging Guide for educational purpose
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharma ospi slides which help in ospi learning
human mycosis Human fungal infections are called human mycosis..pptx
102 student loan defaulters named and shamed – Is someone you know on the list?
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Microbial disease of the cardiovascular and lymphatic systems
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Origin of periodic table-Mendeleev’s Periodic-Modern Periodic table
Complications of Minimal Access Surgery at WLH
Institutional Correction lecture only . . .
Anesthesia in Laparoscopic Surgery in India

What is a blockchain api how can you integrate in your website

  • 1. Copyright © Blockchain Council www.blockchain-council.org 1
  • 2. Copyright © Blockchain Council www.blockchain-council.org What is a blockchain API? How can you integrate In your website? Since Bitcoin first broke into the world wide web, it has made several upgrades to its original code making it easier for the average user to get started with Bitcoin. As you may already know, an API refers to an Application Programming Interface which is designed to simplify interacting with a piece of software. It typically contains a host of subroutine definitions, communication protocols, and tools that can be used to build applications on top of the existing functionality. In this article, we take a look at the various kind of APIs available for blockchains and also learn the methods of invoking these functions in a website. 2
  • 3. Copyright © Blockchain Council www.blockchain-council.org Benefits of Using Blockchain APIs Before jumping into blockchain APIs, we must first have a basic understanding of how blockchains work. A typical blockchain consists of the following three basic steps: 3
  • 4. Copyright © Blockchain Council www.blockchain-council.org (a) A transaction is generated by a bitcoin client and broadcast it to the network where it sits in the memory pool waiting to be processed. (b) The transaction is picked up by miners and added to a block. (c) The miners solve the block, and the transaction is finally added to the blockchain. 4
  • 5. Copyright © Blockchain Council www.blockchain-council.org It is evident from the process above that; it is too complicated for every person who wants to use blockchains to set up their network. That is precisely why Blockchain API’s exist. Blockchain API’s can consequently be used for many applications which wouldn’t be possible with just blockchains. For instance, using the decentralized security offered by blockchains to verify cryptographic key exchanges requires some form of an API. 5
  • 6. Copyright © Blockchain Council www.blockchain-council.org Also since blockchains are somewhat expensive to be used for performing computing tasks, they can instead be used to exchange tokens that can be used to rent computing power. Etheroll is one such example of a decentralized application that relies on the blockchain for ensuring fairness of the betting game. The bulk of the user interface and other features for the website are similar to that of a traditional website. 6
  • 7. Copyright © Blockchain Council www.blockchain-council.org However, the essential component, that is computing the dice roll fairly for all players is done using a transaction on the Ethereum Blockchain. Another application of blockchain APIs for security is for the management of supply chain logistics. VeChain is one of the biggest players in the blockchain based logistics sector, and it uses blockchain APIs to make sure that the product is authentic and trackable in real time. 7
  • 8. Copyright © Blockchain Council www.blockchain-council.org How to integrate blockchain APIs in a Website There is a wide variety of different blockchain APIs each of which caters to unique needs such as Neuroware, Factom Alpha, Blockchain (for blockchain.com), ChromaWay, Coinbase, Gem, Tierion and many others. For this guide, we shall consider one of the simplest applications of setting up a Blockchain API for accepting Bitcoin payments on a website. Learn more about Blockchain 8
  • 9. Copyright © Blockchain Council www.blockchain-council.org . The process depends on Receive Payments API V2 of Blockchain to generate new unused addresses to receive payments for a specific extended public key (xPub): · Request for an API key users must set up a wallet at www.blockchain.info and request for an API key at https://api.blockchain.info/v2/apikey/request/ · 9
  • 10. Copyright © Blockchain Council www.blockchain-council.org Generation an extended public key (xPub): After generating a wallet at the address specified above, the xPub can be found in: Settings -> Addresses -> Manage -> More Options -> Show xPub · Generating a unique address for every customer: The basic URL for creating a new request for every customer is: https://api.blockchain.info/v2/receive?xpub=$xpub&callback=$callback_url&key=$ key 10
  • 11. Copyright © Blockchain Council www.blockchain-council.org The three main parameters for this request are as follows: 1. xpub – Your xPub. 2. callback_url – The callback URL to be notified when a payment is received. 3. key – Your blockchain.info receive payments v2 API key (created in step 1). Every call to the server will increment the index by one to avoid showing the same address to different customers. 11
  • 12. Copyright © Blockchain Council www.blockchain-council.org Adoption by big Names- Amazon, Walmart, IM, Infosys is some of the big names that are working towards exploring the use of this technology. Chinese company Alibaba is exploring the use of Blockchain. Alibaba’s Ant Financial Service Group, a part of Alibaba group, collaborated with Globe Telecom, a Philippine telecommunication giant to provide real-time cross-border payment services. This service will be useful for both SME industries and individuals. With the help of this technology, the user can send and receive the money quickly and easily. 12
  • 13. Copyright © Blockchain Council www.blockchain-council.org Healthcare- It might sound a bit unconventional, but Blockchain Technology can be revolutionary even in the healthcare sector. The latest information in this zone came when Ali Health or Alibaba Health Information Technology Ltd. will collaborate with Chinese City government to establish a connection between the current medical. The objective behind this is to bring all the information on Blockchain platform thus, making the entire information easily accessible. 13
  • 14. Copyright © Blockchain Council www.blockchain-council.org Blockchain Council Certifications You can check out our certifications, and kick start your career in the Blockchain space today. ● Certified Blockchain Expert ● Certified Blockchain Expertv2 ● Certified Blockchain Developer ● Certified Smart Contract Developer ● Certified Solidity Developer ● Certified Ethereum Developer 14
  • 15. THANK YOU! Any questions? You can mail us at hello@blockchain-council.org Copyright © Blockchain Council www.blockchain-council.org 15