aurora-is-near / aurora-relayer

[DEPRECATED] Web3-compatible relayer server for Aurora.
https://aurora-is-near.github.io/aurora-relayer/
Creative Commons Zero v1.0 Universal
26 stars 13 forks source link

Fix error message with `eth_getBalance` in case of invalid ETH address #139

Closed 0x3bfc closed 2 years ago

0x3bfc commented 2 years ago

The following example shows invalid error message:

http post https://mainnet.aurora.dev jsonrpc=2.0 id=1 method=eth_getBalance params:='["0x29eaab67ed6cb63debc110bd568e367b9ffbd469"]'

{
    "error": {
        "code": -32601,
        "data": {
            "cf-ray": "6bd0050e46a6d0fd-IAD",
            "host": "relayer005.backend.internal.aurora.dev"
        },
        "message": "Unsupported method: eth_getBalance"
    },
    "id": "1",
    "jsonrpc": "2.0"
}

The error message should be invalid ETH address.

0x3bfc commented 2 years ago

It turned out that this address was banned.