---
eip: 8327
label: ERC-8327
title: Directional Transfer Domain Registry
status: Last Call
type: Standards Track
category: ERC
created: 2026-07-05
requires: 165
official: https://eips.ethereum.org/EIPS/eip-8327
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8327.md
canonical: https://eips.huatuo.xyz/eip-8327/
lang: en
tldr: "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."
tags: [compliance, transfer-restrictions, registry, rwa, erc]
---

# ERC-8327: Directional Transfer Domain Registry

> Defines token-agnostic directional transfer-route permissions between opaque domains by asset class

**TL;DR:** 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 return `false`.
- `getRoute(...)` returns `{permitted, effectiveAt, permissionEvidenceHash, revocationEvidenceHash}`.
- `setRoute(...)` and `revokeRoute(...)` 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 `RouteSet` and `RouteRevoked` hold 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](/eip-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:

```solidity
// 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 `bytes32` can 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 `RouteRevoked` can miss lazily effective revocations; compare `effectiveAt` with the current time or call the view.
- It complements, rather than replaces, regulated-token frameworks like [ERC-3643](/eip-3643/) and [ERC-7943](/eip-7943/).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8327
