diff --git a/graphql.json b/graphql.json index c5b61cafa..28d2c78fa 100644 --- a/graphql.json +++ b/graphql.json @@ -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, @@ -3098,4 +3114,4 @@ } ] } -} \ No newline at end of file +} diff --git a/schema.graphqls b/schema.graphqls index 2ca3c6bc6..7765609ff 100644 --- a/schema.graphqls +++ b/schema.graphqls @@ -547,6 +547,11 @@ type Transaction { this is equivalent to TxType || ReceiptEncoding. """ rawReceipt: Bytes! + + """ + Reason returned when transaction fails. + """ + revertReason: Bytes } """EIP-4895""" @@ -564,4 +569,4 @@ type Withdrawal { """Amount is the withdrawal value in Gwei.""" amount: Long! -} \ No newline at end of file +}