-
Notifications
You must be signed in to change notification settings - Fork 2.2k
eth_sendTransaction fails with RPC error: Unknown account #5160
Comments
As mentioned I think you need to supply usable account addresses present in aleth to Truffle. Or it may require the |
I did specify an account present in aleth to Truffle. The What's the |
I think it is an accounts issue. Despite the account in question existing and having a nonzero balance (from the genesis config), aleth doesn't recognize it:
|
I also tried using:
I get the same "Unknown account" error regardless of which account I use. |
it might be best to forget about eth_sendTransaction and hack truffle to use eth_sendRawTransaction. then you can do all the tx signing on the js side. |
Also, what do you mean by "The genesis account"? If you want to use eth_sendTransaction, cpp needs to know the private key for whatever account you are trying to send from. Have you added the private key to cpp somehow? |
I was able to work around this by using I'm also encountering a ton of other errors trying to get truffle to talk to aleth -- bad nonce, random RPC errors. If I keep trying to deploy enough times, it seems to eventually sort itself out and start working. Anyway, the issue outlined in this issue seems to be resolved so I'll close this. |
I do not call it a resolution if geth needs to create files and random password is prompted for :) At least create issues for those and/or keep this umbrella one open. |
Here's a braindump of the issues I see:
|
Did you try |
|
|
|
If I run truffle using a basic, out-of-the-box solidity contract (
truffle unbox metacoin
) and then attempt to deploy/test against a localaleth
instance (withjsonrpcproxy
), I get a bunch of RPC errors:Full trace is at https://gist.githubusercontent.com/lrettig/63d7e941946a313ec460c6484cecfc82/raw/21f776da70f7a9d389c811abfed6b18258c5a55b/cpp-log.txt
The text was updated successfully, but these errors were encountered: