Skip to main content

Module utils

Module utils 

Source
Expand description

Utility functions and default account configurations.

Structs§

TokenDefaultAccounts
Standard pubkeys for compressed token instructions

Functions§

get_associated_token_address
Returns the associated token address for a given owner and mint.
get_associated_token_address_and_bump
Returns the associated token address and bump for a given owner and mint.
get_token_account_balance
Get the token balance from a Light token account.
is_light_token_owner
Check if an account owner is a Light token program.
is_token_account
Check if an account is a Light token account (by checking its owner).