eth
eth copied to clipboard
How to send transaction with chain id?
%{"code" => -32000, "message" => "only replay-protected (EIP-155) transactions allowed over RPC"}
I tested the example in this file https://github.com/izelnakri/eth/blob/master/test/eth_test.exs#L22 , but it didn't work.
Hi there, thanks for reporting this issue! It's currently being worked here: https://github.com/izelnakri/eth/pull/58 . We'll hopefully merge and release the bugfix soon.
Did this ever get added?
Hi @baxterjfinch , I guess #58 is stale, no progress has been made for a year. You're welcome to branch off and create your own PR for improvements.
Thanks - I'm trying to get it going properly but transactions I send still seem to have the v
value set to 28 which isn't 155 compliant. I'm not an elixir expert, mostly Go and Python, and so any help would be appreciated.
@baxterjfinch https://github.com/izelnakri/eth/blob/main/lib/eth/transaction/parser.ex#L155