Blockchain provisioning management
This topic describes the process for connecting to a blockchain. A successful connection creates a dedicated channel for that blockchain, which is used for all subsequent access.
Add a blockchain
Log on to the product console.
In the navigation pane on the left, choose IoT Blockchain Hub > Business Chains.
Click the Create Business Chain button to create a business chain for connecting to an enterprise blockchain.
You can add different types of blockchains. The service supports the following types: Alibaba Cloud BaaS-Fabric, Alibaba Cloud BaaS-Ant Blockchain, and BSN-Fabric.
Add an Alibaba Cloud BaaS-Fabric chain
1. Click Create Business Chain. Set Blockchain Type to Alibaba Cloud BaaS-Fabric, complete the general configurations, and then click Next.
2. Complete the provisioning configurations, and then click Submit.
Parameter | Description |
Blockchain Type | Select Alibaba Cloud BaaS-Fabric. |
Blockchain Name | The blockchain name must be unique. |
Consortium | The BaaS-Fabric consortium. |
Channel | The BaaS-Fabric channel. |
Organization | The BaaS-Fabric organization. |
Contract Template | System contract. |
Add an Alibaba Cloud BaaS-Ant Blockchain chain
1. Click Create Business Chain. Set Blockchain Type to Alibaba Cloud BaaS-Ant Blockchain, complete the general configurations, and then click Next.
2. Complete the provisioning configurations, and then click Submit.
Parameter | Description |
Blockchain Type | Select Alibaba Cloud BaaS-Ant Blockchain. |
Blockchain Name | The blockchain name must be unique. |
Consortium | The BaaS-Mychain consortium. |
Chain | The BaaS-Mychain chain. |
Node | The BaaS-Mychain node. |
Contract Template | System contract. |
CA Root Certificate | The CA root certificate. Path in the Alibaba Cloud Blockchain as a Service console: Ant Blockchain > Contract Chain > Manage > Chains in Consortium > More > Download Root Certificate (trustCa) |
CA Root Certificate Password | The password for the CA root certificate. This is the static value "mychain". |
Client Certificate | The client connection certificate. Path in the Alibaba Cloud Blockchain as a Service console: Ant Blockchain > Contract Chain > Manage > Chains in Consortium > More > Download Root Certificate (ca.crt) |
Client Private Key | The client private key file. Path in the Alibaba Cloud Blockchain as a Service console: Ant Blockchain > Contract Chain > Manage > Chains in Consortium > More > Download Root Certificate (ca.crt) |
Client Private Key Password | The password for the client private key file. This is the password that you specified when you created the certificate. |
Username | The blockchain username. For the source of this parameter, see the following figure: Path in the Alibaba Cloud Blockchain as a Service console: Ant Blockchain > Contract Chain > Manage > Chains in Consortium > Manage > Account Management |
User Private Key | The blockchain user's private key. |
User Private Key Password | The password for the blockchain user's private key. |
Add a BSN-Fabric chain
1. Click Create Business Chain. Set Blockchain Type to BSN-Fabric, complete the general configurations, and then click Next.
2. Complete the provisioning configurations, and then click Submit.
Parameter | Description |
Blockchain Type | Select BSN-Fabric. |
Application Code | The BSN application code. BSN path: Consortium Chain Service > Services I Participate In > View |
User Code | The BSN user code. For the source of this parameter, see the following figure: BSN path: Consortium Chain Service > Services I Participate In > View |
Network Connectivity Information | The BSN blockchain network connectivity configuration file. BSN path: Consortium Chain Service > Services I Participate In > View |
Search for a blockchain
From the search drop-down list, select a search condition, such as Business Chain Name or Business Chain Code. Enter the corresponding value in the search box, and then click the magnifying glass icon.
Note: You can perform a quick search by selecting search criteria and entering information. This feature supports only exact match.
Edit a blockchain
Find the blockchain that you want to edit and click Edit in the Actions column. In the Edit Blockchain dialog box, update the information and click Save.
The blockchain type cannot be changed.