Build
Contracts and addresses
On this page
Sei Atlantic-2 testnet, chain id 1328. Unaudited. Not for production.
| Contract | Address | Verification |
|---|---|---|
| BatinPool | 0xc0a0d2E64cB30aFD4128748A34C767fd5CF1598D |
Sourcify exact match |
| Groth16Verifier | 0x47a494a1D490c719A310c5371E2edd199f49eEB0 |
Sourcify match (bytecode matches, metadata hash differs) |
| PoseidonT3 | 0x7E2364aF14A317EdCc107ECbC64C6BeD10A62614 |
Sourcify exact match |
| USDC (Circle, testnet) | 0x4fCF1784B31630811181f670Aea7A7bEF803eaED |
— |
| BatinNames | 0x77d98db7E14250E6E753B40DD2e0614725269687 |
source in the repo; not yet on Sourcify |
- Deployed 27 Nov 2026. Deploy block (start event scans here): 286080094. Pool deploy tx:
0x8d37…0f96. - Circuit: 11 public inputs (
aspRootremoved). Proofs for this pool do not verify on the retired pool, and the other way round. - ASP poster:
0x0D95C73Fb35C8a42b4A812F7E9cc142cB9436D6c(the deployer; testnet approves everything). - Tree depth 20. Caps: 100 SEI or 500 USDC per deposit; 10,000 SEI and 25,000 USDC in the pool.
- A superseded first pool,
0x4C10…c24A, holds 0.15 SEI and 1 USDC of smoke-test change and isn't used.
Retired pool (until 27 Nov 2026)
The pool before this one, 0x5cCd205EED235d74f31A3c350Ece94AF11E07E72 (verifier 0x7dd09F80AF704A475caaDB45cB723C1F944B44F1, deploy block 284163530), used the 12-input circuit with aspRoot. It still exists and still holds whatever was in it. Nothing moved: notes, links and requests made there stay there, and the app no longer shows them.
- Private balance in the old pool: withdraw it with
batin-sdk@0.2.0, which still targets that pool. The site keeps serving its proving files at the old URLs (/circuit/joinsplit-841ccf89f1fb.wasm,/circuit/joinsplit-6138886f088c.zkey). The relayer only serves the new pool, so you pay that withdrawal's gas yourself. - A deposit still waiting for approval there: the depositor can take it back with
refund(id)on the old pool, from the same Sei account. No proof is needed.
Names
BatinNames is a separate contract. A name is 3–16 characters, a letter then letters or digits, and it points at one Batin receive address (ownerPub, viewing key). The first valid viewing-key signature keeps it. That key can later move it. There is no fee and no expiry.
The contract does not store the Sei account that sent the transaction. The testnet sponsor may broadcast the claim and pay the gas; it learns the name and the receive address, which are public anyway, and it cannot spend the notes. Reads are a direct eth_call to Sei. Nothing about the list is stored on a server.
A tag link is the alternative that is not written on Sei. If the same name is listed, the chain wins.
Address: 0x77d98db7E14250E6E753B40DD2e0614725269687. Deploy tx: 0x1e6c…d32a, block 284915289. The testnet sponsor broadcast it. The contract has no owner.
Records: deployments/atlantic-2.json and deployments/atlantic-2-verification.json.
Interface
function shield(Proof proof, TxArgs args, ExtData ext) external payable; // depositor → pending
function approve(uint256[] ids, bytes32[2][] commitments) external; // ASP poster only
function refund(uint256 id) external; // depositor only, while pending
function transact(Proof proof, TxArgs args, ExtData ext) external; // transfer, claim, withdrawal
function isKnownRoot(bytes32 root) external view returns (bool);
function nullifierSpent(bytes32) external view returns (bool);
function deposits(uint256) external view returns (bytes32 commitmentsHash, address depositor, uint256 assetId, uint8 state, uint256 amount);
Events: DepositPending, DepositApproved, DepositRefunded, NewCommitment(commitment, leafIndex, encryptedOutput), NewNullifier, Unshield.
Errors include UnknownRoot, NullifierSpent, DuplicateNullifier, RelayerMismatch, InvalidProof, NotPending, CommitmentsMismatch, CapExceeded, BadCiphertext.
Measured gas (Atlantic-2, 55 gwei)
| Action | Gas | About |
|---|---|---|
Deposit (shield) |
~728k | 0.040 SEI |
USDC approve |
~107k | 0.006 SEI |
ASP approve (one deposit) |
~833k | 0.046 SEI |
| Transfer or claim | ~1.26M | 0.069 SEI |
| Withdrawal | ~1.29M | 0.071 SEI |
Most of the cost is on-chain Poseidon hashing for the tree. Those figures are the live 12-input pool. A local rebuild dropped the second membership proof. In Foundry that changes verifyProof by about 14k gas and does not change the tree. Inlining the hasher was tried and reverted: the pool would have been 26,878 bytes, over the 24,576 limit. The live numbers above stand until a new pool is deployed.
Circuit artifacts served by this site
These are the 17 Nov 2026 keys, matching the pool above. The 27 Nov rebuild (11 public inputs, hashes in packages/circuits/setup/TRANSCRIPT.md) is not served and will not verify against this pool.
| File | SHA-256 |
|---|---|
joinsplit.wasm (3,229,474 B) |
841ccf89f1fb6c11ba32cef35ab14208a98a9470a0904be13dcbacd6ccf27fe3 |
joinsplit_final.zkey (14,763,311 B) |
6138886f088c97ed2c8475799a64462f877446d412a2ae2587eaef88984c0409 |
Source: apps/web/content/docs/contracts.md