eth_chainId

Returns the current network/chain ID, used to sign replay-protected transaction introduced in. The API credit value for this method is 1

  1. Parameters: Does not accept any parameters

curl https:// Krypc-End Point URL / \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}'
  1. Returns:

    1. Returns- Chain ID(Hexa-Decimal value in string format)

Last updated