Skip to main content

create_ata

Function create_ata 

Source
pub fn create_ata(
    payer: [u8; 32],
    wallet: [u8; 32],
    mint: [u8; 32],
) -> Result<Instruction, SignerError>
Expand description

Create an Associated Token Account instruction.

Creates the ATA for wallet and mint if it doesn’t exist. The payer covers the rent-exempt balance.