GET
/
getMintDetails
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

The response is of type object.