Example 2: Creating a Channel
Scenario
This section describes how to create a channel by calling an API.
Related APIs of Other Services
None
Creating a Channel
- URI format
- Example request
POST https://{bcs_endpoint}/v2/{project_id}/blockchains/{blockchain_id}/channels
Obtain the value of {bcs_endpoint} from Regions and Endpoints.
Body:
{ "channels": [ { "channel_name": "channel001", "channel_description": "channel001" } ] }
- Example response
If the operation is successful, the returned value is empty.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot