alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
668 stars 243 forks source link

feat: get_block_transaction_count_by_number in Provider trait #1688

Closed eshaan7 closed 6 days ago

eshaan7 commented 6 days ago

Related: #1681.

Motivation

Right now cannot call get_block_transaction_count_by_number JSON-RPC method without using raw_request which is not ideal.

Solution

Adds a new get_block_transaction_count_by_number method to Provider trait.

PR Checklist