UNPKG

solana-framework

Version:

solana-framework is solana uni-tools for typescript

30 lines 1.65 kB
import { Connection, Keypair, PublicKey } from "@solana/web3.js"; import { MasterEditionV2, Metadata } from "./mpl-token-metadata/generated"; export interface NFTxDataJson { name: string; symbol: string; image: string; uri?: string; collection?: string; } export declare class NFTx { private creator; private readonly splTokenProgram; constructor(creator: Keypair, splTokenProgram?: PublicKey); createNFTIx(mint: PublicKey, name: string, symbol: string, uri: string, options?: { collection?: PublicKey; printSupply?: "Unlimited" | "Zero" | number; decimals?: number; }): import("@solana/web3.js").TransactionInstruction; createMintIx(mint: PublicKey, to: PublicKey, amount?: bigint): import("@solana/web3.js").TransactionInstruction; createPrintIx(mint: PublicKey, newMint: PublicKey, newEditionNumber: number, to: PublicKey): import("@solana/web3.js").TransactionInstruction; getAssociatedTokenAddress(mint: PublicKey, to: PublicKey): PublicKey; static getMetadataAccount(mint: PublicKey): PublicKey; getEditionMarkerPda(masterMint: PublicKey, masterEditionNumber: number): PublicKey; getMasterEditionAccount(mint: PublicKey): PublicKey; getMasterEditionAccountInfo: (connection: Connection, mint: PublicKey) => Promise<MasterEditionV2>; getMetadataAccountInfo: (connection: Connection, mint: PublicKey) => Promise<Metadata>; createVerifyCreator: (mint: PublicKey) => import("@solana/web3.js").TransactionInstruction; createVerifyCollection: (mint: PublicKey) => import("@solana/web3.js").TransactionInstruction; } //# sourceMappingURL=NFTx.d.ts.map