Skip to content

Comments

feat(provider): add with_default_block to ProviderBuilder#3055

Merged
mattsse merged 2 commits intoalloy-rs:mainfrom
neowangreal:providerBuilder
Feb 5, 2026
Merged

feat(provider): add with_default_block to ProviderBuilder#3055
mattsse merged 2 commits intoalloy-rs:mainfrom
neowangreal:providerBuilder

Conversation

@neowangreal
Copy link
Contributor

Closes #3054

Adds with_default_block() method to set default BlockId for call/estimateGas instead of always using Pending.

onbjerg
onbjerg previously requested changes Dec 3, 2025
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you also add it to any method that returns RpcWithBlock? e.g. get_account, get_balance and so on

@github-project-automation github-project-automation bot moved this to In Progress in Alloy Dec 3, 2025
@neowangreal neowangreal requested a review from onbjerg December 7, 2025 16:14
@neowangreal
Copy link
Contributor Author

neowangreal commented Dec 7, 2025

can you also add it to any method that returns RpcWithBlock? e.g. get_account, get_balance and so on

Sure, PLZ have a look at the new update

@neowangreal
Copy link
Contributor Author

Hi @onbjerg , this has been hold for a long time.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doesnt hurt, pending @onbjerg

@mattsse mattsse enabled auto-merge (squash) February 5, 2026 12:32
@mattsse mattsse merged commit 409667e into alloy-rs:main Feb 5, 2026
30 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Alloy Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feature] specific BlockId in ProviderBuilder

3 participants