Skip to content

Commit

Permalink
feat: the web3.js getBlock APIs now accept rewards and `transaction…
Browse files Browse the repository at this point in the history
…Details` config (#29000)

* Add `transactionDetails` and `rewards` params to `getBlock` API of web3.js

* Add the same content to the legacy call

…because it's such a PITA to share config between two methods and not have Typedoc throw a fit.

* Add tests to exercise block deserialization in the case that `transactionDetails` is `none` or `accounts`

* Extract the annotated account key parser into a separate struct

* Parse the `getBlock()` responses differently depending on the mode
  • Loading branch information
steveluscher committed Dec 2, 2022
1 parent 5850af5 commit b112d01
Show file tree
Hide file tree
Showing 2 changed files with 727 additions and 63 deletions.

0 comments on commit b112d01

Please sign in to comment.