@leda-mint-io/candymachine-client-sdk
Version:
Metaplex Candy Machine Client SDK
30 lines (29 loc) • 1.1 kB
TypeScript
import { web3 } from "@j0nnyboi/anchor";
/**
* Get the associated token account from a mint and the owner.
*
* @param mint The mint to get the associated token account of.
* @param buyer The owner of the associated token account.
* @returns The associated token account
*/
export declare const getAtaForMint: (mint: web3.PublicKey, buyer: web3.PublicKey) => Promise<[web3.PublicKey, number]>;
/**
* Get the mint metadata.
*
* @param mint The mint to get the metadata of.
* @returns The mint metadata.
* */
export declare const getMetadata: (mint: web3.PublicKey) => Promise<web3.PublicKey>;
/**
* Get the mint edition.
* @param mint The mint to get the edition of.
* @returns The mint edition.
*
**/
export declare const getMasterEdition: (mint: web3.PublicKey) => Promise<web3.PublicKey>;
/**
* Get the creator of a candy machine.
* @param candyMachine The candy machine to get the mint of.
* @returns The creator of the Candy Machine.
*/
export declare const getCandyMachineCreator: (candyMachine: web3.PublicKey) => Promise<[web3.PublicKey, number]>;