Type alias CreateTokenIfMissingBuilderParams

CreateTokenIfMissingBuilderParams: {
    mint: PublicKey;
    owner?: undefined | PublicKey;
    createAssociatedTokenAccountInstructionKey?: undefined | string;
    createAccountInstructionKey?: undefined | string;
    initializeTokenInstructionKey?: undefined | string;
    token?: undefined | PublicKey | Signer;
    tokenExists?: undefined | boolean;
    tokenVariable?: undefined | string;
}

Type declaration

  • mint: PublicKey

    The address of the mint account associated with the new token account.

  • Optional owner?: undefined | PublicKey

    The address of the owner of the new token account.

    Default Value

    metaplex.identity().publicKey

  • Optional createAssociatedTokenAccountInstructionKey?: undefined | string

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

  • Optional createAccountInstructionKey?: undefined | string

    A key to distinguish the instruction that creates the account.

  • Optional initializeTokenInstructionKey?: undefined | string

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

  • Optional token?: undefined | PublicKey | Signer

    The token account to create if it does not exist. Here, it may be passed as a PublicKey if and only if it already exists.

  • Optional tokenExists?: undefined | boolean

    Whether or not the token account exists.

    Default Value

    true

  • Optional tokenVariable?: undefined | string

    The name of the token variable on the operation that uses this helper token builder.

    Default Value

    "token"

Generated using TypeDoc