Type alias CreateTokenWithMintBuilderParams

CreateTokenWithMintBuilderParams: {
    token?: undefined | Signer;
    owner?: undefined | PublicKey;
    decimals?: undefined | number;
    mint?: undefined | Signer;
    mintAuthority?: undefined | PublicKey | Signer;
    freezeAuthority?: undefined | Option<PublicKey>;
    initialSupply?: undefined | SplTokenAmount;
    createMintAccountInstructionKey?: undefined | string;
    initializeMintInstructionKey?: undefined | string;
    createAssociatedTokenAccountInstructionKey?: undefined | string;
    createTokenAccountInstructionKey?: undefined | string;
    initializeTokenInstructionKey?: undefined | string;
    mintTokensInstructionKey?: undefined | string;
}

Type declaration

  • Optional token?: undefined | Signer

    The token account as a Signer if we want to create a new token account with a specific address instead of creating a new associated token account.

    Default Value

    Defaults to creating a new associated token account using the mint and owner parameters.

  • Optional owner?: undefined | PublicKey

    The address of the owner of the new token account.

    Default Value

    metaplex.identity().publicKey

  • Optional decimals?: undefined | number

    The number of decimal points used to define token amounts.

    Default Value

    0

  • Optional mint?: undefined | Signer

    The address of the new mint account as a Signer.

    Default Value

    Keypair.generate()

  • Optional mintAuthority?: undefined | PublicKey | Signer

    The address of the authority that is allowed to mint new tokens to token accounts.

    It may be required as a Signer in order to mint the initial supply.

    Default Value

    metaplex.identity()

  • Optional freezeAuthority?: undefined | Option<PublicKey>

    The address of the authority that is allowed to freeze token accounts.

    Default Value

    metaplex.identity().publicKey

  • Optional initialSupply?: undefined | SplTokenAmount

    The initial amount of tokens to mint to the new token account.

    Default Value

    0

  • Optional createMintAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the mint account.

  • Optional initializeMintInstructionKey?: undefined | string

    A key to distinguish the instruction that initializes the mint account.

  • Optional createAssociatedTokenAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the associates token account.

  • Optional createTokenAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the token account.

  • Optional initializeTokenInstructionKey?: undefined | string

    A key to distinguish the instruction that initializes the token account.

  • Optional mintTokensInstructionKey?: undefined | string

    A key to distinguish the instruction that mints tokens to the token account.

Generated using TypeDoc