SlideShare ist ein Scribd-Unternehmen logo
1 von 15
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

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

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

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

Ähnlich wie What is a blockchain api how can you integrate in your website (20)

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

Mehr von Blockchain Council

Mehr von Blockchain Council (20)

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

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

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