Protocols
Get all protocols and the assets associated with your api key.
GET
https://api.ironblocks.com/protocols
Query Parameters
Name | Type | Description |
---|---|---|
pageNumber | integer | Specify page number for pagination. |
hideAssets | boolean | Should the assets be omitted from the response. |
pageSize | integer | Specify page size for pagination. |
Create a new protocol and associate it with your api key.
POST
https://api.ironblocks.com/protocols/create
Request Body
Name | Type | Description |
---|---|---|
protocolName* | string | The name of your protocol. |
assets | Asset[] | An array of assets to associate with the protocol. Type reference |
notificationChannels | NotificationChannels[] | An array of notification channels for alerts. Type reference |
Add assets to a given protocol id.
PUT
https://api.ironblocks.com/protocols/assets/add
Request Body
Name | Type | Description |
---|---|---|
protocolId* | string | The protocol Id to add assets to. You can obtain it using the /protocols endpoint. |
assets* | Asset[] | An array of assets to associate with the protocol. Type reference |
Change protocol's notification channels.
PATCH
https://api.ironblocks.com/protocols/notification-channels/replace
Request Body
Name | Type | Description |
---|---|---|
protocolId* | string | The protocol Id to replace the notification channels for. You can obtain it using the /protocols endpoint. |
notificationChannels* | NotificationChannels[] | An array of notification channels for alerts. Type reference |
Type reference
Last updated