Deploying and Testing Token Chaincode
You deploy token chaincode projects by following the same steps as other chaincode projects, but there are some special issues to consider.
You can deploy chaincode to only one organization or instance when you use
the standard deployment steps with Blockchain App Builder. When a token chaincode is
deployed, the list of Token Admin
users is specified. The Token
Admin
user can add or remove other users by calling the
addAdmin
and removeAdmin
methods.
To deploy to multiple organizations or instances, package the chaincode and then manually deploy it to all the instances. For more information, see the applicable following topic:
- CLI: Deploy Your Chaincode to a Remote Oracle Blockchain Platform Network
- Visual Studio Code: Deploy Your Chaincode to a Remote Oracle Blockchain Platform Network
To test token projects locally with multiple users, see the applicable following topic:
- CLI: Testing Multiple Token Users Locally
- Visual Studio Code: Testing Multiple Token Users Locally
To test token projects on a remote Oracle Blockchain Platform network, see the applicable following topic:
- CLI: Testing Token Projects on a Remote Oracle Blockchain Platform Network
- Visual Studio Code: Testing Token Projects on a Remote Oracle Blockchain Platform Network
Adding Enrollments for Token Use Cases
Oracle Blockchain Platform supports enrollments to the REST proxy. You use enrollments with token chaincodes to ensure the identities of the users completing token transactions. To do this, when you add enrollments for token use cases, specify a user ID for each enrollment, and specify one and only one user for each enrollment.