---
eip: 7518
label: ERC-7518
title: Dynamic Compliant Interop Security Token
status: Review
type: Standards Track
category: ERC
created: 2023-09-14
requires: 165, 712, 1155, 1271, 5267
official: https://eips.ethereum.org/EIPS/eip-7518
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7518.md
canonical: https://eips.huatuo.xyz/eip-7518/
lang: en
tldr: A security-token standard built on ERC-1155 where each token ID is a partition (share class, offering, property floor) with its own compliance rules, plus locks, freezes, forced transfers, payouts and signed compliance vouchers.
tags: [security-token, rwa, compliance, erc1155, partitions]
---

# ERC-7518: Dynamic Compliant Interop Security Token

> Security token framework with semi-fungible partitions for dynamic regulatory compliance management and cross-chain interoperability

**TL;DR:** A security-token standard built on ERC-1155 where each token ID is a partition (share class, offering, property floor) with its own compliance rules, plus locks, freezes, forced transfers, payouts and signed compliance vouchers.

## What problem does it solve?

Tokenised securities (shares, fund units, real estate) must obey rules that ordinary tokens ignore: only eligible investors may hold them, some units are locked for a holding period, regulators may require an account to be frozen, and lost keys must be recoverable. Often one asset also has several classes that must stay separate for a while, for example the same security sold under US "Reg D" and non-US "Reg S" offerings.

ERC-7518 packages these needs into one interface on top of [ERC-1155](/eip-1155/), so existing 1155 wallets and marketplaces can still see balances, while issuers get the compliance controls they need.

## How it works

**Partitions.** Each `tokenId` is a partition with its own rights and transfer rules. Units within a partition are fungible fractions; different partitions are not interchangeable until the issuer merges them (for example by letting holders swap old partition tokens for a new joint one).

**Compliance core (`IERC7518`):**

- `canTransfer(from, to, id, amount, data)` must reject frozen addresses, restricted IDs and amounts above the transferable balance; it may consult external compliance services. `safeTransferFrom` must call it.
- `lockTokens` / `unlockToken` and `lockedBalanceOf` / `transferableBalance` handle vesting and holding periods (`transferable = balance - locked`).
- `restrictTransfer(id)` / `removeRestriction(id)` pause a whole partition.
- `freezeAddress` / `unFreeze` block an account from transfers and payouts.
- `forceTransfer` lets an authorised agent move tokens out of a frozen account, e.g. for key recovery or AML enforcement.
- `payout` / `batchPayout` distribute dividends, interest or rent.

**Optional extensions**, each detectable through [ERC-165](/eip-165/):

- *Asset profile*: a stable `assetId`, current `policyId`, and a profile document whose `keccak256` hash is on-chain; `identifier()` can return ISIN, CUSIP and similar codes.
- *Roles*: discoverable `REGISTRAR`, `TRANSFER_AGENT`, `PAYING_AGENT`, `COMPLIANCE_AUTHORITY` holders.
- *Compliance authorization*: an [EIP-712](/eip-712/) signed voucher that approves exactly one transfer (bound to operator, parties, IDs, amounts, nonce and a validity window). It travels in the ERC-1155 `data` field behind the magic prefix `0x7518a001` and is marked consumed before the receiver hook runs. Contract signers are checked with [ERC-1271](/eip-1271/).
- *Action records*: on-chain announcements of corporate actions such as splits, tenders or votes, with a status lifecycle.

A wrapper interface lets ERC-20, ERC-721 or other ERC-1155 tokens be locked and represented as partitions.

## Sample code

A compliant transfer: check first, then send (ethers v6):

```ts
import { Contract, Wallet, JsonRpcProvider } from "ethers";

const abi = [
  "function canTransfer(address from, address to, uint256 id, uint256 amount, bytes data) view returns (bool)",
  "function transferableBalance(address account, uint256 id) view returns (uint256)",
  "function safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data)",
  "function supportsInterface(bytes4) view returns (bool)",
];

const provider = new JsonRpcProvider(process.env.RPC_URL);
const investor = new Wallet(process.env.INVESTOR_KEY!, provider);
const token = new Contract(process.env.SECURITY_TOKEN!, abi, investor);

if (!(await token.supportsInterface("0x5a264a5d"))) throw new Error("not ERC-7518");

const partition = 1n; // e.g. the Reg S class
const amount = 100n;
console.log("transferable:", await token.transferableBalance(investor.address, partition));

if (await token.canTransfer(investor.address, recipient, partition, amount, "0x")) {
  await (await token.safeTransferFrom(investor.address, recipient, partition, amount, "0x")).wait();
} else {
  console.log("blocked by compliance rules");
}
```

## Things to know

- **Status: Review.** The optional extensions in particular may still change.
- Freezing, forced transfer, locking and payouts are powerful admin functions. The spec leaves access control to the implementer but stresses it must be strict, and signer keys for vouchers must be protected and revocable.
- `canTransfer` should not change state, but a reverted transfer leaves no on-chain event, so implementations are encouraged to expose rejection reasons through simulation or logs.
- A related approach to permissioned tokens is [ERC-3643](/eip-3643/) (ERC-20 based, with on-chain identity). The authors considered [ERC-3525](/eip-3525/) as a base but chose ERC-1155 for efficiency.
- Whether a token is a security and which rules apply is a legal question; the standard only provides the hooks.


---

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