Skip to content

Commit

Permalink
Merge pull request #188 from starkware-libs/add_4844_support
Browse files Browse the repository at this point in the history
Add EIP-4844 related fields (#188)
  • Loading branch information
ArielElp authored Feb 2, 2024
2 parents 830d153 + 4d0b3c0 commit 37d35b4
Showing 1 changed file with 29 additions and 3 deletions.
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

0 comments on commit 37d35b4

Please sign in to comment.