Settings

Get protocol Settings

GET https://api.ironblocks.com/{protocolName}/settings

Path Parameters

{
  "detectors": [
    "adminCall",
    "drasticBalanceChange",
    "flashLoan",
    "newContract",
    "mixer",
    "reentrancy",
    "failedTransaction"
  ],
  "assets": [
    {
      "chainId": "1",
      "address": "0xaaaaaaa",
      "admins": [
        "0xbbbb",
        "0xcccc"
      ],
      "descriptor": "Contract 1"
    }
  ],
  "notificationChannels": [
    {
      "name": "slack",
      "contacts": [
        "https://hooks.slack.com/services/…"
      ]
    },
    {
      "name": "telegram",
      "contacts": [
        "-823123123"
      ]
    },
    {
      "name": "webhook",
      "url": "http://whatever.api/"
    }
  ]
}
curl -X 'GET' \
  'https://api.ironblocks.com/your-protocol-name/settings' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ${YOUR-API-KEY}'

Last updated