Skip to content

Conversation

@s1na
Copy link
Contributor

@s1na s1na commented Jun 16, 2022

AFAIK legacy txes don't have a chainId field. Only type-1 and type-2 txes.

@shemnon
Copy link
Contributor

shemnon commented Jun 17, 2022

I disagree. The v field encodes the chainId, and the RPCs extract it and expose it. While the RLP on-chain encoding does not have a field that is just the chain ID it is part of the transaction data and clients should still be expected to expose it for RPC calls.

@lightclient
Copy link
Member

I agree with @shemnon here. I think this is an issue we should fix in geth so that legacy txs which use EIP-155 have a chainId field, because right now it's as you said @s1na -- only type 1 and type 2 txs return chainId.

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

Successfully merging this pull request may close these issues.

3 participants