Function create_token_account

Source
pub async fn create_token_account<R: RpcConnection>(
    rpc: &mut R,
    mint: &Pubkey,
    account_keypair: &Keypair,
    owner: &Keypair,
) -> Result<(), BanksClientError>
Expand description

Creates a spl token account and initializes it with the given mint and owner. This function is useful to create token accounts for spl compression and decompression tests.