Skip to content
Termbook
Reference

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

InputRule
AmountsPositive uint256 for action quantities; bigint, decimal string or safe integer.
Token decimalsUse the market’s declared scale, not a universal decimal count.
slippage_bpsSchema range 0–5000; integration and House limits can be stricter. 50 = 0.5%.
expires_atFuture Unix seconds, at most 30 days from action validation.
market_id / position_id / order_idRegistered identifiers, not a replacement for custody verification.
Spot amountExactly one of spend or receive.
Market protectionslippage_bps; no limit_price or expires_at in the market-order schema.
Limit protectionlimit_price and expires_at; no market slippage field.
Liquidity assetsUnique asset IDs; 1–16 amounts.

Capability catalog

Documentation
8 results

Let’s talk

Tell us what you have in mind.

Supply liquidity