Skip to main content

Agents and mandates

An agent acts as its own participant under a mandate the chain enforces: allowed calls, spending ceilings, an expiry, and two kill switches the owner controls.

An agent is a participant of kind agent that executes automated organisation tasks (such as scheduled payout funding) from its own Smart Wallet without human sign-off per step. Every action is confined by an on-chain Agent mandate administered by the organisation owner.

This page covers the operational lifecycle, starter mandate, action attribution, and refusal codes. For how the mandate validator enforces limits on chain, see Agent mandate.

What an agent is

Each agent belongs to one organisation and combines three components:

  • Signer. A managed custody key held by the platform that signs the agent's user operations with a 65-byte ECDSA signature.
  • Account. A Smart Wallet deployed with the mandate validator as its sole validator.
  • Mandate owner. The organisation's operations account signing address, which updates or revokes the mandate on the owner's verified request.

An agent's identifier is its participant identifier, so its activity stays cleanly attributed without ever borrowing a human user's key or API key. Only an organisation owner can call agent routes, reads included (other callers receive DALP-199555).

The DALP CLI and local MCP server follow a different model: they act as the signed-in user under that user's own roles (using the CLI with AI agents).

Create and manage an agent

Organisation owners create agents in Organisation participants → Agents or via POST /api/v2/agents with a name (1 to 120 characters), mandate, and wallet verification. The platform provisions the custody key and smart wallet, moving the agent through four statuses:

Status
Meaning
provisioning
Key and smart wallet deployment are in progress.
active
Mandate is live on chain and the agent can act within its limits.
revoked
Mandate was revoked, recording timestamp and kill switch used.
failed
Provisioning did not complete.

Read agents with GET /api/v2/agents and GET /api/v2/agents/{agentId} (including live on-chain mandate limits and current-period spend per asset).

Replace an active agent's mandate in full via Edit mandate or PUT /api/v2/agents/{agentId}/mandate with wallet verification. Replacement drops prior targets and counters and starts a fresh window.

Invalid mandates are refused with DALP-199554, naming the offending entry in data.rule:

data.rule
Problem
Entry named
expiry-not-future
Expiry timestamp is now or in the past.
None
contract-repeated
Same contract listed twice.
target
asset-repeated
Same asset given two ceilings.
asset
function-repeated
Same selector listed twice on one contract.
target, selector
asset-limit-missing
Allows transfer, transferFrom, or approve without an asset ceiling.
target, selector
asset-function-not-allowed
Lists a function other than those three on a metered asset.
asset, selector

The Console runs the same checks inline while editing a mandate.

The starter mandate

The Console pre-fills Create agent from GET /api/v2/agents/mandate-proposal, which drafts a read-only starting point without creating anything:

  • Permits transfer on each denomination asset used by the organisation's coupon (fixed-treasury-yield) or dividend (dividend-yield) features, and claimFor and claimForBatch on each dividend feature contract, up to the module's 32-contract and 16-asset caps.
  • Sets a daily ceiling per asset to the smaller of 1,000 whole units and 10% of the largest recent payout (1,000 whole units if none has run), with zero native value.
  • Sets a gas ceiling for self-paid operations of 0.05 native currency per transaction and 0.25 per period. It applies only when the account pays its own gas, without a paymaster.
  • Sets expiry to 30 days ahead.

The draft lists each payout feature with the treasury it pays from. The Create agent wizard and the Edit mandate page show a dividend feature's treasury under that feature, labelled Treasury the agent tops up. A dividend feature you add with Add contract that the draft does not list shows no treasury line.

Review and tighten the draft targets, ceilings, and expiry before you confirm with wallet verification.

Where payout top-ups go

Before you confirm or replace a mandate, check each Treasury the agent tops up line in Create agent or Edit mandate, and remove the contract of any dividend feature whose treasury you do not recognise. A dividend feature you add with Add contract has no such line, so add one only when you know its treasury.

A mandate cannot restrict transfer recipients on chain, so the platform adds that limit for the Payout funding watcher. The watcher transfers the agent's funds only to the treasury of a dividend feature whose contract the mandate lists. The mandate validator on chain does not run this check.

