Getting started with Blockchain Service
    • PDF

    Getting started with Blockchain Service

    • PDF

    Article Summary

    Available in VPC

    If you have checked the Blockchain Service's specifications provided by Blockchain Service and duly noted all the scenarios, then you are now ready to start using Blockchain Service. The first thing to do is to create a network. The creation and management of networks is conducted from the NAVER Cloud Platform console.
    The following summarizes what you can learn from the start guide.

    Create network

    NAVER Cloud Platform's Blockchain Service manages Hyperledger Fabric nodes under a unit called a "network." You should create a network first to create and manage Fabric nodes.

    Note

    Resources required and restrictions when using Blockchain Service
    To use Blockchain Service, the following resources are required.

    • Ncloud Kubernetes Service: Requires clusters created on NAVER Cloud Platform's Ncloud Kubernetes Service (VPC). Hyperledger Fabric nodes are deployed to the Kubernetes cluster.
    • Please use the Kubernetes cluster only for Blockchain Service. (Recommended)
    • There should be no additional rules other than default ACG in/outbound in the server.
    • The Kubernetes PSP feature should be disabled.

    The following describes how to create a network.

    Note

    If needed, Fabric nodes, such as orderer, peer, and CA, can be created at the time of network creation. These Fabric nodes are created and managed at the Nodes menu (Blockchain Service > Nodes).

    1. Please connect to the NAVER Cloud Platform console.
    2. Click VPC from the Platform menu to switch to the VPC environment.
    3. Click the Services > Blockchain > Blockchain Service menus, in that order.
    4. Click the [Create network] button.
    5. Check the Agreement for the collection and use of personal information, select the required agreement items, and then click the [OK] button.
    6. When the Create network page appears, proceed with the following steps, in that order.

    1. Configure network

    Specify the network settings information, and then click the [Next] button.

    • Click the Deploy network field to specify the Kubernetes cluster node pool, and then a blockchain node will be deployed to the node pool. Details set as the Ncloud Kubernetes Service's node affinity label appear on the list and up to 3 of them can be specified.

    2. Create orderer

    You can create orderers in Create network step.

    1. Click the Create orderer radio button.
      • If you don't create an orderer at this step, you'll move to the Final confirmation step without creating a peer and channel.
    2. Set orderer CA, orderer MSP, and ordering service, and then click the [Next] button.
    • CA user ID (Admin)/CA user ID (Orderer) are created as Admin/Orderer-type separately in the network CA. Please refer to Manage CA user ID for more information about CA.
    • Enter the MSP ID for the organization where the orderer will participate in MSP name. The root CA public key for the organization to be created uses the value created from the orderer CA. Please refer to Create MSP for more information about creating the MSP.
    • You can select either Single (Raft 1) or Multiple (Raft 5) as the Orderer type. Each creates 1 and 5 orderer nodes, respectively. Use Multiple (Raft 5) for production environments requiring high availability (Recommended).
    • If you select Multiple (Raft 5) as the orderer type, then 5 orderer nodes will be created. Make sure to check the available resources of Kubernetes cluster in advance.
    • For more information about configuring ordering service, please refer to Create orderer.
    • Orderer nodes are deployed to the Kubernetes cluster while creating an orderer.

    3. Configure peer

    1. Click the Create org./peer radio button.
      • If you don't create a peer at this step, then you'll move to the Final confirmation step.
    2. Set organization CA, organization MSP, and peer, and then click the [Next] button.
    • For more information about configuring peers, please refer to Create peer.
    • CA user ID (Admin)/CA user ID (Peer) are created as Admin/Peer-type separately in the network CA. Please refer to Manage CA user ID for more information about CA.
    • Enter the MSP ID for the organization where the peer will participate in MSP name. The root CA public key for the organization to be created uses the value created from the orderer CA.
    • You can select either LevelDB or CouchDB as the State database, and it should be configured with the same database within the consortium.
    • If you select CouchDB as the state database, then CouchDB nodes are separately created from the peer nodes.
    • Peer nodes are deployed to the Kubernetes cluster while creating a peer.

    4. Create channel

    1. Click the Create channel radio button.
      • If you don't create a channel at this step, then you'll move to the Final confirmation step.
    2. Specify the channel configuration information, and then click the [Next] button.
    • Peer nodes created in the previous step are added by default to the Peer participating in channel.
    • Please refer to the Create channel for more information about configuring the channel.

    5. Final confirmation

    Check the network settings, and then click the [Create network] button.

    Note
    • When creating orderer, peer, and CA nodes together while creating a network, please check the Kubernetes cluster's available capacity. If the Kubernetes cluster doesn't have enough resources, then you can't create a network.
    • If you access a Fabric node in the other user's network or communicate outside the network, then the VPC where the Kubernetes cluster is installed must have a NAT Gateway configured. Go to NAT Gateway Guide
    • It may take several minutes or longer for the Blockchain Service's network to be created. Once the network is created and the server starts running, "In operation" is displayed in the status column of the network list.

    Delete network

    The following describes how to delete a network.

    1. From the VPC environment of the NAVER Cloud Platform console, click the Services > Blockchain > Blockchain Service > Networks menus, in that order.
    2. Select the network to delete from the network list, and then click the [Delete network] button.
    3. Enter the network name in the Confirm deletion pop-up window, and then click the [Delete] button.
    Note

    It takes several minutes to delete a network. Once the network is deleted, the network disappears from the network list.


    Was this article helpful?

    What's Next
    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.