SPL Associated Token

get_associated_token_address(wallet_address, token_mint_address, token_program_id=None)

Derives the associated token account address for the given wallet address and token mint.

Parameters:
  • wallet_address (Pubkey) – The address of the wallet that owns the token account.

  • token_mint_address (Pubkey) – The token mint.

  • token_program_id (Pubkey | None) – The token program ID. Defaults to the SPL Token Program.

Returns:

The associated token address

Return type:

Pubkey