Create Policy
策略
建立策略
建立新策略並將其附加到代理。
POST
Create Policy
策略控制代理被允許執行的交易類型。每筆交易在 MPC 簽名之前都會根據代理的策略進行評估。
請求內容
要附加此策略的代理。
策略類型。值:
spending_limit、address_control、token_control、velocity_control、schedule、human_approval。策略規則物件。結構取決於
type。範例
授權
API key authentication. Keys are prefixed with awx_.
主體
application/json
回應
Policy created successfully.
A policy that controls what transactions an agent is allowed to execute.
Unique policy identifier (e.g., pol_abc123).
Agent this policy is attached to.
Policy type.
可用選項:
spending_limit, address_control, token_control, velocity_control, schedule, human_approval Policy rules object. Structure depends on the policy type.
ISO 8601 creation timestamp.
ISO 8601 last-update timestamp.