Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphql: Add revert reason field in transaction object #593

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion graphql.json
Original file line number Diff line number Diff line change
Expand Up @@ -2152,6 +2152,22 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "revertReason",
"description": "Reason returned when transaction fails.",
"args": [],
"type": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Bytes",
"ofType": null
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
Expand Down Expand Up @@ -3098,4 +3114,4 @@
}
]
}
}
}
7 changes: 6 additions & 1 deletion schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,11 @@ type Transaction {
this is equivalent to TxType || ReceiptEncoding.
"""
rawReceipt: Bytes!

"""
Reason returned when transaction fails.
"""
revertReason: Bytes
}

"""EIP-4895"""
Expand All @@ -564,4 +569,4 @@ type Withdrawal {

"""Amount is the withdrawal value in Gwei."""
amount: Long!
}
}