Event logs APIs
Get Event Logs by address, block number in range and topic
URI
network | uri |
Mainnet | GET https://explorerapi.wemix.com/v1/event-logs |
Testnet | GET https://explorerapi.test.wemix.com/v1/event-logs |
REQUEST PARAMETER
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 |
REQUEST SAMPLE
RESPONSE PARAMETER
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 |