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

eth_sendTransaction not available #116

Open
text4lilac opened this issue Mar 10, 2022 · 1 comment
Open

eth_sendTransaction not available #116

text4lilac opened this issue Mar 10, 2022 · 1 comment

Comments

@text4lilac
Copy link

in my app, i am trying to call eth_sendTransaction method but its not working and giving error of eth_sendTransaction method not avaialble

i am trying to connect with metamask and using web3 rpc url:-
https://ropsten.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161

i want to proceed without signing transaction. Is it possible or is there any workaround?

@koraykoska
Copy link
Member

You can create your own methods as extensions of Web3 or Web3.Eth. Just use the same approach as in the Web3.swift main file (take the example of eth_sendRawTransaction).

We don't support all methods because there are a lot and most of them are not supported/discouraged. This library assumes in many places that private keys are directly handled, not by the node. That's why we don't support things like eth_sendTransaction. Adding it manually is easy enough to continue this strict path.

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

2 participants