ERC-8485 NFT-controlled app runtime standard (NFT Controlled Application Spaces)

Draft · NFTs & multi-token · created 2026-11-04

A standard in which an ERC-721 NFT controls the toll policy of an app's runtime, independent publishers register gateways, users execute via execute(), and tolls are automatically distributed.

Why it is needed

Owning a single NFT does not by itself determine how the application linked to that NFT should be executed or who should be paid. A wallet or app seeking to integrate has no way to know where to find the runtime, how to distinguish the publisher who deployed the app from the NFT owner, how to look up the toll owed per execution and limit a user's payment ceiling, or how to handle existing revenue-split settings when the NFT is transferred. If every project implements these differently, it can lead to confusion over who controls the app, stale settings being approved unchanged, or tolls being confused with app purchase costs or network gas fees.

What to implement

In depth

Three roles: owner, publisher, and user

This standard distinguishes between the Owner (the NFT owner), the Publisher (the entity that registered the gateway), and the User (the user who calls the execution). The NFT owner controls only economic settings such as the toll policy and recipient list, and ERC-721 transfer approval alone does not grant this authority. Administrative rights over the app, token approvals, stored assets, and app state, on the other hand, remain with the publisher. Holding the NFT does not automatically create a general withdrawal path to the app's assets.

Fixed native toll and exact payment

nativeToll is set as an integer denominated in the chain's native asset and remains fixed until the owner raises the revision through an approved configuration change. It is not converted to an external price such as USD, so exchange rate fluctuations do not change the payment amount. When calling execute(), msg.value must exactly equal the sum of toll and appValue; a toll exceeding maxToll or an overpayment reverts without refund.

NFT transfer and revision updates

When actual ownership changes, the collection's transfer integration updates the owner in the economic state, increments the revision, and atomically clears the previous owner's custom recipient list. This processing must complete before any external recipient callback executes. Comparing ownerOf alone, off-chain logs, or a delayed synchronization transaction cannot substitute for this requirement. Even if A transfers to B and then back to A, both changes must increment the revision, and A's prior recipient list is not restored.

Treasury account and replacement authority

The treasury must be an ordinary externally owned account (EOA) with no code, and cannot be the zero address, the Runtime, a gateway, a precompile, or a chain-specific system address. Only the deployment account designated by treasuryAuthority() can replace the treasury via setTreasury(), and this authority is fixed at Runtime creation and never changes for its lifetime. Replacement is prohibited during execution, and before paying out a nonzero amount it is re-verified that the treasury has no code. If this authority is leaked, it becomes a trust dependency that can redirect protocol revenue and redistributed shares elsewhere.

Gateway publication and removal

publish(implementation, initialization, salt) can be called by anyone, and the caller is recorded as the publisher. Each gateway has independent storage and a fixed Runtime/implementation address, and the first execution must occur in a block later than publication. Only the registered publisher can remove their own gateway via remove(), removal is irreversible, and it cannot be revived with the same publisher/salt combination. Removal only blocks execution; it does not move assets or storage.

Eight execution validation steps

Before dispatch, execute() checks all of the following: whether the gateway is registered, that the implementation code exists, the deadline, that the submitted revision matches, that nativeToll is at or below maxToll, that msg.value exactly equals toll + appValue, data and gas resource limits, and that enough gas remains for settlement. Nested or reentrant execute calls are rejected. Even if the NFT is transferred during execution, that request settles against the configuration snapshotted at validation time; only subsequent requests use the new revision.

Native revenue distribution

The toll is split into protocol = floor(toll * protocolBps / 10000) and ownerShare = toll - protocol. If a recipient list exists, the amount is distributed proportionally, with the last recipient receiving the remainder; if no list exists, the owner receives the entire ownerShare. Successful recipient payouts are recorded as Paid, rejected distributions are recorded as Redirected and added to the treasury payout, and the treasury payout is recorded as TreasuryPaid. If the treasury payout fails, the entire request is atomically reverted.

A proposal that has not yet been finalized

This proposal currently has a status of Draft. The details may change or discussion may stall, so the functions and figures described in this article may differ from the final version.

Things to watch out for

Original ERC · ← ERCs