Skip to main content

Reports

Reports contain application logs or diagnostic information and cannot be validated on-chain.

1. Get Report by Index

Retrieve a specific report based on its index and associated input index.

query report($reportIndex: Int!, $inputIndex: Int!) {
report(reportIndex: $reportIndex, inputIndex: $inputIndex) {
index
input {
index
status
timestamp
msgSender
blockNumber
}
payload
}
}

Arguments

NameTypeDescription
reportIndexInt!Index of the report to retrieve.
inputIndexInt!Index of the input associated with the report.

Response Type

Report

2. Get reports

Retrieve a list of reports with support for pagination.

query reports {
reports {
edges {
node {
index
input {
index
status
timestamp
msgSender
blockNumber
}
payload
}
}
}
}

Arguments

None

Response Type

ReportConnection

3. Get Reports by Input

Retrieve reports associated with a specific input.

query reportsByInput($inputIndex: Int!) {
input(index: $inputIndex) {
reports {
edges {
node {
index
input {
index
status
timestamp
msgSender
blockNumber
}
payload
}
}
}
}
}

Arguments

NameTypeDescription
inputIndexInt!Index of the input to retrieve reports for.

Response Type

ReportConnection

Examples

  1. Fetching a specific report:
query {
report(reportIndex: 1, inputIndex: 5) {
index
input {
index
status
timestamp
}
payload
}
}
  1. Listing earlier(first 5) reports:
query {
reports(first: 5) {
edges {
node {
index
input {
index
status
timestamp
}
payload
}
cursor
}
pageInfo {
hasNextPage
endCursor
}
}
}
  1. Paginating through reports:
query {
reports(first: 5, after: "MA==") {
edges {
node {
index
input {
index
status
}
payload
}
cursor
}
pageInfo {
hasNextPage
endCursor
}
}
}
  1. Retrieving reports for a specific input:
query {
input(index: 10) {
reports {
edges {
node {
index
payload
}
}
}
}
}
  1. Combining pagination with input-specific reports:
query {
input(index: 0) {
reports(last: 5, before: "MA==") {
edges {
node {
index
payload
}
cursor
}
pageInfo {
hasNextPage
endCursor
}
}
}
}
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.