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

How can I sign a transaction using web3-react library? #917

Open
zhaoyi0113 opened this issue Feb 26, 2024 · 0 comments
Open

How can I sign a transaction using web3-react library? #917

zhaoyi0113 opened this issue Feb 26, 2024 · 0 comments

Comments

@zhaoyi0113
Copy link

I am using this library in frontend to interact with smart contract from ethereum network. I need to sign a transaction when calling smart contract methods. But I can't find any method can do the work from this library. I found the web3 has a method: https://web3js.readthedocs.io/en/v1.2.11/web3-eth.html#signtransaction, I wonder if I can get web3 instance from any hooks? Or do I have to create a web3 instance separately?

I appreciate any suggestions and tips on how to make it work.

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

No branches or pull requests

1 participant