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

Add EIP-4844 related fields #188

Merged
merged 1 commit into from
Feb 2, 2024
Merged
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
32 changes: 29 additions & 3 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -1411,6 +1411,20 @@
"description": "The price of l1 gas in the block",
"$ref": "#/components/schemas/RESOURCE_PRICE"
},
"l1_data_gas_price": {
"title": "L1 data gas price",
"description": "The price of l1 data gas in the block",
"$ref": "#/components/schemas/RESOURCE_PRICE"
},
"l1_da_mode": {
"title": "L1 da mode",
"type": "string",
"description": "specifies whether the data of this block is published via blob data or calldata",
"enum": [
"BLOB",
"CALLDATA"
]
},
"starknet_version": {
"title": "Starknet version",
"description": "Semver of the current Starknet protocol",
Expand Down Expand Up @@ -3655,17 +3669,27 @@
"properties": {
"gas_consumed": {
"title": "Gas consumed",
"description": "The Ethereum gas cost of the transaction (see https://docs.starknet.io/docs/Fees/fee-mechanism for more info)",
"description": "The Ethereum gas consumption of the transaction",
"$ref": "#/components/schemas/FELT"
},
"gas_price": {
"title": "Gas price",
"description": "The gas price (in gwei or fri, depending on the tx version) that was used in the cost estimation",
"description": "The gas price (in wei or fri, depending on the tx version) that was used in the cost estimation",
"$ref": "#/components/schemas/FELT"
},
"data_gas_consumed": {
"title": "Data gas consumed",
"description": "The Ethereum data gas consumption of the transaction",
"$ref": "#/components/schemas/FELT"
},
"data_gas_price": {
"title": "Data gas price",
"description": "The data gas price (in wei or fri, depending on the tx version) that was used in the cost estimation",
"$ref": "#/components/schemas/FELT"
},
"overall_fee": {
"title": "Overall fee",
"description": "The estimated fee for the transaction (in gwei or fri, depending on the tx version), product of gas_consumed and gas_price",
"description": "The estimated fee for the transaction (in wei or fri, depending on the tx version), equals to gas_consumed*gas_price + data_gas_consumed*data_gas_price",
"$ref": "#/components/schemas/FELT"
},
"unit": {
Expand All @@ -3677,6 +3701,8 @@
"required": [
"gas_consumed",
"gas_price",
"data_gas_consumed",
"data_gas_price",
"overall_fee",
"unit"
]
Expand Down
Loading