Update Token (ERC1155)
Tokens can be updated to have new prices or total supplies.
Total supply must be more than or equal to the current supply (minted) on the contract
patch
https://api.hypermint.com/v1
/nft-contract/:contractId/token/:tokenId
Update token price, supply or max per transaction
Token id in the request is the integer token id on the network found in the UI or returns as part of contract information/when adding new tokens.
Parameters
Header
HM_ACCESS_KEY*
HyperMint Access Key
HM_ACCESS_KEY_SECRET*
HyperMint Access Key Secret
Body
price*
Number
Price of the token
totalSupply*
Number
Total supply for the token
maxPerTransaction*
Number
Max allowed to buy per transaction
Responses
200: OK
If the contract has been deployed, an interactionId will be returned which allows you to check the status of the token update request.
400: Bad Request
Contract does not exist or you do not have permission
404: Not Found
The token does not exist to be updated
404: Not Found
Contract does not exist or you do not have permission
See Get Interaction for a list of interaction types which are used and how to check the status if needed.
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 8mo ago