GET: Owned Tokens
Returns all tokens owned by a user's wallet address for a specified collection (i.e. contract). The contractId
for a collection can be found on the dashboard under the "Developers" tab in the contract detail page.
https://api.hypermint.com/v1/nft-contract/:contractId/tokens/owners/:walletaddress
Get Owned Tokens
Gets all the tokens owned by a wallet address for a specific contract address.
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 |
🟠 400: Bad Request | The contract has not been deployed |
🟠 400: Bad Request | The address is not a valid EVM address |
interface TokenOwnershipResponse {
tokens: {
tokenId: number;
amount: number; // Always 1 for ERC721
tokenAddress?: string; // Only populated for Solana
tokenAccountAddress?: string; // Only populated for Solana
} [];
}
Feedback
SSomething 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