GET
/
instructions
/
summary
curl --request GET \
  --url https://api.otim.com/instructions/summary \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
  "chainId": 11155111,
  "instructionIds": [
    "0x97fbe0031494c55eb0e1d182988e110af02f5db3adb95065733e7dc8447581f9"
  ],
  "from": "2024-03-20T00:00:00Z",
  "to": "2024-03-21T00:00:00Z",
  "skip": 0,
  "take": 10,
  "sort": "asc",
  "timeScale": "days"
}'
[
  [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "date": "2024-03-20",
      "address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
      "chain_id": 11155111,
      "instruction_id": "0x97fbe0031494c55eb0e1d182988e110af02f5db3adb95065733e7dc8447581f9"
    },
    [
      {
        "id": "550e8400-e29b-41d4-a716-446655440001",
        "day_summary_id": "550e8400-e29b-41d4-a716-446655440000",
        "activation": true,
        "block_latency": 1,
        "execution_time_unix": 1710936000
      },
      {
        "id": "550e8400-e29b-41d4-a716-446655440002",
        "day_summary_id": "550e8400-e29b-41d4-a716-446655440000",
        "activation": false,
        "block_latency": 2,
        "execution_time_unix": 1710939600
      }
    ]
  ],
  [
    {
      "id": "550e8400-e29b-41d4-a716-446655440003",
      "date": "2024-03-21",
      "address": "0xa0Ee7A142d267C1f36714E4a8F75612F20a79720",
      "chain_id": 11155111,
      "instruction_id": "0x97fbe0031494c55eb0e1d182988e110af02f5db3adb95065733e7dc8447581f9"
    },
    [
      {
        "id": "550e8400-e29b-41d4-a716-446655440004",
        "day_summary_id": "550e8400-e29b-41d4-a716-446655440003",
        "activation": false,
        "block_latency": 1,
        "execution_time_unix": 1711022400
      }
    ]
  ]
]

Authorizations

Authorization
string
header
required

JWT token for API authentication

Body

application/json

Response

200 - application/json

Instruction summaries retrieved successfully

List of tuples, each containing a day summary and its executions: [(StoredInstructionSummaryDay, [StoredExecutionSummary, StoredExecutionSummary, ...]), ...]