DL Fabric Gateway™ User Guide— Section 3
This post is part of the ‘DL Fabric Gateway™ User Guide’ originally published as
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.
Goal
Create a channel on DL Fabric Gateway™ using the fab_createChannel API:
POST
https://dlfabricnetwork.dltlabs.com/api/1.0/fab_createChannel
Step 1
Open a Command Line Interface (CLI) of your choice (Terminal, cmd, etc.)
Step 2
Install curl (if not already installed): Download links — Linux/Windows
Step 3
Copy and paste the following API Call into your CLI of choice, and tap “enter” on your keyboard
curl -X POST \
‘https://dlfabricnetwork.dltlabs.com/api/1.0/fab_createChannel' \
-H ‘Content-Type: application/json’ \
-H ‘Authorization: AUTH_TOKEN_HERE’ \
-d ‘{
“userName” : “your@email.com”,
“channelName” : “yourchannel”
}’
*Note
Where AUTH_TOKEN_HERE should be replaced with the Authentication Token received at your email address, your@email.com should be replaced with the email address used to register for DL Fabric Gateway™, and yourchannel should be replaced with a valid channel name.
Example:
You should receive a success response on the command line indicating that you have successfully created and joined a channel:
{
“status”: “success”,
“message”: “Channel successfully created.”
}
