arXiv:2610.23466cs.SIOct 2026

Manuscript Offprint

arXiv:2610.23466

Graphlet-based Decentralized Finance Transaction Method Classification

Célestin Coquidé, Alessio Brini, Natkamon Tovanich

Célestin Coquidé 1^{1}[0000-0001-8546-6587], Alessio Brini 2^{2}[0000-0003-1121-818X], and Natkamon Tovanich 3^{3}[0000-0001-9680-9282]

1^{1} UTINAM Institute, UMR 6213 CNRS, Université Marie et Louis Pasteur, Besançon, France coquide31@gmail.com

2^{2} Duke University, Durham, NC, USA alessio.brini@duke.edu

3^{3} TU Wien, Vienna, Austria natkamon.tovanich@tuwien.ac.at

Abstract. Decentralized Finance (DeFi) transactions involve complex interactions among accounts, smart contracts, and tokens. We investigate whether network topology can identify transaction methods that describe DeFi operations. We extract directed graphlet features to classify the 30 most frequent methods. Our results show that graphlet features complement event log counts in improving classification performance. Using SHapley Additive exPlanations (SHAP), we further derive model explanations that reveal method-specific graphlet structural patterns.

Keywords: Graphlet decomposition, Automated machine learning, Explainable artificial intelligence, Decentralized Finance, Ethereum

1 Introduction

Decentralized Finance (DeFi) provides financial services such as lending, borrowing, and trading without intermediaries through programmable smart contracts. Users interact with DeFi protocols through transactions that invoke methods implemented in smart contracts. Such methods may involve multiple tokens and contracts, while sequences of methods can be composed into more complex strategies [10]. For instance, a transaction calling an aggregator contract may route trades through several decentralized exchange protocols to obtain a more favorable exchange rate.

Transaction methods provide a semantic description of the operations performed, but human-readable labels rely on public contract interfaces, which do not cover all transactions. Inferring transaction methods from observed execution behavior can help identify, inspect, and validate on-chain financial activities, particularly when explicit method information is unavailable or uncertain.

Network representations provide a natural framework for capturing these interactions, with accounts represented as nodes and token transfers as directed edges. In addition, smart contracts emit event logs during execution, providing another observable description of transaction behavior. While event logs capture operations explicitly emitted by contracts during the execution, token transfer networks describe how assets move among participating entities.

Coquidé, Brini, and Tovanich

In many real-world networks, small recurring substructures, commonly referred to as network motifs or graphlets, play important roles in representing the organization and functioning of complex systems [15, 17, 19]. In this study, we investigate whether such structures can be used to characterize and identify DeFi transaction methods. Our hypothesis is that different transaction methods produce distinctive combinations of these structural building blocks.

Our contributions are threefold:

  1. We introduce a topology-based representation of DeFi transactions as directed, attributed multigraphs and extract graphlet-based features enriched with account types, token types, and categories.

  2. We evaluate transaction-method classification on the 30 most frequent methods, comparing graphlet-based features, event log count features, and their combination.

  3. We use SHapley Additive exPlanations (SHAP) to aggregate feature contributions at the graphlet level, revealing interpretable structural patterns associated with different DeFi methods.

Our results show that graphlet topology captures a distinct dimension of DeFi transaction behavior that complements event log information. Our work contributes to the methodology and empirical evidence for characterizing DeFi operations, which is a first step toward understanding and decomposing complex transactions into interpretable structural building blocks of DeFi.

References (24)