Tokenization of real-world assets (RWA) is the transfer of ownership rights to real estate, debt instruments, or commodities into blockchain tokens. We've encountered situations where teams spent half a year on development, only to find their smart contracts failed compliance due to lack of on-chain KYC. This article breaks down the architecture of RWA platforms that work in production and pass audits successfully. Our team has over 10 years of blockchain development experience, more than 50 projects in DeFi and tokenization, and has been on the market for over 5 years. We design systems where legal constraints dictate technical solutions, not the other way around.
Asset Classes and Their Specifics
Each type of RWA requires a unique approach to tokenization, verification, and compliance.
Debt instruments (Treasury bills, corporate bonds, loans). The most active segment: BlackRock BUIDL ($500M+), Ondo Finance (USDY, OUSG), Maple Finance. The asset is fixed income. The token represents a right to periodic payments and repayment of principal. Key questions: how to transfer the right to payments on-chain, how to ensure KYC/AML (Reg D/S for the US, AIFMD for Europe).
Real estate. The most complex class. Ownership is regulated by national land laws and registered in state registries. Full tokenization (owner change = on-chain transaction) is possible only in a limited number of jurisdictions (UAE is starting, some US states are experimenting). The practical approach is an SPV (Special Purpose Vehicle): the company owns the real estate, tokens represent shares in the company.
Commodities and physical assets (gold, oil, commodities). The asset is held by a licensed custodian; the token represents a right to physical delivery or cash settlement. Examples: Paxos Gold (PAXG), Tether Gold (XAUT).
Shares of private companies. Equity tokenization is the most regulatorily sensitive segment in most jurisdictions.
How to Ensure Compliance in RWA Tokens?
The key element is the ERC-3643 standard (T-REX Protocol), developed by Tokeny. It includes an Identity Registry, Compliance Contract, and Token Contract. Unlike a regular ERC-20, here each transfer checks both parties: on-chain identity verification, jurisdiction, accredited investor status.
// ERC-3643 Token with compliance hook
contract AssetToken is ERC3643 {
IIdentityRegistry public identityRegistry;
ICompliance public compliance;
function transfer(address to, uint256 amount) public override returns (bool) {
// Check identity of both parties
require(identityRegistry.isVerified(msg.sender), "Sender not verified");
require(identityRegistry.isVerified(to), "Recipient not verified");
// Compliance check (jurisdiction limits, caps, lock-up periods)
require(compliance.canTransfer(msg.sender, to, amount), "Transfer not compliant");
return super.transfer(to, amount);
}
// Force transfer — for court orders and regulatory requirements
function forcedTransfer(address from, address to, uint256 amount)
external onlyAgent returns (bool)
{
_transfer(from, to, amount);
emit ForcedTransfer(from, to, amount);
return true;
}
// Recovery on key loss
function recoveryAddress(address lostWallet, address newWallet, address onchainId)
external onlyAgent
{
require(identityRegistry.contains(lostWallet), "Not registered");
uint256 balance = balanceOf(lostWallet);
_transfer(lostWallet, newWallet, balance);
// Update identity registry
identityRegistry.updateIdentity(lostWallet, newWallet, onchainId);
}
}
The forcedTransfer and recoveryAddress functions are absent in standard ERC-20. They are necessary to comply with real legal requirements: a court may order freezing or forced transfer of assets.
Identity and KYC Layer
In the T-REX architecture, each participant has an on-chain Identity (ONCHAINID — ERC-734/735). This is a smart contract that stores claims — verified assertions about the holder (KYC status, jurisdiction, accredited investor status).
interface IIdentityRegistry {
// Check that an address has passed KYC and can hold tokens of this jurisdiction
function isVerified(address _userAddress) external view returns (bool);
// User's country of residence (from KYC docs)
function investorCountry(address _userAddress) external view returns (uint16);
}
// Compliance: jurisdiction checks
contract JurisdictionCompliance is ICompliance {
mapping(uint16 => bool) public restrictedCountries; // ISO 3166-1 numeric
function canTransfer(address _from, address _to, uint256) external view returns (bool) {
uint16 fromCountry = identityRegistry.investorCountry(_from);
uint16 toCountry = identityRegistry.investorCountry(_to);
return !restrictedCountries[fromCountry] && !restrictedCountries[toCountry];
}
}
Oracle for Pricing and Yield Distribution
For tokens with fixed yield (Treasury bills, bonds) — automatic yield distribution. Use Chainlink for on-chain price of the underlying asset, and an off-chain trigger for yield payments.
contract YieldDistributor {
IERC20 public immutable token;
IERC20 public immutable stablecoin; // USDC
AggregatorV3Interface public priceFeed;
uint256 public lastDistribution;
uint256 public annualYieldBps; // yield in basis points (500 = 5%)
function distributeYield() external {
require(block.timestamp >= lastDistribution + 1 days, "Too soon");
uint256 totalSupply = token.totalSupply();
// Daily yield = annualYield / 365
uint256 dailyYield = (totalSupply * annualYieldBps) / (10000 * 365);
// Stablecoin must be pre-funded from treasury
require(stablecoin.balanceOf(address(this)) >= dailyYield, "Insufficient USDC");
// Distribute via snapshot — all holders at snapshot time
bytes32 snapshotId = _snapshot(); // ERC-20Snapshot
_distributeToSnapshot(snapshotId, dailyYield);
lastDistribution = block.timestamp;
}
}
For efficient distribution to many holders, use a Merkle distribution (one snapshot → Merkle tree → each holder claims individually) instead of push distribution.
Why ERC-3643 Became the Industry Standard?
ERC-3643 is 2x faster to implement than ERC-1400 thanks to its modular architecture. The table below shows key differences:
| Parameter | ERC-1400 | ERC-3643 |
|---|---|---|
| Compliance | Built into contract, monolithic | Separate modules (Identity, Compliance, Token) |
| Gas efficiency | 20% higher due to complex checks | Optimized, fewer storage reads |
| Flexibility | Hard to customize | Modules replaceable via upgrade |
| Real-world adoption | Rarely used | Adopted by Tokeny, Securitize, Polymath |
How to Set Up Yield Distribution for RWA Tokens?
- Deploy the token contract (ERC-3643) with snapshot support (ERC-20Snapshot).
- Deploy YieldDistributor linked to the token and stablecoin.
- Set annualYieldBps according to issuance terms.
- Set up an off-chain job to fund the contract with stablecoin from treasury.
- Enable distributeYield on a schedule (e.g., daily via a keeper).
- Configure Merkle root for claim: each holder calls claim with proof.
SPV and Legal Layer
For most jurisdictions, tokenization of a real asset follows this chain:
Physical asset (real estate, bonds)
↓ transferred to
SPV/LLC (registered company)
↓ company issues
Securities (equity or debt notes)
↓ rights tokenized
On-chain tokens (ERC-3643)
↓ traded on
Regulated marketplace or DeFi with compliance
The smart contract must reflect this structure: in token documents (ERC-1643 document management), store references to legal documents — SPV Operating Agreement, offering prospectus, audit reports.
// ERC-1643: store references to legal documents
function setDocument(bytes32 _name, string calldata _uri, bytes32 _documentHash)
external onlyOwner
{
// _name: "SUBSCRIPTION_AGREEMENT", "OPERATING_AGREEMENT", "AUDIT_REPORT_CURRENT"
// _uri: IPFS CID or HTTPS link
// _documentHash: keccak256 of file for integrity verification
_setDocument(_name, _uri, _documentHash);
}
Secondary Market and Liquidity
One of the main value propositions of RWA tokenization is liquidity for traditionally illiquid assets. However, regulatory restrictions apply:
- Restriction periods: Lock-up after initial offering (typically 6–12 months for Reg D offerings in the US). Implemented via a compliance module with purchase timestamp check.
- Accredited investor only trading: On the secondary market, only verified accredited investors can trade. The compliance hook blocks transfers to unverified addresses.
- ATS (Alternative Trading System): In the US, secondary trading of security tokens requires a licensed ATS. Platforms like tZero and Securitize Markets hold ATS licenses.
For DeFi liquidity (AMM pools with RWA tokens), use compliance-aware AMMs: each swap checks identity and compliance of both parties. Projects like Centrifuge (RWA in MakerDAO) and Ondo Finance integrate RWA into DeFi via special whitelisted pools.
Redemption and Corporate Events
Redemption — token burn; the user receives the underlying asset or cash equivalent. Must be built into the contract with support for:
- Primary redemption from the issuer (through KYC process)
- Secondary redemption via AMM or order book
Corporate events (dividends, stock splits, rights offerings for equity tokens): The smart contract must support mechanics to distribute additional tokens or stablecoins proportionally to holdings on the record date.
Our Process for Building an RWA Platform
We use a step-by-step approach with parallel legal and technical work from the start.
| Stage | Duration | Result |
|---|---|---|
| Legal + architecture | 3–4 weeks | SPV structure, jurisdiction selection, compliance roadmap |
| Smart contracts | 5–8 weeks | ERC-3643 token, identity registry, compliance modules, tests |
| Pricing oracle + yield | 2–3 weeks | Chainlink integration, snapshot distribution |
| KYC onboarding | 2–3 weeks | Integration with Synaps/Fractal, ONCHAINID |
| Marketplace | 4–6 weeks | Secondary trading with compliance |
| Security audit | 4–6 weeks | Security audit + compliance review |
| Regulatory approvals | 4–16 weeks | Depends on jurisdiction |
Total technical development time: 4–6 months. Regulatory process can take 1 to 12 months. We manage risks with sprints and weekly demos.
What's Included in RWA Platform Development
- Documentation: architectural description, smart contract specification, audit guide.
- Source code: smart contracts, deployment scripts, tests.
- Integration with KYC provider and legal layer.
- Testnet deployment, then mainnet.
- Access to private repository and CI/CD pipeline.
- Training for the client's team.
- Guarantee: 6 months of post-launch support.
Over 50 projects with a total tokenized value exceeding $150M. Savings on legal costs up to 50% thanks to automated compliance. Request a consultation — we'll explain how to tokenize your assets with compliance and pass audits.
ERC-3643: Permissioned Token Standard — defines a token with compliance hooks, becoming the industry standard.







