Reference
Rules reference
Every monitor is built from one rule template. This page lists each template with the networks and asset kinds it applies to, its parameters, its default severity and its known limitations.
How parameters work#
Parameters are sent as the params object of a monitor and validated by the API. Unknown keys are rejected, addresses are normalized for the monitor’s network, and errors come back as 422 validation_failed with the offending field, for example params.threshold_usd. The same templates, including form metadata, are served to signed-in users by GET /api/v1/rule-templates.
| Type | Format |
|---|---|
| decimal | Decimal number as a JSON string, e.g. "250000.5" (avoids float rounding). |
| percent | Percentage as a decimal string, e.g. "20". |
| duration | Duration string such as "15m", "1h" or "24h"; windows must be between 1m and 168h. |
| asset | Token address, Solana mint, Sui coin type or "native", normalized for the monitor’s network. |
| address_list | JSON array of address strings, normalized for the monitor’s network. |
| enum | One of the listed option strings. |
| multi_enum | JSON array of option strings. |
| bool | JSON boolean. |
Example monitor#
A monitor combines a template with assets, parameters, a severity and channels. All assets must belong to the workspace and to the monitor’s chain. This one raises a critical incident when more than $500,000 net leaves a Sui treasury within an hour, ignoring transfers to one known recipient.
{
"name": "Treasury outflow 1h",
"rule": "treasury_outflow",
"chain": "sui",
"asset_ids": ["<asset-id>"],
"params": {
"window": "1h",
"threshold_usd": "500000",
"net": true,
"whitelist": [
"0x4444444444444444444444444444444444444444444444444444444444444444"
]
},
"severity": "critical",
"channel_ids": ["<channel-id>"],
"enabled": true,
"cooldown_seconds": 900
}Before enabling a monitor, dry-run it with POST /workspaces/{ws}/monitors/test — see Test it on history.
Large transfer
highlarge_transfer
A single transfer above a token or USD threshold.
- Networks
- SuiSolanaBNB Smart ChainEthereum
- Asset kinds
walletcontractmove_object- Default severity
- high
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| direction | enum | Yes | out | Direction. Options: out, in, any |
| asset | asset | No | — | Asset. Token address, mint, coin type or "native". Leave empty for any asset (USD threshold required). |
| threshold_token | decimal | No | — | Threshold (tokens) |
| threshold_usd | decimal | No | — | Threshold (USD). Uses the price at event time; the price timestamp is shown on the incident. |
| whitelist | address_list | No | — | Whitelisted counterparties |
Validation. Set threshold_token or threshold_usd (or both — the rule fires if either is exceeded). threshold_token requires asset.
Treasury outflow
criticaltreasury_outflow
Net outflow from a treasury within a time window.
- Networks
- SuiSolanaBNB Smart ChainEthereum
- Asset kinds
walletcontractmove_object- Default severity
- critical
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| window | duration | Yes | 1h | Window |
| asset | asset | No | — | Asset. Leave empty to sum all assets in USD. |
| threshold_token | decimal | No | — | Threshold (tokens) |
| threshold_usd | decimal | No | — | Threshold (USD) |
| net | bool | No | true | Subtract inflows |
| whitelist | address_list | No | — | Known recipients. Transfers to these addresses are excluded. |
Validation. Set threshold_token or threshold_usd. threshold_token requires asset. Window between 1m and 168h.
Authority change
criticalauthority_change
Owner, role, mint or upgrade authority changes.
- Networks
- SuiSolanaBNB Smart ChainEthereum
- Asset kinds
contracttokenprogrammove_objectmove_package- Default severity
- critical
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| roles | multi_enum | No | — | Roles. Options: owner, admin, role, mint_authority, freeze_authority, upgrade_authority, object_owner. Empty = all roles. |
| expected_new_values | address_list | No | — | Expected new holders. Changes to these holders never trigger (e.g. a known multisig). |
Contract upgrade
highcontract_upgrade
Proxy implementation, Solana program or Sui package upgraded.
- Networks
- SuiSolanaBNB Smart ChainEthereum
- Asset kinds
contractprogrammove_objectmove_package- Default severity
- high
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| allowed_implementations | address_list | No | — | Pre-approved implementations. Pre-announced upgrades to these never trigger. |
Mint / burn / pause
highmint_burn_pause
Supply changes or pause status of a token or protocol.
- Networks
- SuiSolanaBNB Smart ChainEthereum
- Asset kinds
contracttokenmove_object- Default severity
- high
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| actions | multi_enum | No | all four | Actions. Options: mint, burn, pause, unpause. Empty = all actions. |
| min_amount | decimal | No | — | Minimum amount (tokens). Applies to mint and burn. |
Liquidity outflow
highliquidity_outflow
Liquidity leaving a pool or vault within a window.
- Networks
- SuiSolanaBNB Smart ChainEthereum
- Asset kinds
contractwalletmove_object- Default severity
- high
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| window | duration | Yes | 15m | Window |
| asset | asset | Yes | — | Pool asset |
| threshold_percent | percent | No | 20 | Threshold (% of pool) |
| threshold_token | decimal | No | — | Threshold (tokens) |
| threshold_usd | decimal | No | — | Threshold (USD) |
Validation. Set at least one of threshold_percent, threshold_token or threshold_usd. Window between 1m and 168h.
Oracle deviation
highoracle_deviation
Price feed update deviates beyond a percentage.
- Networks
- EthereumBNB Smart Chain
- Asset kinds
contract- Default severity
- high
| Parameter | Type | Required | Default | Notes |
|---|---|---|---|---|
| max_deviation_percent | percent | Yes | 5 | Max deviation (%) |
| compare | enum | Yes | previous | Compare with. Options: previous, reference. previous = the feed’s previous answer; reference = the price source. |
| reference_asset | asset | No | — | Reference asset. Required when compare is reference. |
General limitations#
- Rules evaluate events after they appear in the available data stream; they do not prevent transactions.
- USD values use the price at event time from the configured price source; when an asset has no price, USD thresholds cannot apply to it.
- Authority and upgrade detection relies on recognized patterns. See network support for the per-network matrix.