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 fields for eip-4844 #468

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
80 changes: 80 additions & 0 deletions graphql.json
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,30 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "blobGasUsed",
"description": "BlobGasUsed is the total amount of gas used by the transactions.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "Long",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "excessBlobGas",
"description": "ExcessBlobGas is a running total of blob gas consumed in excess of the target, prior to the block.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "Long",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
Expand Down Expand Up @@ -1898,6 +1922,18 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "maxFeePerBlobGas",
"description": "MaxFeePerBlobGas is the maximum blob gas fee cap per blob the sender is willing to pay for blob transaction, in wei.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "BigInt",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "effectiveTip",
"description": "EffectiveTip is the actual amount of reward going to miner after considering the max fee cap.",
Expand Down Expand Up @@ -2002,6 +2038,30 @@
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "blobGasUsed",
"description": "BlobGasUsed is the amount of blob gas used by this transaction.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "Long",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "blobGasPrice",
"description": "blobGasPrice is the actual value per blob gas deducted from the senders account.",
"args": [],
"type": {
"kind": "SCALAR",
"name": "BigInt",
"ofType": null
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "createdContract",
"description": "CreatedContract is the account that was created by a contract creation\ntransaction. If the transaction was not a contract creation transaction,\nor it has not yet been mined, this field will be null.",
Expand Down Expand Up @@ -2156,6 +2216,26 @@
},
"isDeprecated": false,
"deprecationReason": null
},
{
"name": "blobVersionedHashes",
"description": "BlobVersionedHashes is a set of hash outputs from the blobs in the transaction.",
"args": [],
"type": {
"kind": "LIST",
"name": null,
"ofType": {
"kind": "NON_NULL",
"name": null,
"ofType": {
"kind": "SCALAR",
"name": "Bytes32",
"ofType": null
}
}
},
"isDeprecated": false,
"deprecationReason": null
}
],
"inputFields": null,
Expand Down
30 changes: 28 additions & 2 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ type Block {
raw: Bytes!

"""
WithdrawalsRoot is withdrawals trie root in this block.
WithdrawalsRoot is the withdrawals trie root in this block.
If withdrawals are unavailable for this block, this field will be null.
"""
withdrawalsRoot: Bytes32
Expand All @@ -199,6 +199,14 @@ type Block {
withdrawals are unavailable for this block, this field will be null.
"""
withdrawals: [Withdrawal!]

"""BlobGasUsed is the total amount of gas used by the transactions."""
blobGasUsed: Long

"""
ExcessBlobGas is a running total of blob gas consumed in excess of the target, prior to the block.
"""
excessBlobGas: Long
}

"""
Expand Down Expand Up @@ -472,6 +480,11 @@ type Transaction {
"""
maxPriorityFeePerGas: BigInt

"""
MaxFeePerBlobGas is the maximum blob gas fee cap per blob the sender is willing to pay for blob transaction, in wei.
"""
maxFeePerBlobGas: BigInt

"""
EffectiveTip is the actual amount of reward going to miner after considering the max fee cap.
"""
Expand Down Expand Up @@ -520,6 +533,14 @@ type Transaction {
"""
effectiveGasPrice: BigInt

"""BlobGasUsed is the amount of blob gas used by this transaction."""
blobGasUsed: Long

"""
blobGasPrice is the actual value per blob gas deducted from the senders account.
"""
blobGasPrice: BigInt

"""
CreatedContract is the account that was created by a contract creation
transaction. If the transaction was not a contract creation transaction,
Expand Down Expand Up @@ -552,6 +573,11 @@ type Transaction {
this is equivalent to TxType || ReceiptEncoding.
"""
rawReceipt: Bytes!

"""
BlobVersionedHashes is a set of hash outputs from the blobs in the transaction.
"""
blobVersionedHashes: [Bytes32!]
}

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

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