Arbitrum batch requests return invalid data

With batch requests, the result field is a string instead of json. This leads to ethers being unable to parse the block.

Request:

[{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "eth_getBlockByNumber",
  "params": ["earliest", false]
}]

Expected Response:

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "result": {
            "difficulty": "0x0",
            "extraData": "0x",
            "gasLimit": "0x112a8800",
            "gasUsed": "0x0",
            "hash": "0x7ee576b35482195fc49205cec9af72ce14f003b9ae69f6ba0faef4514be8b442",
            "l1BlockNumber": "0x0",
            "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
            "miner": "0x0000000000000000000000000000000000000000",
            "mixHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "nonce": "0x0000000000000000",
            "number": "0x0",
            "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",
            "size": "0x1f9",
            "stateRoot": "0x0000000000000000000000000000000000000000000000000000000000000000",
            "timestamp": "0x0",
            "totalDifficulty": "0x0",
            "transactions": [],
            "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",
            "uncles": []
        }
    }
]

Received Response:

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "{difficulty:0x0,extraData:0x,gasLimit:0x112a8800,gasUsed:0x0,hash:0x7ee576b35482195fc49205cec9af72ce14f003b9ae69f6ba0faef4514be8b442,l1BlockNumber:0x0,logsBloom:0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,miner:0x0000000000000000000000000000000000000000,mixHash:0x0000000000000000000000000000000000000000000000000000000000000000,nonce:0x0000000000000000,number:0x0,parentHash:0x0000000000000000000000000000000000000000000000000000000000000000,receiptsRoot:0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,sha3Uncles:0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347,size:0x1f9,stateRoot:0x0000000000000000000000000000000000000000000000000000000000000000,timestamp:0x0,totalDifficulty:0x0,transactions:[],transactionsRoot:0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421,uncles:[]}"
    }
]
1 Like

Hi there!

This looks like an issue for Portal support, can you please submit a ticket via: https://support.pokt.network and the Portal team will take a look.

Additionally, you can jump into the Portal discord and drop this into the #questions channel.

1 Like