Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Blockchain By Example

You're reading from  Blockchain By Example

Product type Book
Published in Nov 2018
Publisher Packt
ISBN-13 9781788475686
Pages 528 pages
Edition 1st Edition
Languages
Concepts
Authors (3):
Bellaj Badr Bellaj Badr
Profile icon Bellaj Badr
Richard Horrocks Richard Horrocks
Profile icon Richard Horrocks
Xun (Brian) Wu Xun (Brian) Wu
Profile icon Xun (Brian) Wu
View More author details

Table of Contents (13) Chapters

Preface Say Hello to Blockchain Building a Bitcoin Payment System Building Your Own Cryptocurrency Peer-to-Peer Auctions in Ethereum Tontine Game with Truffle and Drizzle Blockchain-Based Futures System Blockchains in Business Creating an ICO Distributed Storage IPFS and Swarm Supply Chain on Hyperledger Letter of Credit (LC) Hyperledger Other Books You May Enjoy

IPFS file uploader project

In the second part of this chapter, we will take a more detailed look at how we can use IPFS's HTTP API programmatically. To do so, we will create a simple HTML and JavaScript web page from which we can upload files to IPFS directly, without the need to first upload the files to a backend server.

To do this, we will use the JS-IPFS-API JavaScript library, which will allow a browser-based frontend to communicate directly with the local IPFS node that we created earlier in the chapter. Note that this API library should not be confused with JS-IPFS, which is a JavaScript implementation of the main IPFS protocol.

The aim here is not to explore the HTTP API completely, but to provide a basic example of how it can be used. To learn more about the methods made available by the API, the relevant documentation should be consulted, at https://github.com/ipfs...

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}