Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

eth_getTransactionByHash returns "too many arguments, want at most 1" when txhash is not found #3783

@quick-pawiromitchel

Description

@quick-pawiromitchel

eth_getTransactionByHash returns too many arguments, want at most 1 for a txhash that's not found, but it should be just returning null. The error is confusing.

System information

zkEVM Node version: zkevm-node version v0.7.3
Network: Mainnet

Expected behaviour

Should be returning null

Actual behaviour

Returns the following

{
  "jsonrpc": "2.0",
  "id": 147,
  "error": {
    "code": -32602,
    "message": "too many arguments, want at most 1"
  }
}

Steps to reproduce the behaviour

curl  -X POST \
  'IP:8545' \
  --header 'Content-Type: application/json' \
  --data-raw '{
  "method": "eth_getTransactionByHash",
  "params": [
    "0x428ba7f2905e10afad572c6ce74e6532cdef2b803e9360cac38254ba68c579e7"
  ],
  "id": 147,
  "jsonrpc": "2.0"
}'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions