ERC-8327 · Last Call · ERC · 2026-07-05
ERC-8327: Directional Transfer Domain Registry
A registry interface that answers one question for any token: is a transfer from domain A to domain B currently allowed for this asset class? Permissions are one-way and can be revoked immediately or after a grace period.
What problem does it solve?
Regulated or permissioned assets often have rules like "assets of this kind may move from jurisdiction X to venue Y, but not back". Today every token or compliance module stores its own version of that table, or depends on a proprietary registry with its own API. Policy gets duplicated, and integrations have to learn each implementation.
ERC-8327 standardizes a narrow, shared lookup. A domain is any opaque bytes32 label (a jurisdiction, a venue, an enterprise network, a game economy, a DAO treasury). An asset class is another opaque bytes32. A route is the triple (source, destination, assetClass). The registry only says whether that route is permitted right now. It deliberately does not say whether a whole transfer can succeed; balances, KYC, freezes and sanctions remain separate checks.
How it works
Core interface ITransferDomainRegistry:
isRoutePermitted(src, dst, assetClass)returns the current answer. It is deterministic for a block and independent of who asks. Unknown routes returnfalse.getRoute(...)returns{permitted, effectiveAt, permissionEvidenceHash, revocationEvidenceHash}.setRoute(...)andrevokeRoute(...)are callable by authorized registrars only. Each requires a non-zero evidence hash, a commitment to off-chain justification the registry never checks. Revoking an unknown or already-revoked route is allowed, so emergency closures never fail for that reason.isRoutePermittedBatch(...)checks many routes at once.- Events
RouteSetandRouteRevokedhold the full history.
Rules: routes are directional (A→B says nothing about B→A) and asset-class scoped (A→B for class C says nothing about class D).
Optional IGracefulRouteRevocation: a registrar can initiateRevocation, which sets a future effectiveAt, then cancelRevocation before that time, or anyone can finalizeRevocation afterwards. Effectiveness is lazy: once effectiveAt passes, isRoutePermitted returns false even if nobody has finalized yet.
The registry must support ERC-165 for both interfaces.
Sample code
A token hook enforcing the route in the same transaction as the transfer. How addresses map to domains is up to the application:
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;
interface ITransferDomainRegistry {
function isRoutePermitted(bytes32 src, bytes32 dst, bytes32 assetClass)
external view returns (bool);
}
abstract contract RouteGated {
ITransferDomainRegistry public immutable routes;
bytes32 public immutable assetClass;
constructor(ITransferDomainRegistry r, bytes32 cls) {
routes = r;
assetClass = cls;
}
/// Application-defined: resolve an account to its domain.
function domainOf(address account) public view virtual returns (bytes32);
function _checkRoute(address from, address to) internal view {
require(
routes.isRoutePermitted(domainOf(from), domainOf(to), assetClass),
"route not permitted"
);
// balance, identity, freeze and sanctions checks still apply separately
}
}
Things to know
- Status: Last Call (deadline 2026-10-19 in the spec). Changes are unlikely but still possible until it is final.
- The registry is advisory. Nothing stops a token that never queries it. Seeing ERC-165 support does not prove enforcement, correct data or good governance.
- Domain and asset-class identifiers have no global meaning. The same
bytes32can mean different things in different registries, so consumers must pick a registry and its documented namespace. - Check permission on-chain inside the transfer; an off-chain check can go stale before execution.
- Indexers that only watch
RouteRevokedcan miss lazily effective revocations; compareeffectiveAtwith the current time or call the view. - It complements, rather than replaces, regulated-token frameworks like ERC-3643 and ERC-7943.