Developers
Read any vault, simulate its rules, prepare transactions for a wallet to sign, or prove the circuit yourself. Nothing in these tools holds a key.
Version 0.2.0 of each package is on npm.
Install
SDK
TypeScript for Node.js and browsers: read, simulate, verify and prepare. It never signs.
npm install @atropyle/sdk viemProve the circuit
Checks all 67,108,864 cases of the policy against the chain, then asks the X Layer processor's own step() 64 random cases on every node operator (P9). It prints the seed; --p9-seed runs the same cases again.
npx -y atropyle@0.2.0 verifyMCP server
For any agent that speaks MCP over stdio. The first line adds it to Claude Code, the second runs it for any other client. It prepares transactions; your wallet signs them.
claude mcp add atropyle -- npx -y @atropyle/mcp@0.2.0npx -y @atropyle/mcp@0.2.0Claude Code plugin
The two Agent Skills and the MCP server in one install.
/plugin marketplace add duongnq2798/atropyle /plugin install atropyle@atropyleAgent Skills
The estate-planning and guardian skills, for other agents.
npx skills add duongnq2798/atropyle
Read a vault in ten lines
Reads the state, prepares a check-in and prints a link the owner opens in their own wallet.
import { createAtropyle } from '@atropyle/sdk';
const atro = createAtropyle({ chain: 'xlayer' });
const vault = atro.vault('0xYourVaultAddress');
const status = await vault.status();
console.log(status.state, status.pending);
const tx = await vault.prepare({ type: 'checkIn' }, { as: '0xOwnerAddress' });
console.log(atro.handoff.link(tx)); // the owner opens it and signs in their own walletContracts
This site reads these addresses on X Layer.
- Factory0x7eCbBECA8F90A868A12aF48B766264bf9c87a651View on OKLink (opens in a new tab)
- Vault implementation0x96Ea6249e14F5F62ab87A5D76800B1C564c4d881View on OKLink (opens in a new tab)
- TapeOut processor0x523db7bacD35a6EFc384367D66AEC1CBA07a4A05View on OKLink (opens in a new tab)
- Treasury0x990221559B7EB3516204dc73535d6581391cFAa4View on OKLink (opens in a new tab)
- Fee token 10x779Ded0c9e1022225f8E0630b35a9b54bE713736View on OKLink (opens in a new tab)
- Fee token 20xB6CEceAB302E2E4948951eE7843FC24E92933061View on OKLink (opens in a new tab)
- Fee token 30x4ae46a509F6b1D9056937BA4500cb143933D2dc8View on OKLink (opens in a new tab)
- TapeOut factory0x1f09DAeFA827f02CBb40967cc91b259763760761View on OKLink (opens in a new tab)
The vaults’ rules are circuit 3 on the processor above.
Circuits anyone can reuse
Beside the Atropyle policy, the same X Layer processor holds two small circuits any contract can call by id. Each netlist is frozen: its keccak below is what the proof checks. These are X Layer mainnet facts.
The X Layer processor that holds them0x523db7bacD35a6EFc384367D66AEC1CBA07a4A05
- Atropyle policyCircuit 3Netlist keccak
0x70167214a030d2024e5b31d7be5f5664e5abad2d7d5323443abed76b776c3864 - KofN5: are at least k of 5 inputs set?Circuit 1Netlist keccak
0x43f4044ef39fda26a6769f0c1383e431fcc7f8235c8a2b7cb8c59c081ec8a661 - Ge4: is a at least b, for two 4-bit numbers?Circuit 2Netlist keccak
0x19adccef7c7b0e6661f36ff9dde8a54d662ce21d5b86207b8e8e2a9005f23a32
Links
- Source code on GitHub (opens in a new tab)
- Documentation (opens in a new tab)
- @atropyle/sdk on npm (opens in a new tab)
- atropyle on npm (opens in a new tab)
- @atropyle/mcp on npm (opens in a new tab)
- @atropyle/circuits on npm (opens in a new tab)
- License (opens in a new tab)
This site is version 0.2.0.