gill
gill/programs/token/Type aliases

GetCreateTokenInstructionsArgs

type GetCreateTokenInstructionsArgs = TokenInstructionBase<KeyPairSigner> & {
  decimals?: bigint | number;
  freezeAuthority?: Address | TransactionSigner;
  metadata: {
     isMutable: boolean;
     name: string;
     symbol: string;
     uri: string;
  };
  metadataAddress: Address;
  mintAuthority?: TransactionSigner;
  updateAuthority?: TransactionSigner;
};

Type declaration

NameTypeDescription
decimals?bigint | numberThe number of decimal places this token should have Default 9 - the most commonly used decimals value
freezeAuthority?Address | TransactionSignerAuthority address that is able to freeze (and thaw) user owned token accounts. When a user's token account is frozen, they will not be able to transfer their tokens. When not provided, defaults to: null
metadata{ isMutable: boolean; name: string; symbol: string; uri: string; }Optional (but highly recommended) metadata to attach to this token
metadata.isMutablebooleanWhether or not the onchain metadata will be editable after minting
metadata.namestringName of this token
metadata.symbolstringSymbol for this token
metadata.uristringURI pointing to additional metadata for this token. Typically an offchain json file.
metadataAddressAddressMetadata address for this token Examples For TOKEN_PROGRAM_ADDRESS use the getTokenMetadataAddress function: metadataAddress: await getTokenMetadataAddress(mint.address); For TOKEN_2022_PROGRAM_ADDRESS use the mint's address: metadataAddress: mint.address;
mintAuthority?TransactionSignerAuthority address that is allowed to mint new tokens When not provided, defaults to: feePayer
updateAuthority?TransactionSignerAuthority address that is allowed to update the metadata When not provided, defaults to: feePayer

On this page