Skip to content
This repository has been archived by the owner on May 30, 2019. It is now read-only.
ljbennett62 edited this page Sep 26, 2017 · 5 revisions

Welcome to the BlockchainSmartContractTrading-CompositeJourney wiki!

Short Name

Welcome to Part 2 of "Getting started Building your first Blockchain application using Fabric Composer" - learn how to create and execute SmartContracts

Short Description

This is part 2 of Getting Started with Blockchain. Learn how to quickly use the Composer framework for creating and executing SmartContracts within a Blockchain application built on top of Hyperledger Fabric

Offering Type

Emerging Tech - Blockchain

Introduction

Congrats! You have made it to the second in a series of journeys that teach you how to get up and going creating a Blockchain application. Now that you know how to create the network, you are ready to learn how to create and execute a smart contract. Blockchain's value is realized with multi-party business transactions. Organizations that use blockchain depend on trusted automatic transactions. It provides a framework of trust that you can use to securely automate processes that, until now, were often manual. Let's get started with expanding our blockchain application to use SmartContracts.

Authors

By Ishan Gulhane

Code

https://github.com/IBM/BlockchainBalanceTransfer-CompositeJourney

Demo

N/A

Video

https://youtu.be/QKtE53T1UEg

Overview

One of the best things about the blockchain is that, because it is a decentralized system that exists between all permitted parties, there’s no need to pay intermediaries (Middlemen) and it saves you time and conflict. Originators of Blockchain realized that the decentralized ledger could be used for smart contracts; in other words self-executing contracts. What are smart contracts you ask? They help one exchange money, property, shares, or anything of value in a transparent, conflict-free way while avoiding the services of a middleman. The best way to describe smart contracts is to compare the technology to a vending machine. Ordinarily, you would go to an attorney, pay them, and wait while you get a document. With smart contracts, you simply drop a token into the vending machine (i.e. ledger), and your house closing documents, divorce decree, or is deposited into your account. What is really valuable is that smart contracts not only define the rules and penalties around an agreement in the same way that a traditional contract does, but also automatically enforce those obligations. This journey will take you through the steps of using Composer to create your smart contract amongst a set of participants.

Flow

Note - Please show only Part 2 of the graphic for this journey

Architecture1

  • Step #2 (Creating Smart Contracts)
  1. Installing and instantiating the Chaincode
  2. Querying and invoking the Chaincode
  3. Viewing transactions and the chaincode logs

Included Components

Technology

Links

Blog Post

https://developer.ibm.com/dwblog/2017/blockchain-business-rules-smart-contracts-automate-trading/