hopper-associated-token 0.2.0

Hopper-owned associated token account helpers and CPI builders. Thin, no_std instruction builders over Hopper Runtime.
Documentation

hopper-associated-token

Hopper-owned Associated Token Account (ATA) builders. Create, CreateIdempotent, RecoverNested. ATA derivation helpers re-exported from the runtime.

Crates.io Docs.rs

Part of the Hopper framework.

use hopper::prelude::*;

hopper_associated_token::instructions::CreateIdempotent {
    payer,
    associated_token,
    owner,
    mint,
    system_program,
    token_program,
}
.invoke()?;

Works against both legacy SPL Token and Token-2022 mints; pass the token_program account that matches the mint.

Docs: https://docs.rs/crate/hopper-associated-token/0.2.0

Support: solanadevdao.sol / F42ZovBoRJZU4av5MiESVwJWnEx8ZQVFkc1RM29zMxNT.

License: Apache-2.0.