TL;DR
Knowing how to execute a blockchain transaction is very different from knowing whether you should. NFTBench introduces 510 executable tasks showing that while modern LLM agents are surprisingly skilled at writing smart contract interactions, they regularly stumble when underlying contract states require them to stop or ask the user for clarification. Even when the final blockchain state looks pristine, agents often commit hidden security and permission violations along the way.
What Problem Does This Paper Address?
If you still think of NFTs as static digital receipts for JPEGs (the classic ERC-721 model), the ecosystem has quietly moved on. Modern standards turn NFTs into programmable containers of dynamic rights: tokens can now be rented out temporarily (ERC-4907), locked as non-transferable "soulbound" items (ERC-5192), or act as keys to their own smart-contract wallets called Token-Bound Accounts, or TBAs (ERC-6551).
When you delegate operations to an AI agent, these mechanics make user instructions heavily state-dependent. Imagine telling an agent: "Send NFT #70 to Bob, but keep the 50 USDC inside its wallet for me." If that wallet is unlocked, the agent should withdraw the cash and transfer the NFT. If the wallet is locked, a blind transfer hands Bob your 50 USDC—violating your intent! Here, the right move is to do nothing and stop.
Existing blockchain benchmarks mostly test whether an LLM can translate a prompt into a successful transaction and reach a target final state. They rarely ask whether the agent recognizes an impossible request, pauses to ask a clarifying question before overwriting someone else's rights, or avoids reckless intermediate steps.
Methods
To test true decision-making rather than blind execution, the authors built an interactive evaluation harness running on a deterministic local Ethereum Virtual Machine (EVM) chain, paired with two clever design choices:
- Three-Way Decision Space & Counterfactual Pairs: Agents inspect contract code, query on-chain states, and simulate calls under strict account-signing limits. Every episode must end with an explicit choice: Finish (feasible), Stop (infeasible), or Ask (needs user clarification). To ensure models aren't guessing from text cues, the authors construct certified state-counterfactual pairs: identical user instructions run against initial states that differ by exactly one fact (like a lock flag flipping from
falsetotrue). - Full-Trajectory Rule-Based Grading (No LLM Judge): Instead of asking another LLM if the agent did a good job—or merely checking the final balances—a deterministic grader replays the entire transaction history from block zero. It verifies the ending decision, goal states, signer permissions, and step-by-step invariants (such as ensuring restricted assets never temporarily leave an account).
Datasets
The paper introduces NFTBench, comprising 510 executable tasks (with 213 held out for testing across 15 closed and open-weight LLMs):
- Synthetic Tier (376 tasks): Built from 98 templates spanning 18 task families, including multi-standard interactions, message signing, and injected network/RPC faults. Includes 231 certified state pairs.
- Real-Code Tier (134 tasks): Built by surveying four live chains (Ethereum, Polygon PoS, Base, and BNB Smart Chain) and locally redeploying bytecode from 21 verified, distinct real-world contracts (covering soulbound, lockable, royalty-bearing, and standard tokens).
Key Insights and Ideas
- Agents have an "action bias" when confused: Models are great at executing feasible requests, but terrible at realizing when user intent is unresolved. Instead of asking a simple question, agents routinely charge ahead—for instance, overwriting an active user's rental rights just to fulfill a vague prompt.
- Clean endings hide messy middles: Checking only the final blockchain state creates a dangerous blind spot. Agents frequently grant unauthorized token approvals and revoke them before finishing, or partially execute "all-or-nothing" bundles before stopping.
- Indirect asset control trips models up: Agents struggle much more with Token-Bound Accounts than with simple token locks. Realizing that transferring an NFT implicitly transfers control of a separate wallet's funds requires multi-hop reasoning about rights, not just token balances.
Key Results
Evaluating 15 models across 3,195 episodes (scored via a balanced headline metric $S$ weighting Feasible, Infeasible, and Clarify equally from 0 to 1) revealed sharp divides:
- Overall Leaders:
GPT-6.1 Solled at 0.923, followed closely byOpus 5.5at 0.894. Four models scored below 0.500 (bottoming out at 0.375). - The Clarification Cliff: While 12 of 15 models exceeded 70% accuracy on synthetic feasible tasks, 10 of 15 scored $\le$30% on synthetic clarification tasks. Notably,
Opus 5.5andDeepSeek-V4.1 Flashboth solved 194/213 total tasks, yetOpusbeatDeepSeekby 0.118 on the headline score (0.894 vs. 0.776) largely because it knew when to ask questions (11/13 vs. 6/13). - State Sensitivity: On the 45 test state-counterfactual pairs,
GPT-6.1 Solsolved both sides 93.3% of the time (42/45), whereas three models solved at most 2 pairs. - Grader Catch Rate: Across 3,195 episodes, a traditional final-state grader missed 63 failed episodes (43 involving forbidden approvals). Even an endpoint-diff grader missed 23 failures—and in controlled mutation tests, missed 239 of 254 temporary "approve-then-revoke" violations. Full-trajectory grading caught 100% of them.
Limitations and Future Work
- Local vs. Live Mainnet: Tasks run on locally constructed states; the real-code tier lacks deployed ERC-6551, ERC-4907, and ERC-1155 contracts due to strict source-verification and dependency screening. Testing on forked live mainnet states remains future work.
- Single-Turn Clarification: Episodes end the moment an agent asks a question, relying on a small pool of 13 clarification test tasks. Extending NFTBench to multi-turn conversations would test whether agents ask concise questions and properly adapt once the user replies.
- Single-Run Variance: Each model was evaluated once per task; while cluster bootstrapping estimates task-sampling uncertainty, run-to-run generation variance wasn't measured.
Summary updated