Event logs APIs
network | uri |
Mainnet | GET https://explorerapi.wemix.com/v1/event-logs |
Testnet | GET https://explorerapi.test.wemix.com/v1/event-logs |
- HEADER
key | value | required |
api-key | api-key | true |
- QUERY STRING
key | type | value | required |
address | String | Contract address | true |
limit | Number | Maximum number of record will retrieve Default: 50, Max: 1000 | false |
offset | Number | Start retrieve record Default: 0 | false |
start_block | Number | Get event logs from block number Default: null | false |
end_block | Number | Get event logs to block number Default: null | false |
type | String | Type of message call:
- single
- combine | false |
topic_0 | String | topic 0 | true |
topic_1 | String | topic 1 | false |
topic_2 | String | topic 2 | false |
topic_3 | String | topic 3 | false |
operand | String | Type of query: - and - or | false |
GET https://explorerapi.wemix.com/v1/event-logs?address=0xeAD50432B7DCb8402208a65bc58951b8ccEF9F08
api-key: 1ba5e446edf1997f67b51bf9e60b3fbba6fa1bf84301115292805d7e24f43539
key | type | value |
status | String | Status of request |
message | String | Message of request |
results | List<Object> | Results of request |
results.count | String | Total count of event-log |
results.data | List<Object> | List of data |
results.data.timestamp | String | UTC time when the transaction occurred |
results.data.address | String | Address that relate to this event log |
results.data.data | String | Data of event log |
results.data.method | String | Method of this event log |
results.transaction_hash | String | Transaction hash |
results.log_name | String | Name of log |
results.log_abi | String | Abi of event_log |
results.data.transaction_index | String | Index of transaction |
results.data.log_index | String | Index of log |
results.data.topics_count | String | Number of topic |
results.data.topic_0 | String | Value of topic 0 |
results.data.topic_1 | String | Value of topic 1 |
results.data.topic_2 | String | Value of topic 2 |
results.data.topic_3 | String | Value of topic 3 |
```json
{
"status": "200",
"message": "success",
"results": {
"count": "214201",
"data": [
{
"timestamp": "2023-08-10T10:11:05Z",
"address": "0xead50432b7dcb8402208a65bc58951b8ccef9f08",
"data": "0x0000000000000000000000009c2d3bb8565c2fc4335c1068dd0b6ca60fb4ecab",
"method": "0xcdb6c50f",
"transaction_hash": "0x2098c1cf552111f2a55ea022d832a9bd7a73c5661e62881334aab6e56353bced",
"log_name": null,
"log_abi": null,
"address_type": null,
"address_extra": null,
"transaction_index": "0",
"log_index": "0",
"topics_count": "1",
"topic_0": "0xcdb6c50fc95430ac4511195bb0a3cb943f34705415ec82960792a7545a6850bb",
"topic_1": null,
"topic_2": null,
"topic_3": null
},
...
]
}
}
Last modified 1mo ago