Contract

The contract API provide users the entries to interact with the ERC721 contracts, including deploying the contracts, setting the sponsors and so on.

Contract Actions

Deploy Contract

The Deploy contract API helps users to deploy a ERC721 or a ERC1155 contract.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

When the API is called successfully, we need to use the id in response to call Query contract detail API to get the contract address. It takes several seconds that the contract address can be obtained from Query contract detail API.

Update contract admin

The Update contract admin API provides users the entry to update the admin of the specific contract.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Set Sponsor

Good to know: Conflux provides users the sponsor function. Once a contract is sponsored by an account, the accounts in the contract white list can call this contracts for free.

The Set sponsor API provides users to set a sponser for a specific contract according to the sponsor' address.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Note: UP to now, Set sponsor API can only be called by users free in testnet. In mainnet, Users need to recharge their own wallet.

Add Contract Sponsor Users

The Add Contract Sponsor Users API provides users to add the address in the whitelist.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Remove Contract Sponsor Users

The Remove Contract Sponsor Users API provides users to remove the address from the whitelist.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Query Informations

Obtain Contract List

The Obtain contarct list API provides users the entry to get the inforamtion of the contracts deployed in a specified app. The parameter page and size are optional parameters.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Query detail contract

The Query detail contract API provides users the entry to get the detail contract information of a specific contract according to the contract's id. The parameter chain is optional, which can be used to choose the test or main network of conflux.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Query Sponsor

The Query sponsor API provides users the entry to get the sponsors of a specific contract according to the contract's address. The parameter chain is optional, which can be used to choose the test or main network of conflux.

Good to know: Conflux Network can be divided into the main network and the test network. The later is used to test the developed functions for developers.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Good to know: For more detailed information, please refer to the following link.

Query contract admin

The Query contract admin API provides users the entry to get the admin of the specific contract.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Query Contract Whitelist

The Query Contract Whitelist API provides users to get the whitelist of the specific contract. Only the addresses in the whitelist can call the contract free.

NameMeaningParam TypeData Type

Authorization

Bearer Token

Header

string

Last updated