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
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
OK
Invalid request
Internal Server error
Update contract admin
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"
Transaction id
Invalid request
Internal Server error
Businesss error
Set Sponsor
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
Transaction id" "success
Invalid address
Internal Server error
Add Contract Sponsor Users
Add contract sponsored whitelist, only work on conflux chain
contract address
Bearer Open_JWT
Transaction id
Invalid request
Internal Server error
Businesss error
Remove Contract Sponsor Users
Remove contract sponsored whitelist, only work on conflux chain
contract address
Bearer Open_JWT
Transaction id
Invalid request
Internal Server error
Businesss error
Query Informations
Obtain Contract List
Get the contract list containing the contracts deployed through the specified app.
page
limit
Bearer Open_JWT
OK
Internal Server error
Query detail contract
Query Sponsor
Get the sponsor of the specified contract according to address.
address
chain
Bearer Open_JWT
OK
Invalid address
Internal Server error
Query contract admin
Get Contract Admin
contract address
Bearer Open_JWT
Admin address
Invalid request
Internal Server error
Businesss error
Query Contract Whitelist
Get contract sponsored whitelist, only work on conflux chain
contract address
Bearer Open_JWT
Contract sponsored whitelist
Invalid request
Internal Server error
Businesss error
Last updated