Skip to main content

/api/v1/contracts/results/logs REST API Endpoint

List contracts logs across many contracts on the network

Updated on
Aug 23, 2024

/api/v1/contracts/results/logs REST API Endpoint

Please note that this method is currently available only on the testnet and will be accessible on the mainnet soon.

Query Parameters

index
string
The contract log index
limit
integer
The maximum number of items to return
order
string
The order in which items are listed (asc or desc)
timestamp
array
The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator
topic0
array
The first topic associated with a contract log. Requires a timestamp range also be populated
topic1
array
The second topic associated with a contract log. Requires a timestamp range also be populated
topic2
array
The third topic associated with a contract log. Requires a timestamp range also be populated
topic3
array
The fourth topic associated with a contract log. Requires a timestamp range also be populated

Returns

logs
array
An array of objects, each representing a log entry generated by a contract execution
address
string
The address of the contract that generated the log
bloom
object
The bloom filter for the log entry, used for quick searching
contract_id
string
The unique identifier of the contract that generated the log
data
string
The data field of the log entry
index
integer
The index position of the log within the transaction
topics
string
An array of indexed topics associated with the log entry
block_hash
string
The hash of the block containing the transaction that generated the log
block_number
integer
The number of the block containing the transaction that generated the log
root_contract_id
object
The unique identifier of the root contract, if the log was generated in a nested contract call
timestamp
string
The timestamp of the block containing the log entry
transaction_hash
string
The hash of the transaction that generated the log
transaction_index
integer
The index of the transaction within the block
links
object
The links object which contains the following fields:
next
string
A link to the next set of results, if available
Request
1
curl 'https://docs-demo.hedera-mainnet.quiknode.pro/api/v1/contracts/results/logs'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free