Get the code
by Raheel Zubairy, Laura Bennett | Published March 8, 2019
In this developer code pattern, you’ll learn how to emit events from the blockchain network so external applications can subscribe to them and take action. More importantly, you will learn how to do this through an application that is built on top of an IBM Kubernetes Service cluster with IBM Blockchain Platform V2.0. As you’ve seen, blockchain’s trusted and immutable shared ledger is the foundation for innovative business solutions. Applications and external systems often need to know when something happens to the shared ledger. This pattern will show you how to programmatically generate and receive those notifications when transactions are written to the blockchain network.
This pattern should be tackled once you are skilled in creating network and smart contracts using the IBM Blockchain Platform V2.0 service. Consider this pattern an extension of that knowledge. Currently, this application demonstrates the event handling by extending the fabcar use case. Events occur when a car listing is issued. Participants interested in purchasing cars from an auction ask for notification when car sale listings are posted so they can get an early chance to bid. This pattern can be extended so that when a deal is closed, the owner is notified so they can anticipate when they will receive payment. Event notifications are an important part of the blockchain technology as participants typically like to react appropriately when transactions occur.
When you have finished this code pattern, you will understand how to:
Please see the README to get started.
February 23, 2019
March 20, 2019
June 25, 2019
Back to top