The NFT ecosystem represents an interconnected, decentralized environment that encompasses the creation, distribution, and trading of Non-Fungible Tokens (NFTs), where key actors, such as marketplaces, sellers, and buyers, utilize smart contracts to facilitate secure, transparent, and trustless transactions. Scam tokens are deliberately created to mislead users and facilitate financial exploitation, posing significant risks in the NFT ecosystem. Prior work has explored the NFT ecosystem from various perspectives, including security challenges, actor behaviors, and risks from scams and wash trading, leaving a gap in understanding the semantics and interactions of smart contracts during transactions, and how the risks associated with scam tokens manifest in relation to the semantics and interactions of contracts. To bridge this gap, we conducted a large-scale empirical study on smart contract semantics and interactions in the NFT ecosystem, using a curated dataset of nearly 100 million transactions across 20 million blocks on Ethereum. We observe a limited semantic diversity among smart contracts in the NFT ecosystem, dominated by proxy, token, and DeFi contracts. Marketplace and proxy registry contracts are the most frequently involved in smart contract interactions during transactions, engaging with a broad spectrum of contracts in the ecosystem. Token contracts exhibit bytecode-level diversity, whereas scam tokens exhibit bytecode convergence. Certain interaction patterns between smart contracts are common to both risky and non-risky transactions, while others are predominantly associated with risky transactions. Based on our findings, we provide recommendations to mitigate risks in the blockchain ecosystem, and outline future research directions.
翻译:NFT生态系统代表了一个相互关联、去中心化的环境,涵盖了非同质化代币(NFT)的创建、分发和交易,其中关键参与者(如市场平台、卖家和买家)利用智能合约促进安全、透明且无需信任的交易。欺诈代币被蓄意创建以误导用户并促成金融剥削,在NFT生态系统中构成重大风险。先前的研究已从多个角度探讨了NFT生态系统,包括安全挑战、参与者行为以及欺诈和洗售交易带来的风险,但在理解交易过程中智能合约的语义与交互、以及欺诈代币相关风险如何通过合约语义与交互显现方面仍存在空白。为填补这一空白,我们对NFT生态系统中的智能合约语义与交互进行了大规模实证研究,使用了以太坊上2000万个区块中近1亿笔交易的精选数据集。我们观察到NFT生态系统中智能合约的语义多样性有限,主要由代理合约、代币合约和DeFi合约主导。市场平台合约和代理注册合约在交易过程中最频繁地参与智能合约交互,与生态系统中的各类合约广泛互动。代币合约在字节码层面表现出多样性,而欺诈代币则呈现字节码趋同性。某些智能合约间的交互模式在风险交易和非风险交易中均常见,而其他模式则主要与风险交易相关。基于研究结果,我们提出了降低区块链生态系统风险的建议,并展望了未来的研究方向。