This post is part of the ‘DL Fabric Gateway™ User Guide’ originally published as
DL Fabric Gateway™ — User Guide
DL Fabric Gateway™ is a platform intended to facilitate the deployment and execution of chaincode on Hyperledger Fabric…
This post continues our ongoing discussion regarding creating channels on DL Fabric Gateway™.
Creating Channels on DL Fabric Gateway™
Creating a channel is required to protect your Chaincode from other users.
Create a channel on DL Fabric Gateway™ using the fab_createChannel API:
Open a Command Line Interface (CLI) of your choice (Terminal, cmd, etc.)
Copy and paste the following API Call into your CLI of choice, and tap “enter” on your keyboard
curl -X POST \
-H ‘Content-Type: application/json’ \
-H ‘Authorization: AUTH_TOKEN_HERE’ \
“userName” : “email@example.com”,
“channelName” : “yourchannel”
Where AUTH_TOKEN_HERE should be replaced with the Authentication Token received at your email address, firstname.lastname@example.org should be replaced with the email address used to register for DL Fabric Gateway™, and yourchannel should be replaced with a valid channel name.
You should receive a success response on the command line indicating that you have successfully created and joined a channel:
“message”: “Channel successfully created.”