English

Efficacy of Various Large Language Models in Generating Smart Contracts

Software Engineering 2024-11-06 v2 Artificial Intelligence Computation and Language

Abstract

This study analyzes the application of code-generating Large Language Models in the creation of immutable Solidity smart contracts on the Ethereum Blockchain. Other works have previously analyzed Artificial Intelligence code generation abilities. This paper aims to expand this to a larger scope to include programs where security and efficiency are of utmost priority such as smart contracts. The hypothesis leading into the study was that LLMs in general would have difficulty in rigorously implementing security details in the code, which was shown through our results, but surprisingly generally succeeded in many common types of contracts. We also discovered a novel way of generating smart contracts through new prompting strategies.

Keywords

Cite

@article{arxiv.2407.11019,
  title  = {Efficacy of Various Large Language Models in Generating Smart Contracts},
  author = {Siddhartha Chatterjee and Bina Ramamurthy},
  journal= {arXiv preprint arXiv:2407.11019},
  year   = {2024}
}

Comments

18 pages, accepted for presentation at 8th annual Future of Information and Communication Conference

R2 v1 2026-06-28T17:41:48.283Z