UNPKG

@solana-suite/nft

Version:
36 lines 2.25 kB
import { PublicKey, TransactionInstruction } from '@solana/web3.js'; import { MintInstruction, Pubkey, Result, Secret } from '@solana-suite/shared'; import { UserSideInput } from '@solana-suite/shared-metaplex'; import { DataV2 } from '@metaplex-foundation/mpl-token-metadata'; export declare namespace Metaplex { const createDeleagateInstruction: (mint: PublicKey, owner: PublicKey, delegateAuthority: PublicKey) => TransactionInstruction; const createMintInstructions: (mint: PublicKey, owner: PublicKey, nftMetadata: DataV2, feePayer: PublicKey, isMutable: boolean) => Promise<TransactionInstruction[]>; /** * Upload content and NFT mint * * @param {Pubkey} owner // first minted owner * @param {Secret} signer // owner's Secret * @param {UserSideInput.NftMetadata} input * { * name: string // nft content name * symbol: string // nft ticker symbol * filePath: string | File // nft ticker symbol * royalty: number // royalty percentage * storageType: 'arweave'|'nftStorage' // royalty percentage * description?: string // nft content description * external_url?: string // landing page, home page uri, related url * attributes?: MetadataAttribute[] // game character parameter, personality, characteristics * properties?: MetadataProperties<Uri> // include file name, uri, supported file type * collection?: Pubkey // collections of different colors, shapes, etc. * creators?: InputCreators[] // other creators than owner * uses?: Uses // usage feature: burn, single, multiple * isMutable?: boolean // enable update() * options?: [key: string]?: unknown // optional param, Usually not used. * } * @param {Secret} feePayer? // fee payer * @param {Pubkey} freezeAuthority? // freeze authority * @return Promise<Result<MintInstruction, Error>> */ const mint: (owner: Pubkey, signer: Secret, input: UserSideInput.NftMetadata, feePayer?: Secret, freezeAuthority?: Pubkey) => Promise<Result<MintInstruction, Error>>; } //# sourceMappingURL=mint.d.ts.map