SKIP TO CONTENT

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

Solidity

Get the code

git clone https://github.com/Aboudjem/erc-8203-ref.git
cd erc-8203-ref
forge install
forge build
forge test -vvv

What 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. 1. createLock(): an agent locks funds with a condition.
  2. 2. The work happens off-chain, and the other agent returns a proof that it is complete.
  3. 3. settleConditional(): the other party submits the proof, and the funds are released if it is valid.
  4. 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.