Standards code
ERC-8203 reference implementation (Draft): Solidity code and tests for settlement between AI agents
You want to read working code for a settlement standard between AI agents before you trust the text. This repository is the reference implementation of ERC-8203, a Draft in an open pull request (#1614), not merged.
Install
SolidityGet the code
git clone https://github.com/Aboudjem/erc-8203-ref.gitcd erc-8203-refforge installforge buildforge test -vvvWhat it does
- Locks funds with a condition and a binding to the state of the host.
- Releases the funds when the other party submits a valid proof.
- Refunds the first party when a lock expires.
- Reports which condition types and which proof types a contract supports.
- Ships a test suite and a mock proof verifier for the tests.
How it works
- 1.
createLock(): an agent locks funds with a condition. - 2. The work happens off-chain, and the other agent returns a proof that it is complete.
- 3.
settleConditional(): the other party submits the proof, and the funds are released if it is valid. - 4.
refundConditional(): when the lock has expired, the first party gets the funds back.
Limits
- ERC-8203 is a Draft in an open pull request (#1614). It is not merged, and the text can still change.
- The code is not audited. The README says it is not for production use without review.
- The proof verifier in the repository is a mock, written for the tests.
- The code matches one dated revision of the text, from 25 March 2026.
- Good for
- Reading the interface in real Solidity and running its tests with Foundry.
- Not for
- Production use: the code is a reference and is not audited.
Questions
What is the ERC-8203 reference implementation?
It is Solidity code that implements the ERC-8203 interface, with its tests. ERC-8203 is a Draft in an open pull request (#1614). It is not merged.
How do I run the ERC-8203 tests?
Clone the repository, then run forge install, forge build and forge test -vvv. You need Foundry.
Can I use this code in production?
No, not as it is. The README says it is not audited and not for production use without review.
Is the ERC-8203 reference code free?
Yes, it is open source under the MIT license.
Related
- ToolERC-8203 metered billing profile (Draft)A guide to pay-per-call billing on the ERC-8203 draft.
- ToolERC-6960 (Draft)Code for the Dual Layer Token standard, a Draft.
- ToolSolidity style guideA Solidity style guide with lint configs and a skill.
- StandardERC-8203 (Draft)The page of the standard, with its status and my role.