get https://api.syve.ai/v1/filter-api/logs
This endpoint returns transaction data. Return the latest as well as historical transactions.
Method: GET
Endpoint: https://api.syve.ai/v1/filter-api/logs
List of examples
The best way to understand how to use the Filter API is to visit the section of examples here.
Request Parameters
All request parameters have the format <operator>:<field_name>
. Each field of the table can be used as field_name
. See the "Response Fields" section below for possible values.
Request Syntax
For more information on how to construct a request using the Filter API click here.
Response Fields
Field | Type | Description |
---|---|---|
timestamp | integer | UNIX timestamp in seconds. The zero value corresponds to the 1st of January 1970 at UTC, called the Unix Epoch. |
block_number | integer | The block number (i.e. height) of the event log. |
transaction_hash | string | The transaction hash of the event log. |
transaction_index | integer | The position of the transaction in a block of the log. |
log_index | integer | The position of the log within the block. |
address | string | The address of the smart contract that emitted the log. |
topic_0 | string | The first topic of the log (containing bytes data in hexadecimal format). The first topic corresponds to the signature of the event of the log. |
topic_1 | string | The second topic of the log (containing bytes data in hexadecimal string format). |
topic_2 | string | The third topic of the log (containing bytes data in hexadecimal string format). |
data | string | The raw data of the log (containing bytes data in hexadecimal string format). |
Live Example
Press Try It to make a request and see what the response looks like. Feel free to try different values for each request parameter.
Note: The below live example does not include all possible request parameters.