Function spl_associated_token_account::create_associated_token_account[][src]

pub fn create_associated_token_account(
    funding_address: &Pubkey,
    wallet_address: &Pubkey,
    spl_token_mint_address: &Pubkey
) -> Instruction
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
  7. [] Rent sysvar