Type alias CreateTokenWithMintInput

CreateTokenWithMintInput: {
    decimals?: number;
    initialSupply?: SplTokenAmount;
    mint?: Signer;
    mintAuthority?: Signer | PublicKey;
    freezeAuthority?: Option<PublicKey>;
    owner?: PublicKey;
    token?: Signer;
}

Type declaration

  • Optional decimals?: number

    The number of decimal points used to define token amounts.

    Default Value

    0

  • Optional initialSupply?: SplTokenAmount

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

    Default Value

    0

  • Optional mint?: Signer

    The address of the new mint account as a Signer.

    Default Value

    Keypair.generate()

  • Optional mintAuthority?: Signer | PublicKey

    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?: Option<PublicKey>

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

    Default Value

    metaplex.identity().publicKey

  • Optional owner?: PublicKey

    The address of the owner of the new token account.

    Default Value

    metaplex.identity().publicKey

  • Optional token?: 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.

Generated using TypeDoc