Skip to content

Commit

Permalink
add unit to FEE_ESTIMATE
Browse files Browse the repository at this point in the history
  • Loading branch information
ArielElp committed Nov 27, 2023
1 parent bec6939 commit ab96462
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions api/starknet_api_openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3638,6 +3638,14 @@
],
"description": "Flags that indicate how to simulate a given transaction. By default, the sequencer behavior is replicated locally"
},
"PRICE_UNIT": {
"title": "price unit",
"type": "string",
"enum": [
"WEI",
"FRI"
]
},
"FEE_ESTIMATE": {
"title": "Fee estimation",
"type": "object",
Expand All @@ -3656,12 +3664,18 @@
"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",
"$ref": "#/components/schemas/FELT"
},
"unit": {
"title": "Fee unit",
"description": "units in which the fee is given",
"$ref": "#/components/schemas/PRICE_UNIT"
}
},
"required": [
"gas_consumed",
"gas_price",
"overall_fee"
"overall_fee",
"unit"
]
},
"FEE_PAYMENT": {
Expand All @@ -3675,12 +3689,9 @@
"$ref": "#/components/schemas/FELT"
},
"unit": {
"title": "fee unit",
"type": "string",
"enum": [
"WEI",
"FRI"
]
"title": "Fee unit",
"description": "units in which the fee is given",
"$ref": "#/components/schemas/PRICE_UNIT"
}
},
"required": [
Expand Down

0 comments on commit ab96462

Please sign in to comment.