Logs
Get event logs by transaction hash
Returns the event logs by transaction hash.
Sample request
https://api.main.atgraphite.com/api
?module=logs
&action=getlogs
&hash=0x5d46e804447353e3c7785d8c618fde6b9d68a5ecdcc7323463ddff5ea76aa6fa
&offset=0
&limit=10
&apikey=YourApiKeyTokencurl 'https://api.main.atgraphite.com/api?module=logs&action=getlogs&hash=0x5d46e804447353e3c7785d8c618fde6b9d68a5ecdcc7323463ddff5ea76aa6fa&offset=0&limit=10&apikey=YourApiKeyToken'Request query parameters
hash*
the string representing the transaction hash
eventid*
firt 4 bytes from event signature
offset
skips the offset records before beginning to return the records, default value is 0
limit
the number of records displayed per page, default value is 10000
Note: The eventid parameter may be used as a filter.
Sample response
Get event logs by address
Returns the event logs from an address, with optional filtering by block range.
Sample request
Request query parameters
address*
the string representing the address to check for logs
eventid*
firt 4 bytes from event signature
startblock
the integer block number to start searching for logs
endblock
the integer block number to stop searching for logs
offset
skips the offset records before beginning to return the records, default value is 0
limit
the number of records displayed per page, default value is 10000
sort
the sorting preference, use asc to sort by ascending and desc to sort by descending, default value is asc
Note: The eventid parameter may be used as a filter.
Sample response
Get event logs count
Returns the event logs count either by transaction hash or by address.
Sample request
Request query parameters
hash*
the string representing the transaction hash
address*
the string representing the address to check for logs
startblock
the integer block number to start searching for logs
endblock
the integer block number to stop searching for logs
offset
skips the offset records before beginning to return the records, default value is 0
limit
the number of records displayed per page, default value is 10000
Usage:
In order to get event logs count by transaction hash, specify the
hashparameterIn order to get event logs count by address, specify the
addressparameter with optional filtering by block range (startblockandendblockparameters)
Sample response
Last updated