Skip to content

Commit 8d36316

Browse files
Serhii RubetsSerhii Rubets
authored andcommitted
feat: added commitments in block header
1 parent 6485866 commit 8d36316

File tree

1 file changed

+46
-1
lines changed

1 file changed

+46
-1
lines changed

api/starknet_api_openrpc.json

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,6 +1608,44 @@
16081608
"title": "Starknet version",
16091609
"description": "Semver of the current Starknet protocol",
16101610
"type": "string"
1611+
},
1612+
"event_commitment": {
1613+
"title": "Event commitment",
1614+
"description": "The root of Merkle Patricia trie for events in the block",
1615+
"$ref": "#/components/schemas/FELT"
1616+
},
1617+
"transaction_commitment": {
1618+
"title": "Transaction commitment",
1619+
"description": "The root of Merkle Patricia trie for transactions in the block",
1620+
"$ref": "#/components/schemas/FELT"
1621+
},
1622+
"receipt_commitment": {
1623+
"title": "Receipt commitment",
1624+
"description": "The root of Merkle Patricia trie for receipts in the block",
1625+
"$ref": "#/components/schemas/FELT"
1626+
},
1627+
"state_diff_commitment": {
1628+
"title": "State diff commitment",
1629+
"description": "The state diff commitment hash in the block",
1630+
"$ref": "#/components/schemas/FELT"
1631+
},
1632+
"event_count": {
1633+
"title": "Event count",
1634+
"description": "The number of events in the block",
1635+
"type": "integer",
1636+
"minimum": 0
1637+
},
1638+
"transaction_count": {
1639+
"title": "Transaction count",
1640+
"description": "The number of transactions in the block",
1641+
"type": "integer",
1642+
"minimum": 0
1643+
},
1644+
"state_diff_length": {
1645+
"title": "State diff length",
1646+
"description": "The length of the state diff in the block",
1647+
"type": "integer",
1648+
"minimum": 0
16111649
}
16121650
},
16131651
"required": [
@@ -1621,7 +1659,14 @@
16211659
"l2_gas_price",
16221660
"l1_data_gas_price",
16231661
"l1_da_mode",
1624-
"starknet_version"
1662+
"starknet_version",
1663+
"event_commitment",
1664+
"transaction_commitment",
1665+
"receipt_commitment",
1666+
"state_diff_commitment",
1667+
"event_count",
1668+
"transaction_count",
1669+
"state_diff_length"
16251670
]
16261671
},
16271672
"PRE_CONFIRMED_BLOCK_HEADER": {

0 commit comments

Comments
 (0)