GET
/
getMintDetails
JavaScript
import { setOnchainKitConfig } from '@coinbase/onchainkit';
import { getMintDetails } from '@coinbase/onchainkit/api';

const response = await getMintDetails({
  contractAddress: '0x...',
  takerAddress: '0x...',
  tokenId: '1',
});
{
  "name": "NFT Name",
  "description": "NFT description",
  "imageUrl": "https://example.com/image.png",
  "animationUrl": "",
  "mimeType": "image/png",
  "contractType": "ERC721",
  "price": {
    "amount": "0.0001",
    "currency": "ETH",
    "amountUSD": "0.242271"
  },
  "mintFee": {
    "amount": "0",
    "currency": "ETH",
    "amountUSD": "0"
  },
  "maxMintsPerWallet": 100,
  "isEligibleToMint": true,
  "creatorAddress": "0x...",
  "network": "",
  "totalTokens": "300",
  "totalOwners": "200"
}
The getMintDetails function returns data required to view an NFT to be minted Before using them, make sure to obtain a Client API Key from Coinbase Developer Platform.

Returns

Promise<GetMintDetailsResponse>

Parameters

GetMintDetailsParams

Types

Query Parameters

contractAddress
string
required

The NFT contract address

takerAddress
string
required

The address of the NFT recipient

tokenId
string
required

The token ID of the NFT

Response

200 - application/json

Successful response

name
string

NFT Name

description
string

NFT description

imageUrl
string<uri>

URL of the NFT image

animationUrl
string<uri>

URL of the NFT animation (if any)

mimeType
string

MIME type of the NFT asset

contractType
string

Token standard (e.g., ERC721)

price
object

Current price details

mintFee
object

Fee required to mint this NFT

maxMintsPerWallet
integer

Maximum number of mints allowed per wallet

isEligibleToMint
boolean

Indicates whether the caller is eligible to mint

creatorAddress
string

Address of the NFT creator

network
string

Network on which the NFT exists

totalTokens
string

Total number of tokens in the collection

totalOwners
string

Total number of unique owners of tokens in the collection