Prepare the environment before you call an API. For more information, see Prepare to call Contract Service APIs.
The digital warrant contract provides the following APIs:
Interface Name (Chinese) | API method | Description |
antchain.caasplatform.extend.rights.create | Creates on-chain accounts for warrant issuers and recipients. | |
antchain.caasplatform.extend.rights.upload | Creates a resource description file for a warrant before issuance. | |
antchain.caasplatform.general.rights.register | Mints a warrant. | |
antchain.caasplatform.general.rights.pay | Transfers a warrant from the issuer to the recipient, such as during a purchase or giveaway. | |
antchain.caasplatform.general.rights.get | Queries the content of a resource description file after the file is created. | |
antchain.caasplatform.general.rightsbalance.get | Queries the quantity of a specific asset in an account. |
The API call sequence is as follows:
