Docs

Mandate

Mandate firewall

The independent rules that still apply when cover is valid.


The Mandate Firewall enforces transaction caps, periodic allowances, allowlists, time windows, freezing, and revocation.

Rules#

RuleWhat it doesDenial code
transactionCapLargest single transactionTX_CAP
dailyAllowanceTotal spend allowed per dayDAILY_ALLOWANCE
assetsLimits which tokens an agent can touchASSET_BLOCKED
destinationsRestricts an agent to approved contracts and recipientsDESTINATION_BLOCKED
windowBlocks spending outside the hours an operator allows, in UTC, end hour exclusiveOUTSIDE_WINDOW
approvalThresholdRoutes transactions above a set size to a personOutcome is pending

An agent with no mandate is denied with NO_MANDATE.

Session Key Scoping#

Gives an agent a limited key that only works inside its mandate. A revoked session key is denied with SESSION_REVOKED.

bash
curl -X POST https://dapp.covergate.app/api/v1/agents/<agent id>/session \
  -H "content-type: application/json" \
  -d '{ "revoked": true }'