API overview

更新时间:
复制 MD 格式

Note

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

Create an on-chain account

antchain.caasplatform.extend.rights.create

Creates on-chain accounts for warrant issuers and recipients.

Create a resource file

antchain.caasplatform.extend.rights.upload

Creates a resource description file for a warrant before issuance.

Mint a warrant

antchain.caasplatform.general.rights.register

Mints a warrant.

Transfer a warrant

antchain.caasplatform.general.rights.pay

Transfers a warrant from the issuer to the recipient, such as during a purchase or giveaway.

Query a resource file

antchain.caasplatform.general.rights.get

Queries the content of a resource description file after the file is created.

Query the asset balance of an account

antchain.caasplatform.general.rightsbalance.get

Queries the quantity of a specific asset in an account.

The API call sequence is as follows:

image