Skip to content

Commit

Permalink
eth_blobGasPrice instead of eth_gasPrices
Browse files Browse the repository at this point in the history
  • Loading branch information
flcl42 committed Nov 27, 2023
1 parent 0f75d79 commit 523cab1
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 24 deletions.
24 changes: 5 additions & 19 deletions src/eth/fee_market.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,14 @@
schema:
title: Gas price
$ref: '#/components/schemas/uint'
- name: eth_gasPrices
summary: Returns the current prices for regular, blob gas and maxPriorityFee in wei.
- name: eth_blobGasPrice
summary: Returns the current price per blob gas in wei.
params: []
result:
name: gasPricesResult
description: Prices of regular and blob gas along with priority fee
name: Blob gas price
schema:
title: gasPricesResults
type: object
required:
- gasPrices
additionalProperties: false
properties:
gas:
title: Gas Price
$ref: '#/components/schemas/uint'
blobGas:
title: Blob gas price
$ref: '#/components/schemas/uint'
maxPriority:
description: Max priority fee per gas
$ref: '#/components/schemas/uint'
title: Blob gas price
$ref: '#/components/schemas/uint'
- name: eth_maxPriorityFeePerGas
summary: Returns the current maxPriorityFeePerGas per gas in wei.
params: []
Expand Down
2 changes: 2 additions & 0 deletions tests/eth_blobGasPrice/blob-gas-price.io
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_blobGasPrice","params":[]}
<< {"jsonrpc":"2.0","id":1,"result":"0x1"}
2 changes: 1 addition & 1 deletion tests/eth_feeHistory/fee-history.io
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
>> {"jsonrpc":"2.0","id":1,"method":"eth_feeHistory","params":["0x1","0x2",[95,99]]}
<< {"jsonrpc":"2.0","id":1,"result":{"oldestBlock":"0x2","reward":[["0x1","0x1"]],"baseFeePerGas":["0x2db08786","0x2806be9d"],"gasUsedRatio":[0.0042]}}
<< {"jsonrpc":"2.0","id":1,"result":{"oldestBlock":"0x2","reward":[["0x1","0x1"]],"baseFeePerBlobGas":["0x1","0x2"],"baseFeePerGas":["0x2db08786","0x2806be9d"],"blobGasUsedRatio":[0.5],"gasUsedRatio":[0.0042]}}
2 changes: 0 additions & 2 deletions tests/eth_gasPrices/gas-prices-blockhash.io

This file was deleted.

2 changes: 0 additions & 2 deletions tests/eth_gasPrices/gas-prices.io

This file was deleted.

0 comments on commit 523cab1

Please sign in to comment.