Skip to main content

List Reports

Example Request

{
"jsonrpc": "2.0",
"method": "cartesi_listReports",
"params": {
"application": "<name-or-address>",
"limit": 10,
"offset": 0
},
"id": 1
}

The cartesi_listReports method returns a paginated list of reports for a specific application.

Parameters

NameTypeRequiredDescription
applicationstringYesThe application's name or hex encoded address
epoch_indexstringNoOptional filter by epoch index (hex encoded)
input_indexstringNoOptional filter by input index (hex encoded)
limitnumberNoMaximum number of reports to return (default: 50, minimum: 1)
offsetnumberNoStarting point for the list (default: 0, minimum: 0)

Response

{
"jsonrpc": "2.0",
"result": {
"data": [
{
"epoch_index": "0x1",
"input_index": "0x1",
"index": "0x1",
"raw_data": "0x48656c6c6f",
"created_at": "2024-01-01T00:00:00Z",
"updated_at": "2024-01-01T00:00:00Z"
}
],
"pagination": {
"total_count": 1,
"limit": 50,
"offset": 0
}
},
"id": 1
}

Response Fields

Data

NameTypeDescription
epoch_indexstringThe epoch index this report belongs to (hex encoded)
input_indexstringThe input index this report belongs to (hex encoded)
indexstringThe report index (hex encoded)
raw_datastringThe report payload in hexadecimal format
created_atstringTimestamp when the report was created
updated_atstringTimestamp when the report was last updated

Pagination

NameTypeDescription
total_countnumberTotal number of reports available
limitnumberNumber of reports returned in this response
offsetnumberStarting point of the returned reports

Error Codes

CodeMessageDescription
-32602Invalid paramsInvalid parameter values
-32603Internal errorAn internal error occurred
-32000Application not foundThe specified application does not exist
We use cookies to ensure that we give you the best experience on our website. By using the website, you agree to the use of cookies.