Anomaly and fraud detection in blockchain networks