spl_associated_token_account

Function create_associated_token_account

Source
pub fn create_associated_token_account(
    funding_address: &Pubkey,
    wallet_address: &Pubkey,
    token_mint_address: &Pubkey,
) -> Instruction
👎Deprecated since 1.0.5: please use instruction::create_associated_token_account instead
Expand description

Create an associated token account for the given wallet address and token mint

Accounts expected by this instruction:

  1. [writeable,signer] Funding account (must be a system account)
  2. [writeable] Associated token account address to be created
  3. [] Wallet address for the new associated token account
  4. [] The token mint for the new associated token account
  5. [] System program
  6. [] SPL Token program