Mandate
Templates and versions
Start from a ready-made mandate and keep every change.
Mandate Templates#
Mandate Templates start operators from ready-made mandates for common agent types.
| Template | Id | Description |
|---|---|---|
| Payments agent | payments | Small USDC payments to approved recipients. |
| Trading agent | trading | Swaps during set hours, with a person approving large trades. |
| Locked agent | readonly | Blocks all spending until a person loosens the mandate. |
The sandbox values are at GET /api/v1/mandate-templates. They are test values, not recommendations.
Mandate Versioning#
Mandate Versioning keeps every mandate change, so any past decision can be traced to the rules in force at that moment. Each receipt stores the mandate version and hash.
bash
curl -X POST https://dapp.covergate.app/api/v1/agents/<agent id>/mandates \
-H "content-type: application/json" \
-d '{
"note": "Allow the new vendor",
"rules": {
"transactionCap": 500,
"dailyAllowance": 2000,
"assets": ["USDC"],
"destinations": ["<destination>"],
"window": null,
"approvalThreshold": null
}
}'The response returns the new version number.