Contract
The contract API provide users the entries to interact with the ERC721 contracts, including deploying the contracts, setting the sponsors and so on.
Last updated
The contract API provide users the entries to interact with the ERC721 contracts, including deploying the contracts, setting the sponsors and so on.
Last updated
The Deploy contract
API helps users to deploy a ERC721 or a ERC1155 contract.
Authorization
Bearer Token
Header
string
The Update contract admin
API provides users the entry to update the admin of the specific contract.
Authorization
Bearer Token
Header
string
The Set sponsor
API provides users to set a sponser for a specific contract according to the sponsor' address.
Authorization
Bearer Token
Header
string
The Add Contract Sponsor Users
API provides users to add the address in the whitelist.
Authorization
Bearer Token
Header
string
The Remove Contract Sponsor Users
API provides users to remove the address from the whitelist.
Authorization
Bearer Token
Header
string
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.
Authorization
Bearer Token
Header
string
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.
Authorization
Bearer Token
Header
string
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.
Authorization
Bearer Token
Header
string
The Query contract admin
API provides users the entry to get the admin of the specific contract.
Authorization
Bearer Token
Header
string
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.
Authorization
Bearer Token
Header
string
The id of the item in the database, which can be used to
The address of the contract. The response will be null after calling this interface. After several seconds, it can call according to the id.
The status of the transaction. 0-pending, 1-success, 2-failed. The response will be 0 after calling this interface. After several seconds, it can call according to the id.
The hash of the transaction. The response will be null after calling this interface. After several seconds, it can call according to the id.
When the API is called successfully, we need to use the id in response to call API to get the contract address. It takes several seconds that the contract address can be obtained from API.
Note: UP to now, Set sponsor
API can only be called by users free in testnet. In mainnet, Users need to
The addresses being added into the
Set the sponsor for a contract according to the address with specified value(gas-1, storage-50)
Contract address
chain
Open auto sponsor or not, for mainnet contract keep user account have enough balance
Bearer Open_JWT
Get the contract list containing the contracts deployed through the specified app.
page
limit
Bearer Open_JWT
Get the sponsor of the specified contract according to address.
address
chain
Bearer Open_JWT
Get Contract Admin
contract address
Bearer Open_JWT
Get contract sponsored whitelist, only work on conflux chain
contract address
Bearer Open_JWT
Deploy a ERC721 or ERC1155 contract. Deploy a ERC721 or ERC1155 contract.
Bearer Open_JWT
default: true
default: true
default: true
default: true
default: 0
Update administrator of contract, only work on conflux chain
contract address
Bearer Open_JWT
Chain string form:"chain" json:"chain" binding:"required,oneof=conflux conflux_test"
ContractAddress string form:"contract_address" json:"contract_address" binding:"required"
Add contract sponsored whitelist, only work on conflux chain
contract address
Bearer Open_JWT
Remove contract sponsored whitelist, only work on conflux chain
contract address
Bearer Open_JWT