The platform checks the mandate twice. When the watcher posts a finding for a dividend feature the mandate does not list, it posts a draft with no scheduled transfer. When a scheduled transfer runs and the mandate no longer lists the feature, the platform refuses it as target-not-allowed. While no mandate is in force (no active agent, a revoked mandate, or the kill switch on), the watcher keeps the scheduled transfer, and the platform refuses it when it runs.

A holder of the asset's Governance role sets a dividend feature's treasury when adding the feature, and the feature has no function to change it, so the treasury you check is the one the agent tops up. Removing a dividend feature from the mandate also removes its claimFor and claimForBatch permissions.

The watcher never transfers for a coupon.

Revoke one agent

Select Revoke agent or call POST /api/v2/agents/{agentId}/revocation with a reason (1 to 500 characters) and wallet verification. Revocation immediately blocks platform actions, cancels recent queued actions, and submits on-chain revocation under agent-kill-switch.

Revocation is permanent: editing a revoked agent returns DALP-199553, so create a new agent to issue a fresh mandate. If the call returns DALP-12103, the agent is revoked on the platform but the on-chain revoke may not have landed yet. Call the revocation route again to retry the chain transaction. See Kill switches.

Halt all agents

Select Halt all agents or call PUT /api/v2/agents/kill-switch (read state via GET /api/v2/agents/kill-switch) with a reason (1 to 500 characters) and wallet verification. Turning it on permanently revokes every active agent under organisation-kill-switch, blocks creating or updating agents (DALP-199552), and refuses all actions (organisation-halted). Turning it off re-enables creating new agents without reviving revoked ones.

If enabling the halt returns DALP-12103, inspect GET /api/v2/agents/kill-switch and then list agents. Call POST /api/v2/agents/{agentId}/revocation for any revoked agent with mandate.revokedAt: null and for any agent still active. Re-sending the halt skips already-revoked agents.

How agent actions are checked and attributed

Every automated feature acting for an agent routes through one execution pipeline naming the agent, calls, origin (feature, reference, schedule flag, and initiating user if any), and idempotency key.

Every run checks agent status, the organisation kill switch, and the live on-chain mandate. For a payout funding transfer, the platform also checks that the mandate lists the dividend feature the transfer funds. The run then writes an audit record attributed to the agent and submits one user operation from the agent's account. Scheduled actions run the same check when firing. Replaying an idempotency key with the same action returns its recorded outcome, while reusing it for a different action fails with idempotency-key-reused.

Both platform preflight refusals and post-submission chain refusals return non-retryable DALP-199551 with a reason:

Reason
What stopped the action
agent-not-active
Agent is provisioning or failed setup.
agent-revoked
Agent's mandate was revoked.
organisation-halted
Organisation kill switch is active.
mandate-missing
No mandate exists on chain for the agent.
mandate-expired
Mandate expiry timestamp has passed.
target-not-allowed
Contract, function selector, or funded dividend feature is not listed on the mandate.
self-call-refused
Call targets the agent account or validator.
asset-per-transaction-exceeded
Amount exceeds the asset's per-operation ceiling.
asset-per-period-exceeded
Amount exceeds remaining per-period allowance for the asset.
native-per-transaction-exceeded
Native value exceeds the per-operation ceiling.
native-per-period-exceeded
Native value exceeds remaining per-period native allowance.
amount-undecodable
Call data amount could not be decoded.
idempotency-key-reused
Idempotency key names another action or is older than 24 hours.
chain-refused
Chain reverted, queue cancelled, retries exhausted, or funding failed after platform preflight.

Errors

Code
When
DALP-12103
Dependency unavailable. After a revoke or halt, read the agent and resend revocation if mandate.revokedAt is null.
DALP-12107
Write outcome unknown. Inspect the transaction request before retrying.
DALP-199551
Action refused by mandate, kill switch, chain, queue, or idempotency check (see reason).
DALP-199552
Organisation kill switch is active.
DALP-199553
Agent is not active. Wait for provisioning or create a new agent after revocation.
DALP-199554
Mandate validation failed (data.rule names the broken rule).
DALP-199555
Caller is not an organisation owner.

Read Agent mandate for on-chain mandate limits and validator rules, Smart Wallet for the account model, User operations for bundling, Participant for agent identity and audit attribution, and Set a watcher's level for when the Payout funding watcher acts under an agent.

Was this page helpful?