GET: Token Information
Returns information about a given token (ID) which can be used to populate sales pages. The contract id for a contract can be found on the Collection screen in the Dashboard.
https://api.hypermint.com/v1/nft-contract/:contractId/token/:tokenId
Get Token Information
Returns information for a specific token
Parameters
Header
Parameter | Description |
---|---|
HM_ACCESS_KEY | HyperMint Access Key |
HM_ACCESS_KEY_SECRET | HyperMint Access Key Secret |
Response
Code | Meaning |
---|---|
🟢 200: OK | Responds with an interaction ID which can be used to check the status of the transaction |
🟠 404: Not Found | Unable to find token details for the give contract ID |
interface NFTContractTokenResponse {
id: number;
supply: number;
remaining: number;
totalSupply: number;
price: number;
maxPerTransaction: number;
tokenAddress?: string;
metadata: {
name?: string;
description?: string;
image?: string;
animationUrl?: string;
attributes?: MetadataAttribute[];
}
};
interface MetadataAttribute {
trait_type?: string;
value?: string;
display_type?: string;
}
Feedback
Something not quite right, unclear or can't find what you are looking for? Please let us know at support.moonpay.com and we will get back to you as soon as we can.
Updated 9 months ago