eth icon indicating copy to clipboard operation
eth copied to clipboard

How to send transaction with chain id?

Open nanlong opened this issue 3 years ago • 5 comments

%{"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.

nanlong avatar Sep 25 '21 15:09 nanlong

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.

izelnakri avatar Oct 25 '21 19:10 izelnakri

Did this ever get added?

baxterjfinch avatar Sep 20 '22 20:09 baxterjfinch

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.

izelnakri avatar Sep 20 '22 22:09 izelnakri

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 avatar Sep 22 '22 14:09 baxterjfinch

@baxterjfinch https://github.com/izelnakri/eth/blob/main/lib/eth/transaction/parser.ex#L155

izelnakri avatar Sep 24 '22 05:09 izelnakri