Update Contract (ERC721)
Sets the
erc721Price
and erc721MaxPerTransaction
fields on a contract record. erc721TotalSupply
is used to alter the total supply of tokens for the contract. erc721TotalSupply
must be more than the total number of minted tokens for a deployed contract.Changes to deployed contracts will be broadcasted immediately
patch
https://api.hypermint.com/v1
/nft-contract/:contractId
Updates a contract
Parameters
Header
HM_ACCESS_KEY*
HyperMint Access Key
HM_ACCESS_KEY_SECRET*
HyperMint Access Key Secret
Body
name*
String
name of the contract
symbol*
String
symbol for the contract
network
CreateUpdateNFTDraftContractNetworkInput Object
See interface for CreateUpdateNFTDraftContractNetworkInput object
secondarySaleBasisPoints
Number
erc721TotalSupply
Number
Total supply number for ERC721
erc721MaxPerTransaction
Number
Maximum number someone can buy in one transaction
erc721Price
Number
Price for an NFT
Responses
200: OK
If contract is deployed the endpoint returns with a list of interaction Ids
400: Bad Request
The request sent was malformed or did not pass as a valid contract update request. The error message will explain the reason as to why the request couldn't be serviced
404: Not Found
Not Found
The interaction Ids returned from this endpoint can be used with Get Interaction Status to get the state of each interaction.
interface CreateUpdateNFTDraftContractNetworkInput {
type?: NetworkType;
environment?: NetworkEnvironment;
chain?: NetworkChain;
recoveryAddress?: string;
collectionOwnerAddress?: string;
customerPrimaryRoyaltyAddress?: string;
}
enum NetworkType {
Ethereum = 'Ethereum',
Polygon = 'Polygon'
}
enum NetworkEnvironment {
Emulator = 'Emulator',
Testnet = 'Testnet',
Mainnet = 'Mainnet'
}
enum NetworkChain {
EVMLocal = 'EVMLocal',
Ethereum = 'Ethereum',
Goerli = 'Goerli',
Polygon = 'Polygon',
Mumbai = 'Mumbai'
}
Something not quite right, unclear or can't find what you are looking for? Please let us know at [email protected] and we will get back to you as soon as we can.
Last modified 1mo ago