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 baseFeePerBlobGas and blobGasUsedRatio fields to FeeHistoryResult #143

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions web3/eth_api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ createRpcSigsFromNim(RpcClient):
proc eth_mining(): bool
proc eth_hashrate(): Quantity
proc eth_gasPrice(): Quantity
proc eth_blobBaseFee(): Quantity
proc eth_accounts(): seq[Address]
proc eth_blockNumber(): Quantity
proc eth_getBalance(data: Address, blockId: BlockIdentifier): UInt256
Expand Down
3 changes: 3 additions & 0 deletions web3/eth_api_types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,13 @@ type

FeeHistoryReward* = array[2, Quantity]

# https://github.com/ethereum/execution-apis/blob/90a46e9137c89d58e818e62fa33a0347bba50085/src/eth/fee_market.yaml#L50
FeeHistoryResult* = object
oldestBlock*: Quantity
baseFeePerGas*: seq[Quantity]
baseFeePerBlobGas*: seq[Quantity]
gasUsedRatio*: seq[float64]
blobGasUsedRatio*: seq[float64]
reward*: seq[FeeHistoryReward]

{.push raises: [].}
Expand Down