Skip to content

Onchain Labs: A Smart Account Primitive for Human and AI Agent Research Teams

Phillip Lee, Vladimir Demidov, Manuel Meinert, Nour Karoui, Tom Ploem, María Sanmartín, Lukas Weidener, Kevin Noessler

cs.CR

Abstract

Decentralized science proposes to organize research on public blockchains, so that anyone can fund a project, inspect the rules that govern its assets, and verify its history. Such a project needs an account that can hold assets, act on its behalf and pass intact to new owners. No existing account type combines these with a verifiable link to the project's offchain data, and none gives the artificial intelligence (AI) agents that increasingly carry out research a scoped, revocable and attributable place in a project. We present the Onchain Lab, a smart account bound to a non-fungible token (NFT). Its address is the project's permanent identity, and its controller is the NFT's current owner. Each Lab is an ERC-6551 token-bound account, an ERC-4337 smart account and an ERC-7579 modular account whose modules install only under ERC-7484 attestation. A registry anchors offchain data identities to the account through co-attestation by two independent parties. An onchain role system admits humans and AI agents to a Lab's team. Agents join through an OAuth 2.1 and Model Context Protocol flow that ends in an onchain role grant, their writes are attributed to them, and they pay from owner-funded budgets. We follow one handover of a project between two teams to show what a transfer changes: control of the account moves with the NFT, the data link persists, and an agent's access ends when the person who granted it loses authority. The account contracts were audited and have been live on Base mainnet since June 2026. We describe the design, the security model and the deployed system, and compare its gas cost with two widely used account systems.

Create a lesson

Metadata

Categories
cs.CR, cs.AI, cs.DC
Comments
27 pages, 3 figures, 9 tables. Source code: https://github.com/moleculeprotocol/onchainlabs