dominant-strategies/go-quai

Address checksum error when getting balance

Closed this issue · 1 comments

From blockscout team:
quai_getBalance returned a invalid checksum for the address:

curl --location 'http://rpc.sandbox.quai.network:9200/' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "quai_getBalance",

    "params": [
        "0x001249e76e9095b09de8fd5e0b5c0ea678f886e4",
        "0x841B"
    ],
    "id": 1
}'

@mibuono this is expected. The RPC requires checksummed addresses, but the address provided is not correctly checksummed.

The correct checksummed address would be: 0x001249E76E9095B09de8fd5E0B5C0eA678f886e4