eth_chainId

Returns the chain ID of the current network.

Params

None.

Result

string

Match pattern: ^0x([1-9a-f]+[0-9a-f]*|0)$

Request

await window.NEOLineNeoX.request({
  "method": "eth_chainId",
  "params": []
});

Result

0xba93

最后更新于