implement transactions.stats endpoint