Atropyle Docs

Docs / Error codes

Reference · 38 codes

Error codes

Every error that the Atropyle SDK, CLI and MCP server report has a code, a message and a hint. The JSON output links to its entry here with docsUrl.

The vault said no

The contracts refused the call. Nothing was sent, and nothing moved.

NOT_OWNER

Only the vault owner can do this.

Sign with the owner wallet shown by atropyle status.

NOT_GUARDIAN

Only a guardian of this vault can do this.

Check the guardian list with atropyle status <vault>.

ALREADY_RELEASED

The vault has already released its assets.

Only distribute still works after release.

DRILL_EXPIRED

This Drill vault has expired.

Drill vaults live 7 days. Create a new Drill to practise again.

INVALID_HEIRS

The heir list breaks the vault rules.

1 to 5 distinct heirs, none is the owner or the vault itself, each share above 0, shares sum to 10000 bps, every asset points to an existing heir.

INVALID_GUARDIANS

The guardian list breaks the vault rules.

At most 5 distinct guardians, none is the owner or the vault itself, k at most the number of guardians, and recovery needs k of at least 1.

INVALID_TIMING

The timing breaks the vault rules.

Period at least 1 day and window at least 3 days (Drill: 60 s each); threshold 1 to 15 periods.

INVALID_ASSETS

The asset list breaks the vault rules.

At most 20 assets; each token is a contract; ERC-20 entries use id 0; no duplicate (token, id); the heir index exists.

INVALID_TARGET

This recovery target is not allowed.

The target cannot be the owner, the vault itself or a guardian.

RECOVERY_DISABLED

Wallet recovery is turned off for this vault.

The owner can turn it on with setGuardians.

UNSUPPORTED_FEE_TOKEN

The factory does not accept this fee token.

Pay with USDT0, USDC or USDG, or create a free Drill.

NOT_VAULT

This address is not a vault created by the Atropyle factory.

Check the address. Only factory vaults are trusted.

BAD_POLICY_OUTPUT

The policy circuit returned a non-canonical state.

This cannot happen with the verified circuit. Run atropyle verify and report it.

INSUFFICIENT_GAS

The transaction gas cannot cover the next capped transfer of the sweep.

Send distribute again with a higher gas limit: before each transfer the vault needs its full cap (up to 500,000 gas) plus a margin.

REENTRANCY

The vault rejected a re-entrant call.

A token tried to call back into the vault. Remove that asset.

ALREADY_INITIALIZED

This vault is already initialized.

Vaults are created only through the factory.

FEE_TRANSFER_FAILED

The creation fee could not be transferred.

Approve the fee token for the factory and keep enough balance, or create a free Drill.

Your wallet

The wallet is on another network or account, or the signature was declined.

WRONG_CHAIN

The wallet or RPC is on a different chain.

Switch to X Layer (chain 196), or pass the right --chain.

WRONG_ACCOUNT

The connected wallet is not the account that must sign this step.

Switch to the account shown in from.

USER_REJECTED

The request was rejected in the wallet.

Nothing was sent. Start again when ready.

The network

Atropyle reads X Layer through more than one RPC, and stops when they fail or disagree.

RPC_RATE_LIMITED

The RPC endpoint is rate limiting requests.

Wait a moment, or pass another endpoint with --rpc.

RPC_UNAVAILABLE

The RPC endpoint did not respond.

Check your connection, or pass another endpoint with --rpc.

RPC_DISAGREEMENT

Two independent RPC operators returned different data for the same block.

Do not trust either answer. Retry later or compare with another endpoint.

QUORUM_UNAVAILABLE

A second independent RPC operator was not reachable for verification.

Retry later, or accept a single operator explicitly with --single-rpc.

The circuit and the deployment

The circuit or the deployed contracts are not the ones this version knows.

POLICY_MISMATCH

The on-chain policy does not match the published source.

Do not use this deployment. Report it as SECURITY.md in the Atropyle repository on GitHub describes.

POLICY_UNAVAILABLE

The policy netlist is not available on this chain.

The local devnet uses a mock CPU without a netlist. Verify on X Layer mainnet, or on a fork devnet from the Atropyle repository.

DEPLOYMENT_MISSING

There is no Atropyle deployment for this chain yet.

Use chain "xlayer" (X Layer mainnet), chain "local" with a devnet started from the Atropyle repository, or pass a Deployment object.

DEPLOYMENT_INVALID

The deployment description is malformed.

Check the file against the deployment JSON format in the Atropyle repository, or drop --deployment to use X Layer mainnet.

What you passed in

A plan file, an address, an option or a link that does not read.

PLAN_INVALID

The plan is invalid.

Fix the listed issues; each has a path and a code.

INVALID_ADDRESS

The value is not a valid address.

Use a 0x address with 40 hex characters and a correct checksum.

INVALID_OPTIONS

An SDK option is invalid.

Check the createAtropyle options against the API reference.

The alert service

The optional email alerts of atropyle.xyz. The vault itself never needs them.

NOT_FOUND

The API has no resource at this path.

Check the path against the API reference.

RATE_LIMITED

The API is rate limiting this client.

Wait for the time in Retry-After, then try again.

UNAUTHORIZED

The request carried missing or wrong credentials.

Only the configured caller can use this endpoint.

FORBIDDEN

The API does not accept requests from this origin.

Call it from a local client or the Atropyle web app.

NOT_READY

The API has no data for this yet.

The first background run has not finished. Wait for Retry-After.

Other

Anything else. The message says what happened.

UNKNOWN

Something unexpected went wrong.

Run again with --verbose and report the output.