Set Spend Policy
ordnet_policy_setSet spend limits for agent broadcasts per transaction and session. Transactions exceeding a limit are blocked, preventing overspending.
Instructions
Configure spend limits for this server session (agent safety layer).
When any limit is set, every broadcast is first simulated via ORDnet's own node and BLOCKED if it would exceed a limit (fail-closed). When no limits are set, broadcasts behave exactly as before.
Limits apply to the TOTAL output value of a transaction, including change back to the agent's own wallet (a conservative upper bound).
Args:
maxSatsPerTx (number|null, optional): Max output sats per transaction; null removes the limit
maxSatsPerSession (number|null, optional): Max cumulative output sats this session; null removes the limit
resetSession (boolean, optional): Reset the session spend counter
Returns: The active policy after applying changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxSatsPerTx | No | Max total output sats per transaction. null = remove limit. Omit = keep current. | |
| resetSession | No | Reset the session spend counter to zero | |
| maxSatsPerSession | No | Max cumulative output sats this session. null = remove limit. Omit = keep current. |