Note: Someone else is working on this bounty
Web3 DAO | xdc-community Logo

Gitcoin Bounty - eth_getLogs returns wrong blockHash




about 1 year ago



5000 USD


Judging Criteria

You will be provided with resources (if available) as an aid to help you get started. The sole act of submitting content for the bounty does not automatically qualify you for the bounty. Our team will review all submissions and will choose the submission whose content best fits the needs and requirements of the bounty.

Only one participant will be selected as the winner for the bounty, and they will be notified within 7 working days after the bounty has ended.


Amount of Bounty

Grant Sponsor: XDC Community. All monies paid will be in XDC.

What will you be doing?

We are looking for a Go developer with experience on the XDC Network who can help to fix an issue where the RPC node on the XDC Network is returning the wrong blockHash when calling method eth_getLogs.



curl -s -X POST -H "Content-Type: application/json" -d '
    "id": 1610,
    "jsonrpc": "2.0",
    "method": "eth_getLogs",
    "params": [
            "address": "0x53350795c11cee781a7e174479778f848d76ab2a",
            "fromBlock": "0x22b2277",
            "toBlock": "0x22b2277",
            "topics": [
}' | jq


  "jsonrpc": "2.0",
  "id": 1610,
  "result": [
      "address": "xdc53350795c11cee781a7e174479778f848d76ab2a",
      "topics": [
      "data": "0x000000000000000000000000000000000000000000084595161401484a000000",
      "blockNumber": "0x22b2277",
      "transactionHash": "0xbebc0bab1a0f9844b86b8edf3a169bb1eef9337ac8d2684d5ae758b6521c12fe",
      "transactionIndex": "0x1",
      "blockHash": "0x194a513ea40c94fccaca470cccb24c2ff3bd6398dec9a04e3eb3a4bfef8a330e",
      "logIndex": "0x2",
      "removed": false

The right blockHash should be 0xe8ec0bfc021f839fd0a69ae89689e309632af2cc434e8a096732068f0736864b according to The blockHash 0x194a513ea40c94fccaca470cccb24c2ff3bd6398dec9a04e3eb3a4bfef8a330e in response is wrong.

Total Prize of Bounty

Total sum of up to $5000.00 USD worth of XDC for this event, reward amount assigned at judge's discretion.


These are some of the resources you have available to you where you will find the necessary information to complete your submission.

Apothem Test Network

Apothem Faucet