Rules
Create a rule
/v1/rulesThe rule's addresses are added to the watched addresses when needed (counted in
the plan limit). Rules are created active.
- Safe to retry with the Idempotency-Key header: see Idempotency.
Headers#
Idempotency-KeystringMakes the POST safe to retry for 24 hours.
Request body#
namestringrequiredkindstringrequiredlarge_transfer: a transfer at or abovethreshold.new_counterparty: an outflow to an address never seen before.burst: at leastcountoutflows withinwindow_minutes.
chain_idintegerrequiredaddressesarray of stringrequiredassetstringnative,any(threshold in raw units) or a token contract address known to Aicscan.thresholdstringlarge_transfer: decimal amount in token units, e.g.
50000or0.5.directionstringcountintegerburst only.
window_minutesintegerburst only.
severitystringrequiredchannel_idsarray of string · uuidrequiredimmediate_alertbooleannullabletruerequires a plan with immediate alerts (403 plan_feature_unavailable).
Responses#
Response headers
LocationstringIdempotent-Replayedstringtruewhen the response is a replay of a previous request with the sameIdempotency-Key.
Object fields
idstring · uuidnamestringkindstringRules created through the API are
large_transfer,new_counterpartyorburst; the other kinds are created from the dashboard and are returned read-only.chain_idsarray of integerparamsobjectNormalised rule parameters (amounts in raw units).
severitystringstatestringimmediate_alertbooleannullableAlert before confirmations.
null= default by severity (yes for critical).channel_idsarray of string · uuidpending_changeobjectnullableDeferred pause or deletion of a critical rule, effective at
effective_at.Object fields
idstring · uuidactionstringrequested_atstring · date-timeeffective_atstring · date-time
created_atstring · date-time
Standard error format: see Errors.