Skip to main content
GET
/
scan
/
log-by-topics
cURL
curl --request GET \
  --url https://api.uniblock.dev/uni/v1/scan/log-by-topics \
  --header 'X-API-KEY: <api-key>'
{}

Authorizations

X-API-KEY
string
header
required

API key to access the API (Optional)

Query Parameters

chainId
enum<number>
default:1
required

Unique identifier for a blockchain network.

Available options:
1,
10,
100,
10143,
1028,
1101,
1111,
1112,
11124,
11155111,
11155420,
1284,
1285,
1287,
130,
1301,
137,
143,
146,
167000,
167009,
168587773,
1923,
1924,
199,
2442,
25,
252,
2522,
2741,
300,
324,
33111,
33139,
37714555429,
42161,
421614,
42170,
42220,
43113,
43114,
4352,
43521,
44787,
480,
4801,
50,
5000,
5003,
50104,
51,
531050104,
534351,
534352,
56,
57054,
59141,
59144,
660279,
80002,
80069,
80094,
81457,
8453,
84532,
97
Example:

1

fromBlock
number
default:18764300
required

The integer block number to start searching for logs

Example:

"18764300"

toBlock
number
default:18764400
required

The integer block number to stop searching for logs

Example:

"18764400"

topic0
string
default:0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef

For a single topic, specify the topic number such as topic0, topic1, topic2, topic3

Example:

"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"

topic1
string
default:0x00000000000000000000000021a31ee1afc51d94c2efccaa2092ad1028285549

For a single topic, specify the topic number such as topic0, topic1, topic2, topic3

Example:

"0x00000000000000000000000021a31ee1afc51d94c2efccaa2092ad1028285549"

topic2
string

For a single topic, specify the topic number such as topic0, topic1, topic2, topic3

topic3
string

For a single topic, specify the topic number such as topic0, topic1, topic2, topic3

topic0_1_opr
enum<string>

For multiple topics, specify the operator between topics

Available options:
or,
and
topic1_2_opr
enum<string>

For multiple topics, specify the operators between topics

Available options:
or,
and
Example:

"and"

topic2_3_opr
enum<string>

For multiple topics, specify the operator between topics

Available options:
or,
and
topic0_2_opr
enum<string>

For multiple topics, specify the operator between topics

Available options:
or,
and
topic0_3_opr
enum<string>

For multiple topics, specify the operator between topics

Available options:
or,
and
topic1_3_opr
enum<string>

For multiple topics, specify the operator between topics

Available options:
or,
and
page
number

The integer page number, if pagination is enabled

offset
number

The number of transactions displayed per page. Limited to 1000 records per query, use the page parameter for subsequent records

includeRaw
boolean

Returns the raw data given by the provider. WARNING: removes backup feature, and raw data returned is not normalized which might make switching providers difficult

Example:

null

provider
enum<string>

Specify which provider to use. The project's provider priority list is used by default if no providers are selected. (Priority list can be managed on Uniblock's dashboard)

Available options:
EtherScan,

Response

200 - application/json

The response is of type object.