Get User Freemint Info

Request

In order to get freemint info of an wallet address, SDK provides you with a getFreeMintInfo endpoint to do so

try {
  const apiProtocol = nft2Client.getAPIService();
 
  const freemintInfo = await apiProtocol.getFreeMintInfo(
    56,  // chain id
    '0x...', // collection address
    '0x...', // campaign id
    '0x...', // user wallet
  );
 
  console.log(freemintInfo)
} catch (e) {
  console.error(e);
}

Parameters

  • chainId (number): Chain ID.

  • collectionAddress (string): Collection contract address.

  • campaignId (string): Campaign ID.

  • walletAddress (string): Wallet address of user.

Response

{
  walletAddress?: string;
  amount?: string;
  tokenId?: string;
  tokenUri?: string;
  tokenUriIPFS?: string;
  leaf?: string;
  proof?: Array<string>;
}

Last updated