const indexService = new IndexService(client);

indexService.getIndexComposition({
    index: 'COIN50',
}).then(async (response) => {
    console.log('Index Composition: ', response);
})

For more information, please visit the INTX TS SDK.