gill
gill/programs/token/Type aliases

Token

type Token = {
  amount: bigint;
  closeAuthority: Option<Address>;
  delegate: Option<Address>;
  delegatedAmount: bigint;
  extensions: Option<Extension[]>;
  isNative: Option<bigint>;
  mint: Address;
  owner: Address;
  state: AccountState;
};

Properties

amount

amount: bigint;

The amount of tokens this account holds.


closeAuthority

closeAuthority: Option<Address>;

Optional authority to close the account.


delegate

delegate: Option<Address>;

If delegate is Some then delegated_amount represents the amount authorized by the delegate.


delegatedAmount

delegatedAmount: bigint;

The amount delegated.


extensions

extensions: Option<Extension[]>;

The extensions activated on the token account.


isNative

isNative: Option<bigint>;

If is_native.is_some, this is a native token, and the value logs the rent-exempt reserve. An Account is required to be rent-exempt, so the value is used by the Processor to ensure that wrapped SOL accounts do not drop below this threshold.


mint

mint: Address;

The mint associated with this account.


owner

owner: Address;

The owner of this account.


state

state: AccountState;

The account's state.

On this page