Learn more >
Get the code
by Raheel Zubairy | Updated November 14, 2018 - Published October 29, 2018
Hyperledger Fabric provides a blockchain network with a modular architecture and consensus protocols that do not require a native cryptocurrency. Ethereum offers a structured and innovative option for writing smart contracts for decentralized applications, and then interacting with those smart contracts through libraries. This code pattern illustrates how Ethereum tools — like Solidity for writing smart contract and web3.js library for interacting with smart contracts — can be used in a blockchain application with a Hyperledger Fabric network. The pattern provides steps for deploying Fabric locally with Ethereum Virtual Machine (EVM) and creating a proxy for interacting with the smart contract through a Node.js web application.
This code pattern illustrates a Hyperledger Fabric EVM that allows developers to create a blockchain application with EVM smart contract languages such as Solidity. This smart contract is deployed onto the EVM chaincode running on the Fabric peers. This pattern shows how a user, such as a member or partner for our loyalty points use case, can interact with the smart contract through Fab3, a proxy to the fabric network. Fab3 allows for using the Ethereum web3.js library to interact with the EVM in the Fabric network.
This code pattern is for developers who want to create blockchain applications with Hyperledger Fabric EVM incorporating a Solidity smart contract. When you have completed the pattern, you will understand how to:
Find the detailed instructions in the README. These steps show you how to:
Get the Code »
Create a network on the IBM Blockchain Platform, install a smart contract (chaincode), and run a sample application to invoke…
Back to top