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

ethclient: acquire the rpc.Client #27246

Merged
merged 1 commit into from
May 11, 2023

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented May 11, 2023

Why do we need to return the rpc.Client?

I found that the current ethclient interface cannot retrieve block information for a transaction when fetching its details.

func (ec *Client) TransactionByHash(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) {

Therefore, I want to directly call the eth_getTransactionByHash method from the client.

Signed-off-by: jsvisa <delweng@gmail.com>
Copy link
Member

@karalabe karalabe left a comment

Choose a reason for hiding this comment

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

Thanks

@karalabe karalabe added this to the 1.11.7 milestone May 11, 2023
@karalabe karalabe merged commit c8b0afb into ethereum:master May 11, 2023
@jsvisa jsvisa deleted the ethclient-client-public branch May 11, 2023 07:11
shekhirin pushed a commit to shekhirin/go-ethereum that referenced this pull request Jun 6, 2023
Signed-off-by: jsvisa <delweng@gmail.com>
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Signed-off-by: jsvisa <delweng@gmail.com>
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants