Actions & units
One action envelope, with parameters defined by use case and capability.
On this page
Action envelope
StandardAction
{
use_case: "spot",
capability: "place_order",
params: {
market_id: "MON-USDC",
direction: "buy",
order_type: "market",
amount: { spend: 100_000n },
slippage_bps: 50,
},
}use_case distinguishes spot place_order from perps place_order. capability names the operation. params has a strict use-case schema; undeclared fields and incompatible combinations are rejected.
Common parameter rules
| Input | Rule |
|---|---|
| Amounts | Positive uint256 for action quantities; bigint, decimal string or safe integer. |
| Token decimals | Use the market’s declared scale, not a universal decimal count. |
| slippage_bps | Schema range 0–5000; integration and House limits can be stricter. 50 = 0.5%. |
| expires_at | Future Unix seconds, at most 30 days from action validation. |
| market_id / position_id / order_id | Registered identifiers, not a replacement for custody verification. |
| Spot amount | Exactly one of spend or receive. |
| Market protection | slippage_bps; no limit_price or expires_at in the market-order schema. |
| Limit protection | limit_price and expires_at; no market slippage field. |
| Liquidity assets | Unique asset IDs; 1–16 amounts. |