Skip to content

Commit

Permalink
Add baseFeePerBlobGas and blobGasUsedRatio fields to FeeHistoryResult (
Browse files Browse the repository at this point in the history
…#143)

Also add eth_blobBaseFee call signature
  • Loading branch information
jangko committed Apr 3, 2024
1 parent 9e37047 commit a31bc63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit a31bc63

Please sign in to comment.