Create a digital warrant contract service
Go to the smart contract marketplace
Log on to the Alibaba Cloud BaaS console.
In the navigation pane on the left, click Ant Blockchain > Contract Chains to open the My Consortiums page.
In the Actions column for the target consortium, click Manage. A list of all chains in the consortium is displayed.
Find the target chain. In the Actions column, click More > Smart Contract Platform to open the Smart Contract Marketplace.
Create a service for the first time
From the smart contract marketplace, you can create a contract service and deploy it to the blockchain. When you create a contract service for the first time, a new application is automatically created and associated with the service. The procedure is as follows.
On the Smart Contract Service Marketplace page, find the Digital Warrant Contract template and click Create Contract Service.
In the setup wizard, follow the on-screen instructions to deploy the digital warrant contract and create an application.
Step 1: Enter a Contract Service Name and click One-click Deploy.
ImportantThis operation cannot be undone after the service is deployed to the blockchain.
Wait for the application to be created.
NoteClick View Application Creation Result to open the Application Authorization Management page and view the progress.
The application is created.
Click Done to open the My Contract Services page. You can view the new contract service that has been deployed to the blockchain.
Subsequent creation
When you create a contract service for the first time, a new application is automatically created and associated with it. When you create subsequent contract services, new applications are not automatically created.
To create a new application and associate it with the new contract service, see Application Authorization Management.
On the Smart Contract Service Marketplace page, find the Digital Warrant Contract template and click Create Contract Service.
In the setup wizard, follow the on-screen instructions to deploy the digital warrant contract.
Step 1: Enter a Contract Service Name and click One-click Deploy.
ImportantThis operation cannot be undone after the service is deployed to the blockchain.
The contract service is deployed.
Click Done to open the My Contract Services page. You can view the new contract service that has been deployed to the blockchain.
What to do next
After you create a digital warrant contract service, you can call its API operations. For more information about the API operations, see API reference.