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 | false |
topic0 | String | topic 0 | true |
topic1 | String | topic 1 | false |
topic2 | String | topic 2 | false |
topic3 | String | topic 3 | false |
operand | String | Type of query: - and - or | false |
GET https://explorerapi.test.wemix.com/v1/event-logs?type=combine&topic_3=0x0000000000000000000000000000000000000000000000000000000000000001&topic_1=0x000000000000000000000000a71fa6187cd2fe6b9e588c357c951e96736bebbd&operand=or&address=0x4f02E794AFF0d7b19Ca0F0f79CeB7Cf7fcF765B2&topic_0=0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef&topic_2=0x0000000000000000000000007ca2b495820273fb838d225505c52d2001cb2760
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.address_type | String | Type of Address - 0: address - 1: miner - 2: contract - 3: token contract |
results.address_extra.name | String | Name of token |
results.address_extra.logo | String | Name of logo |
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 |
{
"status": "200",
"message": "success",
"results": {
"count": "24",
"data": [
{
"timestamp": "2022-09-14T06:17:26Z",
"address": "0x4f02E794AFF0d7b19Ca0F0f79CeB7Cf7fcF765B2",
"data": "0x000000000000000000000000000000000000000000000000002386f26fc10000",
"method": "0xddf252ad",
"transaction_hash": "0x39cb04127625851f409f9472bf37ffd6748820dcfe01ebe35fb17a158d2c1015",
"log_name": null,
"log_abi": null,
"address_type": "3",
"address_extra": {
"name": "WemixD",
"logo": null
},
"transaction_index": "0",
"log_index": "0",
"topics_count": "3",
"topic_0": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"topic_1": "0x000000000000000000000000a71fa6187cd2fe6b9e588c357c951e96736bebbd",
"topic_2": "0x00000000000000000000000075c68a59abd8143406cb459092b0cefd0e888f97",
"topic_3": null
},
...
]
}
Last modified 2mo ago