Closed izelnakri closed 7 years ago
@izelnakri can you give a little more information about your request? what parameters did you pass?
Request with geth client
params = [%{"data" => "0xd46e8dd67c5d32be8d46e8dd67c5d32be8058bb8eb970870f072445675058bb8eb970870f072445675",
"from" => "0xc2b7b953C339c6ec4Bb88fAB5a4d19A033e6c4b1", "gas" => "0x76c0",
"gasPrice" => "0x9184e72a000",
"to" => "0xc2b7b953C339c6ec4Bb88fAB5a4d19A033e6c4b1",
"value" => "0x9184e72a"}]
Ethereumex.HttpClient.eth_send_transaction(params)
{:error, %{"code" => -32000, "message" => "unknown account"}}
ohh so it is a map inside a list, not a list, keyword-list or a single map my bad sorry. Would be helpful if we had some typespecs and more tests though.
@izelnakri yes, typespecs would be very helpful. I will add them soon. By the way, pull requests are welcome.
Thanks for writing an API that one-to-one matches the Ethereum JSON RPC. The send transaction doesnt seem to work though:
error code: