Skip to content

getMintDetails

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.

Usage

code
import { setOnchainKitConfig } from '@coinbase/onchainkit';
import { getMintDetails } from '@coinbase/onchainkit/api';
 
const response = await getMintDetails({
  contractAddress: '0x...',
  takerAddress: '0x...',
  tokenId: '1',
});

Returns

Promise<GetMintDetailsResponse>

Parameters

GetMintDetailsParams