We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 647c6f2 commit c7f485dCopy full SHA for c7f485d
internal/ethapi/api.go
@@ -609,6 +609,11 @@ func NewBlockChainAPI(b Backend) *BlockChainAPI {
609
}
610
611
// ChainId is the EIP-155 replay-protection chain id for the current Ethereum chain config.
612
+//
613
+// Note, this method does not conform to EIP-695 because the configured chain ID is always
614
+// returned, regardless of the current head block. We used to return an error when the chain
615
+// wasn't synced up to a block where EIP-155 is enabled, but this behavior caused issues
616
+// in CL clients.
617
func (api *BlockChainAPI) ChainId() *hexutil.Big {
618
return (*hexutil.Big)(api.b.ChainConfig().ChainID)
619
0 commit comments