Skip to content

Commit cc96920

Browse files
authored
graphql: add fields for eip-4844 (#468)
1 parent eb04cca commit cc96920

File tree

2 files changed

+106
-0
lines changed

2 files changed

+106
-0
lines changed

graphql.json

+80
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,30 @@
782782
},
783783
"isDeprecated": false,
784784
"deprecationReason": null
785+
},
786+
{
787+
"name": "blobGasUsed",
788+
"description": "BlobGasUsed is the total amount of gas used by the transactions.",
789+
"args": [],
790+
"type": {
791+
"kind": "SCALAR",
792+
"name": "Long",
793+
"ofType": null
794+
},
795+
"isDeprecated": false,
796+
"deprecationReason": null
797+
},
798+
{
799+
"name": "excessBlobGas",
800+
"description": "ExcessBlobGas is a running total of blob gas consumed in excess of the target, prior to the block.",
801+
"args": [],
802+
"type": {
803+
"kind": "SCALAR",
804+
"name": "Long",
805+
"ofType": null
806+
},
807+
"isDeprecated": false,
808+
"deprecationReason": null
785809
}
786810
],
787811
"inputFields": null,
@@ -1882,6 +1906,18 @@
18821906
"isDeprecated": false,
18831907
"deprecationReason": null
18841908
},
1909+
{
1910+
"name": "maxFeePerBlobGas",
1911+
"description": "MaxFeePerBlobGas is the maximum blob gas fee cap per blob the sender is willing to pay for blob transaction, in wei.",
1912+
"args": [],
1913+
"type": {
1914+
"kind": "SCALAR",
1915+
"name": "BigInt",
1916+
"ofType": null
1917+
},
1918+
"isDeprecated": false,
1919+
"deprecationReason": null
1920+
},
18851921
{
18861922
"name": "effectiveTip",
18871923
"description": "EffectiveTip is the actual amount of reward going to miner after considering the max fee cap.",
@@ -1986,6 +2022,30 @@
19862022
"isDeprecated": false,
19872023
"deprecationReason": null
19882024
},
2025+
{
2026+
"name": "blobGasUsed",
2027+
"description": "BlobGasUsed is the amount of blob gas used by this transaction.",
2028+
"args": [],
2029+
"type": {
2030+
"kind": "SCALAR",
2031+
"name": "Long",
2032+
"ofType": null
2033+
},
2034+
"isDeprecated": false,
2035+
"deprecationReason": null
2036+
},
2037+
{
2038+
"name": "blobGasPrice",
2039+
"description": "blobGasPrice is the actual value per blob gas deducted from the senders account.",
2040+
"args": [],
2041+
"type": {
2042+
"kind": "SCALAR",
2043+
"name": "BigInt",
2044+
"ofType": null
2045+
},
2046+
"isDeprecated": false,
2047+
"deprecationReason": null
2048+
},
19892049
{
19902050
"name": "createdContract",
19912051
"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.",
@@ -2152,6 +2212,26 @@
21522212
},
21532213
"isDeprecated": false,
21542214
"deprecationReason": null
2215+
},
2216+
{
2217+
"name": "blobVersionedHashes",
2218+
"description": "BlobVersionedHashes is a set of hash outputs from the blobs in the transaction.",
2219+
"args": [],
2220+
"type": {
2221+
"kind": "LIST",
2222+
"name": null,
2223+
"ofType": {
2224+
"kind": "NON_NULL",
2225+
"name": null,
2226+
"ofType": {
2227+
"kind": "SCALAR",
2228+
"name": "Bytes32",
2229+
"ofType": null
2230+
}
2231+
}
2232+
},
2233+
"isDeprecated": false,
2234+
"deprecationReason": null
21552235
}
21562236
],
21572237
"inputFields": null,

schema.graphqls

+26
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,14 @@ type Block {
193193
withdrawals are unavailable for this block, this field will be null.
194194
"""
195195
withdrawals: [Withdrawal!]
196+
197+
"""BlobGasUsed is the total amount of gas used by the transactions."""
198+
blobGasUsed: Long
199+
200+
"""
201+
ExcessBlobGas is a running total of blob gas consumed in excess of the target, prior to the block.
202+
"""
203+
excessBlobGas: Long
196204
}
197205

198206
"""
@@ -466,6 +474,11 @@ type Transaction {
466474
"""
467475
maxPriorityFeePerGas: BigInt
468476

477+
"""
478+
MaxFeePerBlobGas is the maximum blob gas fee cap per blob the sender is willing to pay for blob transaction, in wei.
479+
"""
480+
maxFeePerBlobGas: BigInt
481+
469482
"""
470483
EffectiveTip is the actual amount of reward going to miner after considering the max fee cap.
471484
"""
@@ -514,6 +527,14 @@ type Transaction {
514527
"""
515528
effectiveGasPrice: BigInt
516529

530+
"""BlobGasUsed is the amount of blob gas used by this transaction."""
531+
blobGasUsed: Long
532+
533+
"""
534+
blobGasPrice is the actual value per blob gas deducted from the senders account.
535+
"""
536+
blobGasPrice: BigInt
537+
517538
"""
518539
CreatedContract is the account that was created by a contract creation
519540
transaction. If the transaction was not a contract creation transaction,
@@ -547,6 +568,11 @@ type Transaction {
547568
this is equivalent to TxType || ReceiptEncoding.
548569
"""
549570
rawReceipt: Bytes!
571+
572+
"""
573+
BlobVersionedHashes is a set of hash outputs from the blobs in the transaction.
574+
"""
575+
blobVersionedHashes: [Bytes32!]
550576
}
551577

552578
"""EIP-4895"""

0 commit comments

Comments
 (0)