ERC-2020 · Stagnant · ERC · 2019-05-10
ERC-2020: E-Money Standard Token
An ERC-20 extension for regulated electronic money issued by banks or e-money institutions, adding compliance checks, holds, clearable transfers, funding and payouts.
What problem does it solve?
Licensed institutions (e-money issuers, banks, central banks) hold client money under strict rules: they must identify clients (KYC), screen transactions (AML) and stay auditable. A plain ERC-20 token lets anyone transfer to anyone at any time, which does not meet those rules, and lacks everyday banking features such as reserving funds or requesting a withdrawal to a bank account.
ERC-2020, the E-Money Standard Token, combines several earlier proposals into one interface so a regulated institution can issue tokenised money with the controls it is legally required to have.
How it works
The token is an ERC-20 that also implements four companion standards:
| Feature | Standard | What it adds |
|---|---|---|
| Holds | ERC-1996 | Lock an amount for a payee, resolved by a notary (escrow-like), with expiry |
| Clearable transfers | ERC-2018 | Transfers are ordered, cleared off-chain, then executed or rejected by the operator |
| Funding | ERC-2019 | Ask the issuer to mint tokens against a debit instruction from a bank account |
| Payouts | ERC-2021 | Ask the issuer to burn tokens and pay out to a bank account |
On top of those it adds:
currency(): the backing currency as an ISO 4217 code, e.g."EUR".availableFunds(account): the balance minus amounts on hold.- Compliance checks for every action:
checkTransferAllowed,checkApproveAllowed,checkHoldAllowed,checkOrderTransferAllowed,checkOrderFundAllowed,checkOrderPayoutAllowed, plus checks for authorising operators. Each returns a status byte in the style of ERC-1066:0x11(Allowed) or0x10(Disallowed), or a more specific issuer code.
The key rule: each action must call its check and revert unless the result is Allowed. Wallets can call the same checks beforehand to warn the user.
Sample code
A wallet checking a transfer before submitting it (ethers v6):
import { Contract } from "ethers";
const abi = [
"function currency() view returns (string)",
"function availableFunds(address) view returns (uint256)",
"function checkTransferAllowed(address from, address to, uint256 value) view returns (bytes1)",
"function transfer(address to, uint256 value) returns (bool)",
];
const emt = new Contract(tokenAddress, abi, signer);
const status = await emt.checkTransferAllowed(await signer.getAddress(), to, amount);
if (status !== "0x11") throw new Error(`transfer not allowed, status ${status}`);
await emt.transfer(to, amount);
How an implementation enforces the check (Solidity sketch):
function transfer(address to, uint256 value) public override returns (bool) {
require(checkTransferAllowed(msg.sender, to, value) == 0x11, "not allowed");
return super.transfer(to, value);
}
Things to know
- Status: Stagnant, as are the companion ERCs it builds on.
- The spec's interface uses the old Solidity
bytetype; modern code usesbytes1. - Compliance logic (who is allowed) lives with the issuer; the standard only defines how to ask and how to enforce the answer.
- It describes a design aimed at licensed issuers, not general stablecoins; legal and regulatory requirements vary by jurisdiction and are outside what the standard can settle.
- For permissioned security tokens, see the related ERC-3643.