retrieves chart data from blockchain