graphql: add support for tx types and tx access lists (#22491)

This adds support for EIP-2718 access list transactions in the GraphQL API.

Co-authored-by: Amit Shah <amitshah0t7@gmail.com>
Co-authored-by: Felix Lange <fjl@twurst.com>
This commit is contained in:
AmitBRD
2021-04-06 08:58:36 -05:00
committed by GitHub
parent 706683ea72
commit adf09aeab1
3 changed files with 180 additions and 4 deletions

View File

@ -69,6 +69,12 @@ const schema string = `
transaction: Transaction!
}
#EIP-2718
type AccessTuple{
address: Address!
storageKeys : [Bytes32!]
}
# Transaction is an Ethereum transaction.
type Transaction {
# Hash is the hash of this transaction.
@ -118,6 +124,9 @@ const schema string = `
r: BigInt!
s: BigInt!
v: BigInt!
#Envelope transaction support
type: Int
accessList: [AccessTuple!]
}
# BlockFilterCriteria encapsulates log filter criteria for a filter applied