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