• Generates a Transaction to create ATA for an array of owners

    Parameters

    • connection: Connection

      Solana client connection

    • payer: PublicKey

      Transaction invoker, should be a signer

    • paramsBatch: AtaParams[]

      Array of Params for an each ATA account: {mint, owner}

    • Optionalcommitment: Commitment

      optional commitment that will be used to fetch Blockhash

    Returns Promise<{ context: Context; hash: Readonly; tx: VersionedTransaction }>

    Unsigned Transaction with create ATA instructions