An ABI-based Classification Approach for Ethereum Smart Contracts
Authors:
- 1 October 2021
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 99-104
Abstract
Due to the rapid increasing of smart contracts in Ethereum, retrieving the related smart contracts has become an important issue. A key step of recognizing the related smart contracts is to classify them. Nowadays most of the classification methods of smart contracts are based on source code or bytecode analysis. However, as the interface of a smart contract, ABI has key information about the smart contract's function and behavior. Aiming to find out the effect of ABI on the classification of smart contracts, we propose an automatic classification method that utilize popular text classification method on ABI granularity. Our experiments are based on basic machine learning algorithms - SVM, XGBoost, Stacking and Bagging, which take TF-IDF vectors of ABIs as input, and the results indicate that ABI-based smart contracts classification is an effective approach. Compared with source code-based classification method, the MCC score of our method increased by more than 0.1 on average.Keywords
Funding Information
- National Natural Science Foundation of China (U19A2066)
This publication has 11 references indexed in Scilit:
- Smart Contract Classification With a Bi-LSTM Based ApproachIEEE Access, 2020
- Interactive Attention Networks for Aspect-Level Sentiment Classification2017
- A Survey of Attacks on Ethereum Smart Contracts (SoK)2017
- Making Smart Contracts Smarter2016
- Chinese comments sentiment classification based on word2vec and SVMperfExpert Systems with Applications, 2015
- Gaussian LDA for Topic Models with Word Embeddings2015
- Text Classification by Augmenting Bag of Words (BOW) Representation with Co-occurrence FeatureIOSR Journal of Computer Engineering, 2014
- A Survey of Text Classification Algorithms2012
- Understanding inverse document frequency: on theoretical arguments for IDFJournal of Documentation, 2004
- Long Short-Term MemoryNeural Computation, 1997