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

ParameterDescription
HM_ACCESS_KEYHyperMint Access Key
HM_ACCESS_KEY_SECRETHyperMint Access Key Secret

Response

CodeMeaning
🟒 200: OKResponds with an interaction ID which can be used to check the status of the transaction
🟠 404: Not FoundUnable to find token details for the give contract ID
🟠 400: Bad RequestThe contract has not been deployed
🟠 400: Bad RequestThe 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.