API ReferenceGuidesChangelog
Event Logs

Query event logs

GET
/v1/eventlogs/{owner}/{slug}/query

Authorization

api-key<token>

In: header

Path Parameters

owner*string
slug*string

Query Parameters

projectId?string
query?string
timeRange.start.relativeTime.unit?string
timeRange.start.relativeTime.value?integer
Formatint32
timeRange.start.relativeTime.align?string
timeRange.start.absoluteTime?string
Formatint64
timeRange.end.relativeTime.unit?string
timeRange.end.relativeTime.value?integer
Formatint32
timeRange.end.relativeTime.align?string
timeRange.end.absoluteTime?string
Formatint64
timeRange.step?string
Formatint64
timeRange.interval.value?number
Formatdouble
timeRange.interval.unit?string
timeRange.timezone?string
limit?integer
Formatint32
offset?integer
Formatint32
version?integer
Formatint32
source?string
cachePolicy.cacheTtlSecs?integer

how long the cache will be stored before it is evicted

Formatint32
cachePolicy.cacheRefreshTtlSecs?integer

how long the cache will be refreshed in the background

Formatint32
cachePolicy.forceRefresh?boolean

force refresh the cache now

cachePolicy.noCache?boolean

do not use cache

Response Body

application/json

curl -X GET "https://example.com/v1/eventlogs/string/string/query"
{  "after": [    {      "boolValue": true,      "dateValue": "2019-08-24T14:15:22Z",      "doubleValue": 0.1,      "intValue": 0,      "listValue": {        "values": [          "string"        ]      },      "longValue": "string",      "stringValue": "string"    }  ],  "computeStats": {    "binaryVersionHash": "string",    "clickhouseStats": {      "memoryUsage": "string",      "queryDurationMs": "string",      "readBytes": "string",      "readRows": "string",      "resultBytes": "string",      "resultRows": "string"    },    "computeCostMs": "string",    "computedAt": "2019-08-24T14:15:22Z",    "computedBy": "string",    "isCached": true,    "isRefreshing": true  },  "entries": [    {      "attributes": {},      "blockNumber": "string",      "chainId": "string",      "contractAddress": "string",      "contractName": "string",      "distinctId": "string",      "eventName": "string",      "highlightedMessage": "string",      "id": "string",      "logIndex": 0,      "logLevel": "string",      "logType": "string",      "message": "string",      "timestamp": "string",      "transactionHash": "string",      "transactionIndex": 0    }  ],  "total": "string"}