ETX2Vec: a fraud detection algorithm for ethereum based on temporal biased random walk strategy

J Jiarong Lu B Bin Liao Y Yi Liu L Lei Zhong

Abstract

Abstract Against the complex characteristics of the Ethereum transaction network and the limitations of existing graph embedding methods based on random walks, which fail to effectively capture transaction temporal dynamics and the flow of funds, we propose a fraud detection algorithm for Ethereum, ETX2Vec (Ethereum Transactions (TX) to Vector), which improves upon transaction subgraph construction and random walk strategies. First, in terms of transaction subgraph construction, we extract the first-order predecessor and successor neighboring nodes of the target node to reconstruct the transaction subgraph, enabling the random walk to effectively capture the complete flow of funds. Second, in the design of the random walk strategy, we introduce two key improvements: (1) the next node is selected based on the non-decreasing principle of transaction timestamps, effectively capturing the temporal dynamics of transactions within the network, and (2) a biased random walk strategy is designed based on both transaction timestamps and amounts, with a parameter $$\alpha$$ introduced to control the weighting of these factors when calculating transition probabilities. Experimental results show that ETX2Vec achieves an average performance of 96.04% in downstream node classification tasks, outperforming the best model in similar studies by 3.74%, and even surpassing neural network models such as GAT and GCN. This demonstrates that ETX2Vec is more effective at understanding and processing the Ethereum transaction network, leading to the learning of high-quality node embedding vectors.

Article Details

Volume / Issue Vol. 16, Issue 1
Published April 09, 2026
ISSN 2045-2322
Publisher Nature Portfolio

Journal Info

Scientific Reports

Nature Portfolio

ISSN: 2045-2322 Open Access Life Sciences

Authors (4)

J

Jiarong Lu

B

Bin Liao

Y

Yi Liu

L

Lei Zhong