From the archive: this article was published in June 2023 and is kept for reference. Tools, versions and figures may have changed since.
On this page 15
AI and blockchain are often pitched together as if each fixes the other’s weaknesses. The reality is narrower. The two technologies do different things: AI makes predictions and generates content from data, and is probabilistic; a blockchain keeps a shared record that is hard to change, and is deterministic. They combine well in a handful of specific places, and poorly in many others.
This post sorts the useful combinations from the hype, including the NFT use cases that still hold up.
AI applied to blockchain data
The most mature pairing runs in one direction: AI analyzing blockchain activity.
Fraud and risk detection
Public blockchains publish every transaction, which makes them a large, open dataset. Exchanges, compliance teams and analytics firms use machine learning to cluster addresses, flag patterns linked to scams or laundering, and score the risk of incoming funds. This works because the data is complete and public; it is the same pattern detection banks run on card transactions.
The limits are familiar from other fraud work: false positives, models that lag behind new scam patterns, and privacy questions when addresses are linked to people.
Smart contract auditing
Smart contracts are hard to change once deployed and often hold funds, so bugs are expensive. AI tools can help reviewers by flagging suspicious patterns, explaining unfamiliar code and suggesting test cases. They work best alongside static analysis, fuzzing and human auditors, not instead of them. Language models in particular can miss subtle issues or report bugs that are not there.
We cover this in depth in fortifying smart contract security with AI and AI, smart contracts and quantum-safe security.
Developer and user tooling
Coding assistants now write and explain Solidity, and wallets and explorers use language models to describe what a transaction will do before a user signs. Both are useful, with the same caveat: the explanation is a model’s reading of the code, not a guarantee.
Blockchain applied to AI
The other direction, using a ledger to make AI more trustworthy, is less mature but has some real uses.
Provenance of data and models
A ledger can record a fingerprint (hash) of a dataset, a model file or a piece of generated content, with a timestamp and the identity of whoever recorded it. Later, anyone can check that a file matches the registered version.
This proves a file has not changed since it was recorded. It does not prove the data was accurate, legally sourced or free of bias when it was recorded. Most content provenance work today, such as the C2PA content credentials standard, relies on signed metadata rather than a blockchain; a ledger is an option for anchoring those records, not a requirement.
Payments for AI agents
As AI agents start buying services on a user’s behalf (API calls, data, compute), they need a way to pay small amounts quickly. Stablecoins on low-fee networks are one option, since an agent can hold a wallet with spending limits set by a smart contract. Payment protocols aimed at agents are emerging, but this is early, and the security questions are serious: an agent with a wallet is an agent that can be tricked into spending.
For the payment side, see stablecoins and tokenization in fintech. For the agent side, see essential guardrails for production AI agents.
Shared data and compute markets
Several projects use tokens to reward people for contributing data, compute or model outputs to a shared network. The idea addresses a real problem, since data owners want to share without giving up control, but in most cases the hard parts (data quality, privacy and evaluating model output) happen off-chain. Judge each project on whether the token is necessary to the mechanism.
AI and NFTs
The NFT market has cooled sharply since its 2021 peak, but a few AI uses have outlasted the hype. For the basics, see what NFTs are.
Generative art and media
Generative art, where an algorithm produces each piece in a collection, was one of the first NFT categories, and AI image models extended it. The open issue is rights. In the United States, the Copyright Office has said that works need human authorship to be protected, so purely AI-generated images may carry no copyright for the buyer to rely on. Projects should state clearly what rights an NFT conveys.
Authenticity and duplicate detection
An NFT proves which token a wallet owns, not that the image it points to is original. Copies of popular collections minted under new contracts are common. Image similarity models can flag likely copies so marketplaces can review them. This is a sound use of AI: a classifier that helps people decide, with a human making the call.
Marketplace analytics and recommendations
Recommendation models suggest collections based on what a user owns and browses, as on any marketplace. Analytics models also help detect wash trading, where the same party trades with itself to inflate volume, a well-documented problem on NFT platforms.
What did not hold up
Earlier claims that AI would “verify the digital signature of an NFT” confused two things. Ownership and signatures are verified by cryptography, deterministically; AI adds nothing there. Similarly, AI-written smart contracts for NFT sales still need the same testing and audits as any other contract.
Where the combination falls short
- Training and running models on-chain is impractical. Blockchains are slow and expensive compared with GPUs, so models run off-chain and at most post results or proofs.
- AI outputs in smart contracts inherit the oracle problem: the contract trusts whoever reports the model’s answer. Cryptographic proofs of model inference (zkML) are an active research area but costly for anything beyond small models.
- “Decentralized AI” branding often describes a token attached to a conventional service. Ask what the ledger does that a database would not.
A practical test
When a project combines the two, ask:
- Does the blockchain record something several parties need to verify independently?
- Does the AI component make a decision that a person or a deterministic rule checks before money moves?
- Would the product still work, more simply, without one of them?
If the third answer is yes, drop the extra part. For broader patterns, see blockchain innovation patterns. If you are building in this space, Lightrains offers AI, ML and computer vision development and blockchain development.
This article originally appeared on lightrains.com
Leave a comment
To make a comment, please send an e-mail using the button below. Your e-mail address won't be shared and will be deleted from our records after the comment is published. If you don't want your real name to be credited alongside your comment, please specify the name you would like to use. If you would like your name to link to a specific URL, please share that as well. Thank you.
Comment via email