Deploy Chaincode from an External Service

You can run external chaincode, or chaincode as a service, on Oracle Blockchain Platform.

You can run chaincode as a service that is managed externally instead of being built and launched on a peer node. This functionality decouples creating the chaincode from deploying it to the Hyperledger Fabric network. Instead, the chaincode can be managed by an administrator independently of the peer node.

  1. Create a connection.json file with the address information of the external host, and then compress the file in .zip format. The following text shows a sample connection.json file.
    {
    "address": "example.com:9999",
    "dial_timeout": "10s",
    "tls_required": false
    }
    Use the public IP address or host name and the public port for the address when you specify the remote host or VM where the chaincode is managed.
  2. When you deploy chaincode, select External for the Chaincode Type. For Chaincode Source, upload the .zip file that you created in the previous step.