IBM and Red Hat — the next chapter of open innovation. Learn more ›
Get the code
by Oliver Rodriguez | Published May 20, 2019
Blockchain and IoT make a very powerful combination when used together. This combo allows for all parties in a business network to know exactly where an asset has been, and since the blockchain is immutable, the parties can trust that the information has not been tampered with. This pattern explores the use of a simulated IoT device built using Node-RED, which triggers events that update the current location of the asset on the ledger.
In this pattern, you will learn how to create a local Hyperledger Fabric network using the IBM Blockchain Platform extension for VS Code which makes it easy to start developing smart contracts.
The solution that you will be creating is an asset lifecycle and tracking solution that keeps a record of the asset from creation to deletion. You will also create and manage asset leases that keep track of the terms in a lease agreement, such as end date, price, and deposit amount.
For the IoT integration, you will leverage the IBM Watson IoT Platform to handle device scanning at various locations as the asset is being transferred. Instead of having an actual physical device, you will create a web app that pretends to be a device that triggers these scans and notifies a local Node.js app to invoke the updateAssetLocation transaction.
Find the detailed instructions for this pattern in the README file.
Deploy a sample commercial paper smart contract to the Hyperledger Fabric blockchain using the VS Code extension, and then run…
Get the Code »
Everyone is placing bets on how the blockchain technology will revolutionize the way organizations and institutions transact business. Let's look…
Back to top